Cache management method for storage device
First Claim
1. A device for setl:
- ing cache space in a data processing system including a computer on which a database management system runs, a storage device which includes a cache and stores data in databases which the database management system manages, and an administrative device which manages the computer and the storage device, wherein the computer, the storage device, and the administrative device are interconnected via a network, the device comprising;
means for acquiring information about database function process details to be executed by the database management system;
means for acquiring information about data mapping from the computer and the storage device;
means for creating planned cache space settings, using the acquired information about said database function process details and about said data mapping; and
means for directing the storage device to activate cache space settings according to the planned cache space settings.
1 Assignment
0 Petitions
Accused Products
Abstract
A cache management method disclosed herein enables optimal cache space settings to be provided on a storage device in a computer system where database management systems (DBMSs) run. Through the disclosed method, cache space partitions to be used per data set are set, based on information about processes to be executed by the DBMSs, which is given as design information. For example, based on estimated rerun time of processes required after DBMS abnormal termination, cache space is adjusted to serve the needs of logs to be output from the DBMS. In another example, initial cache space allocations for table and index data is optimized, based on process types and approximate access characteristics of data. In yet another example, from a combination of results of pre-analysis of processes and cache operating statistics information, a change in process execution time by cache space tuning is estimated and a cache effect is enhanced.
103 Citations
29 Claims
-
1. A device for setl:
- ing cache space in a data processing system including a computer on which a database management system runs, a storage device which includes a cache and stores data in databases which the database management system manages, and an administrative device which manages the computer and the storage device, wherein the computer, the storage device, and the administrative device are interconnected via a network, the device comprising;
means for acquiring information about database function process details to be executed by the database management system;
means for acquiring information about data mapping from the computer and the storage device;
means for creating planned cache space settings, using the acquired information about said database function process details and about said data mapping; and
means for directing the storage device to activate cache space settings according to the planned cache space settings. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
- ing cache space in a data processing system including a computer on which a database management system runs, a storage device which includes a cache and stores data in databases which the database management system manages, and an administrative device which manages the computer and the storage device, wherein the computer, the storage device, and the administrative device are interconnected via a network, the device comprising;
-
19. A computer-executable program embodied on a computer-readable medium for setting cache space, which is executed in a data processing system comprising a computer on which a database management system runs and a storage device, which includes databases on which data is stored under management of the database management system end a data cache which temporarily retains data from the databases, the computer-executable program comprising:
-
means for acquiring information about database function process details to be executed by the database management system;
means for acquiring information about data mapping from the computer and the storage device;
means for creating planned cache space settings, using the acquired information said database function process details and about said data mapping; and
means for directing the storage device to activate cache space settings according to the planned cache space settings.
-
-
20. A method for managing a data cache in a data processing system including a storage device which includes disk storage units on which data is stored and a data cache which temporarily retains at least a part of the data that is stored on the disk storage units, a computer on which a database management system (DBMS) program which manages storing data to the storage device is run, the computer carrying out data processing, and an administrative device provided with a system management program for supervising and managing the computer and the storage device, wherein the storage device, the computer, arid the administrative device are interconnected via a network,
the method comprising the steps of: -
determining a maximum number of processes that can be executed during a rerun, referring to process design information;
obtaining SQL statements to do INSERT/UPDATE from the processes and expected repetition rates of the SQL statements;
determining maximum data size of logs to be output by the SQL statement to do UPDATE/INSERT;
calculating log data size per process from the maximum data size of logs;
estimating log size required, based on the log data size per process and the maximum number of processes that can be executed during a rerun;
setting cache space as much as or more than the log size required during a rerun to reside on the data cache; and
allocating cache storage areas according to cache space settings thus determined. - View Dependent Claims (21)
-
-
22. A method for managing a data cache in a data processing system including a storage device which includes disk storage units on which data is stored and a data cache which temporarily retains at least a part of the data that is stored en the disk storage units, a computer which includes a cache and on which a database management system (DBMS) program which manages storing data to the storage device is run, and an administrative device provided with a system management program for supervising and managing the computer and the storage device,
the method comprising the steps of: - allocating equal amounts of space in the cache of the DBMS and the data cache of the storage device to all data structures;
specifying a cache effect function for each data structure and allocating space in the cache of the DBMS to each data structure, using the cache effect function;
specifying the cache effect function and allocating space in the data cache to each data structure, using the cache effect functions and directing one of the DBMS and the storage device to activate cache space allocations thus determined. - View Dependent Claims (23, 24, 25, 26, 27)
- allocating equal amounts of space in the cache of the DBMS and the data cache of the storage device to all data structures;
-
28. A method for optimum caching management for data cache in a data processing system including a storage device which includes disk storage units on which data is stored and a data cache which temporarily retains at least a part of the data that is stored on the disk storage units, a computer on which a database management system (DBMS) program which manages storing data to the storage device is run, and an administrative device provided with a system management program for supervising and managing the computer and the storage device,
the method for optimum caching management for the data cache comprising the steps of: -
checking statistics about a count of occurrences of wait when accessing data pages of data structures within the DBMS;
identifying processes involving access to a data structure for which it has been determined that wait has occurred with high frequency and obtaining the number of expected data pagan to access in the data structure;
checking for a process which takes long execution time and accessed many times the data structure for which wait has occurred with high frequency among the processes involving access to the data structure;
tailoring cache allocations to enhance a cache hit rate of the data to be accessed during the process execution to shorten the execution time of the process; and
directing the storage device to activate change to data cache allocations according to tailored cache allocations. - View Dependent Claims (29)
-
Specification