Patent ID: 7634628
Filing Date: 2009-12-15
Classification: G06F

Abstract:
1. A method for processing cache data, which is applied to a redundant server system having a console end and a redundant control end, and said console end has a cache memory for storing a cache data, and said redundant control end has another cache memory, and said redundant server system processes a procedure comprising the steps of: said console end processing and convening said cache data into a mirrored cache data by a mirroring mechanism; said console end transmitting said mirrored cache data to said redundant control end by a transmission unit; and when said console end determines that said another cache memory of said redundant control end cannot save said mirrored cache data, then said cache data will be flushed into a hard disk corresponding to said cache data at said console end; wherein said console end processes and converts said cache data into said mirrored cache data by said transmission unit through a procedure comprising the steps of: said console end creating a data structure information based on said mirrored cache data, wherein said data structure information includes a transmission record, and the content recorded in said transmission record is the number of transmissions that said console end sends said mirrored cache data to said redundant control end and cannot save said mirrored cache data into said another cache memory; said data structure information being queued at said console end; and said console end processing a procedure based on the steps of sending said mirrored cache data to said redundant control end; wherein when said redundant control end receives said mirrored cache data, said redundant control end further processes the steps of: determining whether or not the storage space of said another cache memory is sufficient to save said mirrored cache data; and saving said mirrored cache data into said another cache memory, when said redundant control end determines that the storage space of said another cache memory is sufficient to save said mirrored cache data, and using said transmission unit to issue an already-saved message to said console end to indicate that said redundant control end has already saved said mirrored cache data; wherein when said redundant control end cannot save said mirrored cache data into said another cache memory, said redundant control end will reply a notice message to said console end, indicating that said mirrored cache data cannot be saved; wherein when said console end receives said notice message, said console end further processes the steps of: increasing said number of transmissions by one in said transmission record; determining whether or not said number of transmissions recorded in said transmission record exceeds a predetermined maximum number of transmissions of said console end; and determining that said redundant control end cannot save said mirrored cache data when said number of transmissions recorded in said transmission record has exceeded said maximum number of transmissions; and wherein said data structure information further includes a cache data identification header and a content index, and when said console end determines that said number of transmissions recorded in said transmission record has exceeded said maximum number of transmissions, said console end will flush said cache data into said hard disk according to a procedure comprising the steps of: saving said cache data in a storing address of said cache memory based on said content index, and reading said storing address of said cache memory to obtain said cache data; and obtaining a serial number of said hard disk containing said cache data and a block address set by said cache data identification header from a device identity data set by said cache data identification header, and obtaining a block address of said hard disk containing said cache data and a data length said cache data stored in said hard disk and recorded by said cache data identification header, for flushing said cache data into said block address of said hard disk corresponding to said cache data identification header.