CN101329623B - Computer system and memory control method - Google Patents

Computer system and memory control method Download PDF

Info

Publication number
CN101329623B
CN101329623B CN2008101311712A CN200810131171A CN101329623B CN 101329623 B CN101329623 B CN 101329623B CN 2008101311712 A CN2008101311712 A CN 2008101311712A CN 200810131171 A CN200810131171 A CN 200810131171A CN 101329623 B CN101329623 B CN 101329623B
Authority
CN
China
Prior art keywords
computer system
memory
storage
memory storage
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008101311712A
Other languages
Chinese (zh)
Other versions
CN101329623A (en
Inventor
林永森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Acer Inc
Original Assignee
Acer Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Inc filed Critical Acer Inc
Priority to CN2008101311712A priority Critical patent/CN101329623B/en
Publication of CN101329623A publication Critical patent/CN101329623A/en
Application granted granted Critical
Publication of CN101329623B publication Critical patent/CN101329623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention relates to a computer system and a storage control method. The computer system comprises a storage device and a main memory. The method comprises the following steps: the computer system is started; whether the storage device is a semiconductor nonvolatile one is detected; when the storage device is a semiconductor nonvolatile one, the formation of a virtual memory space in the storage device is stopped; an application program is executed; adaptation to the application program is carried out and a memory space is divided from the main memory; a temporary file or a log file generated when the application program is carried out is stored in the memory space divided from the main memory. The computer system and the method of the invention can prolong the service life of the storage device in the computer system.

Description

Computer system and storage controlling method thereof
Technical field
The present invention relates to a kind of computer system and storage controlling method thereof, relate in particular to a kind of computer system and storage controlling method thereof with semiconductor non-volatile memory storage.
Background technology
Nand flash memory (NAND flash) is a kind of of Nonvolatile memory (non-volatile), mainly be to be used for storing boot program (as the Basic Input or Output System (BIOS) program code) or system data, because nand flash memory can be easier to the characteristic that repeats to write, so nand flash memory replaces gradually as ROM, PROM, EPROM, EEPROM etc. and can not repeat to write or repeat the quite flash memory of trouble of write step.Nand flash memory has and writes fast, wipes fast and advantages such as high density, so nand flash memory uses on mobile device more, as mobile phone, MP3 player, MP4 player, digital multimedia player etc., nand flash memory can be deposited the media of multimedia file as these mobile devices, and the starting point is exactly the low cost of nand flash memory, bigger parking space and the speed that writes data.
Moreover, if the data bulk that nand flash memory can be stored according to each transistor is distinguished, can be divided into single-order storage (Single Level Cell, be called for short SLC) and multistage storage (Multi LevelCell, be called for short MLC), wherein single-order storage is meant that an array can only store the data of 1 position (bit), and multistage storage then is that an array can be stored the above data in 2 positions.And after industry is also further utilized the suitable control chip of nand flash memory collocation at present, so-called solid state hard disc (Solid State Disk or Solid State Drive and develop, be called for short SSD), it has higher speed, noiselessness, the advantage of anti-vibration and power saving, can replace the hard disk of storing data at present with magnetisable material further, and then be applied on personal computer or the mobile computer, but solid state hard disc (SSD) is the expensive of solid state hard disc (SSD) and short serviceable life compared to the shortcoming of conventional hard maximum, especially in this respect in a serviceable life mortal wound can't popularizing all the time of solid state hard disc (SSD) especially.
Generally after the unlatching computer system enters into operating system (Operating System), the file performed when computer system is too big, and the capacity of computer system primary memory (RAM) is when being unable to cope with the performed file of computing machine big or small, situation when machine just can take place in whole computer system, so in order to prevent the generation of this situation, except original primary memory (RAM), after each unlatching computer system, computer system just can be partitioned into a virtual memory space simultaneously on hard disk, just so-called swapace (SWAP space) remedies the deficiency of original primary memory (RAM) capacity.In addition, when different application program of user's executable operations on computer system or the various temporal datas that system program produced, for example: carry out temporary file (temporal file) that browser produced or system and carry out log file temporal datas such as (log file) that various different operating program produces except meeting is temporarily stored in primary memory, also can be stored in simultaneously in this swapace (SWAP space) in program.Yet, the above-mentioned mechanism that in hard disk, is partitioned into swapace (SWAPspace) in order to prevent computer system from working as machine, for hard disk with magnetisable material storage data, do not have the generation (for example too much causing hard disk corruptions) of any problem because of access times, but for being equipped with the computer system of life-span than short solid state hard disc (SSD), under such mechanism, the user is after each start enters into operating system, access is carried out to solid state hard disc (SSD) in the capital, in the course of time, attitude hard disk (SSD) shortening in serviceable life in computer system of will certainly tachy steroling more, therefore, how to improve, for developing topmost purpose of the present invention at this problem.
Summary of the invention
The object of the present invention is to provide a kind of computer system and storage controlling method thereof, improve the shortcoming of prior art.
The present invention is a kind of storage controlling method of computer system, and this computer system includes memory storage and primary memory, and this method comprises the following step: start this computer system; Whether detect this memory storage is the semiconductor non-volatile memory storage; When this memory storage is the semiconductor non-volatile memory storage, stops at and form the virtual memory space in this memory storage; Executive utility; Adapting to this application program is performed and is partitioned into memory headroom in this primary memory; And will carry out a temporary file or log file that this application program produces and be stored in this memory headroom that in this primary memory, is partitioned into.
In described computer system stores control method, the semiconductor non-volatile memory storage can be multistage storage-type solid state hard disc or single-order storage-type solid state hard disc.
In described computer system stores control method, application program can be web browser or document is handled application program.
In described computer system stores control method, carrying out on applied this computer system has operating system program, and the program that detects this memory storage occur in this operating system load the initial phase of this computer system or this operating system finish load this computer system after.
In described computer system stores control method, when this memory storage of detection is magnetic storage device, recover in this memory storage, to form this virtual memory space.
In described computer system stores control method, this magnetic storage device is a hard disk.
Another aspect of the present invention is a kind of computer system, it comprises: primary memory; Memory storage, it stores operating system; And CPU (central processing unit), it is when carrying out this operating system of being stored in this memory storage behind the computer system starting, and in the process of carrying out this operating system, when detecting this memory storage and being the semiconductor non-volatile memory storage, stop at and form the virtual memory space in this memory storage, and when application program is performed, and in this primary memory, be partitioned into memory headroom, be stored in this memory headroom that in this primary memory, is partitioned into carrying out a temporary file or log file that this application program produced.
In described computer system, the semiconductor non-volatile memory storage can be multistage storage-type solid state hard disc or single-order storage-type solid state hard disc.
In described computer system, application program can be web browser or document is handled application program.
In described computer system, the program that CPU (central processing unit) detects this memory storage occur in this operating system load the initial phase of this computer system or this operating system finish load this computer system after.
In described computer system, application program is performed.
In described computer system, when this CPU (central processing unit) detects this memory storage and is magnetic storage device, and then in this memory storage, form this virtual memory space.
In described computer system, magnetic storage device is a hard disk.
The present invention can prolong the serviceable life of memory storage in computer system.
Description of drawings
The present invention will obtain more deep understanding by following graphic and explanation:
Fig. 1, it improves the disappearance of known technology means to develop the computer system functions block diagram that to have the storage control function for the present invention.
Fig. 2, it improves the disappearance of known technology means to develop the storage controlling method schematic flow sheet that for the present invention.
Wherein, description of reference numerals is as follows:
1 computer system, 10 CPU (central processing unit)
11 bridging chip groups, 12 primary memorys
13 AGP interfaces, 14 peripheral assembly connecting interfaces
15 USB (universal serial bus) 16IDE interfaces
17 memory storages, 111 north bridge chips
112 South Bridge chips, 1001 preposition buses
1002 memory bus 1003AGP buses
The 1004PCI bus
S1~S7 step
Embodiment
See also Fig. 1, it improves the disappearance of known technology means to develop the computer system functions block diagram that to have the storage control function for the present invention.We can clearly find out from figure, this computer system 1 mainly with CPU (central processing unit) (CPU) 10 as system's trunk, CPU (central processing unit) 10 signals are connected the bridging chip group of being made up of north bridge chips (North Bridge Chip) 111 and South Bridge chip (South BridgeChip) 112 (Chipset) 11, wherein (Front Side Bus FSB) 1001 connects each other with CPU (central processing unit) 10 north bridge chips 111 with preposition bus; Connect each other and with AGP bus 1003 and AGP interface (Accelerated Graphics Port with memory bus 1002 and primary memory (Main Memory) 12, AGP) 13 link up, and South Bridge chip (South Bridge Chip) 112 is with pci bus 1004 and peripheral assembly connecting interface (PeripheralComponent Interconnect, PCI) 14 interconnect, USB (universal serial bus) (the Universal Serial Bus in addition that is connected with South Bridge chip 112 in addition, hereinafter to be referred as USB) interface 15 and IDE (Integrated Drive Electronics) interface 16, wherein be connected with memory storage 17 on this ide interface 16.
And computer system 1 of the present invention, its major technique means are exactly after this computer system 1 starts, this CPU (central processing unit) 10 can begin to carry out the operating system (not shown at this) that is stored in this memory storage 17, in the process of these CPU (central processing unit) 10 these operating systems of execution (for example: this operating system loads initial phase or this operating system of this computer system 1 and finishes this computer system 1 back of loading), can begin to detect why type memory storage of this memory storage 17, when if this memory storage 17 is semiconductor non-volatile memory storage (for example: multistage storage-type solid state hard disc (MLC SSD) or single-order storage-type solid state hard disc (SLC SSD)), this CPU (central processing unit) 10 just can be issued an order and be stopped at this program in a virtual memory space of formation in this memory storage 17 through the reception and registration of this bridging chip group 11, just stop computer system and can in memory storage (hard disk), be partitioned into this mechanism of a swapace (SWAP space) after the start, and when the user carries out as application programs such as web browser or document processing in computer system 1 of the present invention, this CPU (central processing unit) 10 just can be issued an order through the reception and registration of this bridging chip group 11, in this primary memory 12, be partitioned into a memory headroom, and then replace the virtual memory space in the memory storage 17 to store these temporary files that application program produced that are performed (temporal file) or log file (log file).
Via above-mentioned, we can clearly understand, computer system with storage control function of the present invention, main is exactly when computer system is the semiconductor non-volatile memory storage of configuration as multistage storage-type solid state hard disc (MLC SSD) or single-order storage-type solid state hard disc (SLC SSD), after computer system power-on starts, this machine-processed forbidden energy that can " in memory storage, form the SWAP swapace ", that is just mentioned in prior art of the present invention is opening after computer system enters into operating system, the file performed when computer system is too big, and the capacity of computer system primary memory (RAM) is when being unable to cope with the performed file of computing machine big or small, situation when machine just can take place in whole computer system, so in order to prevent the generation of this situation, except original primary memory (RAM), after each unlatching computer system, computer system just can be partitioned into a virtual memory space simultaneously on hard disk, technological means of the present invention is computer system can be formed a virtual memory space on memory storage this mechanism forbidden energy in addition, with reduce as the semiconductor non-volatile memory storage of multistage storage-type solid state hard disc (MLCSSD) or single-order storage-type solid state hard disc (SLC SSD) by the number of times of access, thus, just can effectively prolong the serviceable life of this type memory storage in computer system.In addition, cooperate " in memory storage, forming the SWAP swapace " this mechanism by forbidden energy may cause computer system to work as the risk of machine, technological means of the present invention can be partitioned into memory headroom in the primary memory of computer system, replace formed virtual memory space on memory storage originally, temporary file (temporal file) or the log file (log file) storing when application program is performed to be produced.Below we describe technological means of the present invention in detail with the method step flow process again.
See also Fig. 2, it improves the disappearance of known technology means to develop the storage controlling method schematic flow sheet that for the present invention, and this method schematic flow sheet cooperates the assembly numbering in the function block diagram shown in Figure 1.We can clearly find out from figure, at first, start this computer system 1 and carry out this operating system, see step S1; This computer system 1 detects whether this memory storage 17 is non-the waving property memory storage of semiconductor, sees step S2; If test result is non-the waving property memory storage of semiconductor for this memory storage, then this computer system 1 stops at and forms the virtual memory space in this memory storage 17, sees step S3; This computer system 1 adapts to user's executive utility and be partitioned into memory headroom in this primary memory 12, sees step S4; This computer system 1 is set at the store path of temporary file (temporal file) that executive utility produced or log file (log file) and is stored in the memory headroom that this primary memory 12 is partitioned into, and sees step S5; In addition, if in step S2, the testing result that this computer system 1 detects this memory storage 17 is that this memory storage 17 is magnetic storage device (as hard disk), and then this computer system 1 forms the virtual memory space in this memory storage 17, sees step S6; This computer system 1 is set at the temporary file (temporal file) that executive utility produced or the store path of log file (log file) in the virtual memory space that is stored in this memory storage 17, sees step S7.
Hold above-mentioned technical descriptioon, in primary memory, be partitioned into memory headroom at the adaptation user's executive utility of the computer system described in the step S4 and store temporary file (temporal file) or the log file (log file) that executive utility produces, its technological means is generally to use at present improving " RAMDISK technology " on the computer system performance, so-called RAMDISK technology is that the primary memory in the computer system is invented disc driver, by primary memory fast access speed store and need quick access but be not very important data file, for example: the user carries out the staging directory that is produced behind the web browser browsing page.Therefore, see through step 2 and memory storage is detected and testing result when being the semiconductor non-volatile memory storage described in the step 3, just stop at this technological means that forms the virtual memory space in this memory storage, cooperate the RAMDISK The Application of Technology again, technological means of the present invention just can be under the situation that does not influence computer system stability, effectively reduce semiconductor non-volatile memory storage as multistage storage-type solid state hard disc (MLC SSD) or single-order storage-type solid state hard disc (MLCSSD) by the number of times of access, and then prolong the serviceable life of semiconductor non-volatile memory storage in computer system.
Comprehensive above technical descriptioon, we can clearly understand, see through storage controlling method of the present invention, have in computer system configurations under the situation of semiconductor non-volatile memory storage, can effectively reduce really the semiconductor non-volatile memory storage in computer system by the number of times of access, prolong the serviceable life of this type memory storage in computer system, and then reached development topmost purpose of the present invention.The present invention can make various modifications by those skilled in the art, but the claimed scope of neither disengaging appending claims.

Claims (6)

1. the storage controlling method of a computer system, this computer system includes memory storage and primary memory, and this method comprises the following step:
Start this computer system;
Whether detect this memory storage is the semiconductor non-volatile memory storage;
When this memory storage is the semiconductor non-volatile memory storage, stops at and form the virtual memory space in this memory storage;
Executive utility;
Adapting to this application program is performed and is partitioned into memory headroom from this primary memory; And
Be stored in this memory headroom that in this primary memory, is partitioned into carrying out a temporary file or log file that this application program produced.
2. computer system stores control method as claimed in claim 1, wherein this semiconductor non-volatile memory storage is multistage storage-type solid state hard disc or single-order storage-type solid state hard disc.
3. computer system stores control method as claimed in claim 1, wherein this application program is that web browser or document are handled application program.
4. computer system stores control method as claimed in claim 1, carrying out on its applied this computer system has operating system program, and the program that detects this memory storage occur in this operating system load the initial phase of this computer system or this operating system finish load this computer system after.
5. computer system stores control method as claimed in claim 1 also comprises the following step:
When detecting this memory storage and being magnetic storage device, and then recover in this memory storage, to form this virtual memory space.
6. computer system stores control method as claimed in claim 5, wherein this magnetic storage device is a hard disk.
CN2008101311712A 2008-07-30 2008-07-30 Computer system and memory control method Active CN101329623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101311712A CN101329623B (en) 2008-07-30 2008-07-30 Computer system and memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101311712A CN101329623B (en) 2008-07-30 2008-07-30 Computer system and memory control method

Publications (2)

Publication Number Publication Date
CN101329623A CN101329623A (en) 2008-12-24
CN101329623B true CN101329623B (en) 2011-05-25

Family

ID=40205443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101311712A Active CN101329623B (en) 2008-07-30 2008-07-30 Computer system and memory control method

Country Status (1)

Country Link
CN (1) CN101329623B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782836B (en) * 2009-01-19 2015-06-03 华硕电脑股份有限公司 System and method for controlling virtual memory
TWI384365B (en) 2009-01-19 2013-02-01 Asustek Comp Inc Control system and control method of virtual memory
CN103150180B (en) * 2013-02-07 2016-03-23 宝龙计算机系统(湖南)有限公司 The installation of one kind UNIX operating system and operation method and device

Also Published As

Publication number Publication date
CN101329623A (en) 2008-12-24

Similar Documents

Publication Publication Date Title
CN107168886B (en) Data storage device and operation method thereof
KR101583002B1 (en) Computing system booting method and code/data pinning method thereof
CN101303891B (en) Memory system, program method thereof, and computing system including the same
US20110099325A1 (en) User device and mapping data management method thereof
CN101145136B (en) Processor memory array having memory macros and its protecting method
US20130128675A1 (en) Nonvolatile memory device, memory system and controller operating method
US9058257B2 (en) Persistent block storage attached to memory bus
CN113220220B (en) Controller, operation method of controller and storage device comprising controller
CN113093988B (en) Memory device including memory controller
US20180024774A1 (en) Memory system and operating method thereof
US20170371555A1 (en) Method for reducing use of dram in ssd and the ssd using the same
US11061614B2 (en) Electronic apparatus having data retention protection and operating method thereof
US9384125B2 (en) Method for accessing flash memory having pages used for data backup and associated memory device
US20130166893A1 (en) Auxiliary card initialization routine
WO2017027142A1 (en) Method and apparatus for defect management in a non-volatile memory device
CN101329623B (en) Computer system and memory control method
CN101246429A (en) Electronic systems using flash memory modules as main storage and related system booting methods
CN103677879A (en) Software installation method and corresponding software installation device
CN112394878A (en) Storage device and operation method thereof, computing system and operation method thereof
US10073637B2 (en) Data storage device based on a descriptor and operating method thereof
CN105005502A (en) Method and system for ending SD card using process through kernel
CN114579356A (en) Memory controller and operating method thereof
US11194512B2 (en) Data storage device which selectively performs a cache read or a normal read operation depending on work load and operating method thereof
TWI718317B (en) Data storage device and data processing system
US10657046B2 (en) Data storage device and operating method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant