CN102375850A - File arrangement method and starting method of electronic equipment and electronic equipment - Google Patents

File arrangement method and starting method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN102375850A
CN102375850A CN201010261143XA CN201010261143A CN102375850A CN 102375850 A CN102375850 A CN 102375850A CN 201010261143X A CN201010261143X A CN 201010261143XA CN 201010261143 A CN201010261143 A CN 201010261143A CN 102375850 A CN102375850 A CN 102375850A
Authority
CN
China
Prior art keywords
files
volatile memory
memory medium
file
electronic equipment
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.)
Granted
Application number
CN201010261143XA
Other languages
Chinese (zh)
Other versions
CN102375850B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 201010261143 priority Critical patent/CN102375850B/en
Publication of CN102375850A publication Critical patent/CN102375850A/en
Application granted granted Critical
Publication of CN102375850B publication Critical patent/CN102375850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a file arrangement method and a starting method of electronic equipment and electronic equipment. The electronic equipment has a nonvolatile storage medium which stores the operation system file of the electronic equipment and a software program file based on the operation system. The file arrangement method comprises: monitoring file information of a plurality of files written into the nonvolatile storage medium; and rearranging the data corresponding to the files in the nonvolatile storage medium according to the file information of the plurality of files, so that the corresponding data can be continuously arranged in the nonvolatile storage medium. In the embodiment of the application, the files which are required to be written into the nonvolatile storage medium and are arranged randomly in the nonvolatile storage medium originally are rearranged according to a sequence, so that when read again, the files can be read at one time according to the arrangement sequence of the files and the time required by the electronic equipment for reading the files is reduced.

Description

The file arrangement method of electronic equipment, startup method and electronic equipment
Technical field
The present invention relates to electronic technology field, particularly the file arrangement method of electronic equipment, startup method and electronic equipment.
Background technology
Present PC (Personal Computer; Personal computer) a large amount of system files and installed software have been stored in the hard disk at terminal; These system files and software is random alignment in the clearance spaces of hard disk, and in the starting up of terminal process, operating system need read a large amount of resources; Comprise the reading system file to internal memory, and read and start relevant software to internal memory from hard disk.
The inventor finds in the research process to prior art, because the erection sequence and the asynchronism(-nization) of interior system file of hard disk and software, so its storage order in hard disk is at random; When causing in the starting operating system process thus to the reading of above-mentioned file; Need on the diverse location of hard disk, search these files according to rule, read then, this mode that reads at random will expend the long time; Usually need 1 minute at least, cause the starting operating system process slow thus.
Summary of the invention
The purpose of the embodiment of the invention is to provide file arrangement method, startup method and the electronic equipment of electronic equipment, when solving in the prior art electronic equipment start, and the problem that the start process time is long; Further, solving electronic equipment of the prior art required file in start process, because of on nonvolatile memory at random, discontinuous storage, and the required file long problem that need expend time in that in start process, reads that causes.
For solving the problems of the technologies described above, the embodiment of the invention provides following technical scheme:
A kind of file arrangement method of electronic equipment, said electronic equipment has a non-volatile memory medium, stores the operating system file of said electronic equipment in the said non-volatile memory medium and based on the software program file of operating system, comprising:
In the start process of said electronic equipment, monitoring is written to the fileinfo of a plurality of files that are prone to the mistake storage medium;
Fileinfo according to said a plurality of files is arranged said a plurality of files pairing data on said non-volatile memory medium again, and the data of said correspondence are arranged on the said non-volatile memory medium continuously.
The fileinfo that said monitoring is written to a plurality of files that are prone to the mistake storage medium comprises:
Analysis is written to a plurality of files in the volatile storage medium;
Obtain the file size and the document location in said non-volatile memory medium of said a plurality of files according to the result who analyzes.
Also comprise: the write sequence that obtains a plurality of files of said write in the volatile storage medium.
Said at the fileinfo on the said non-volatile memory medium said a plurality of files pairing data on said non-volatile memory medium being arranged again according to said a plurality of files comprises:
Add up the gross space of the said non-volatile memory medium that said a plurality of file needs take according to said file size;
In said non-volatile memory medium, search and said gross space storage space of the same size, and the position of writing down said storage space;
Document location according to said a plurality of files obtains the pairing data of said a plurality of file from said non-volatile memory medium;
Position according to said storage space is written to said storage space with the pairing data of said a plurality of files.
Also comprise:
After the pairing data of a plurality of files obtained of order are written to said storage space successively, delete the data of the corresponding a plurality of files of said document location on the said non-volatile memory medium.
A kind of startup method of electronic equipment, said method are applied in the process of said electronic equipment startup, and said method comprises:
Obtain the position of the storage space of a plurality of files on non-volatile memory medium that is written to volatile storage medium; Wherein, The data storage of said a plurality of files is occupied first storage space on said non-volatile memory medium, the pairing a plurality of data of said a plurality of files are arranged in said first storage space continuously;
From said non-volatile memory medium, read said a plurality of file in the position of the storage space on the said non-volatile memory medium continuously according to said a plurality of files;
Accomplish the startup of said electronic equipment according to the said a plurality of files that read.
The said a plurality of files that are written to volatile storage medium are specially: said electronic equipment in a preceding start-up course, to need from said non-volatile memory medium, be written to pairing data of file in the said volatile storage medium arrange the back again and form be arranged in a plurality of files in said first storage area continuously.
The pairing a plurality of data of said a plurality of file are arranged in continuously in said first storage space and are specially: the sequencing when the pairing a plurality of data of said a plurality of files write said volatile storage medium according to said a plurality of files is arranged in said first storage space continuously.
A kind of file arrangement method of electronic equipment, said electronic equipment has a non-volatile memory medium, stores the application file of said electronic equipment in the said non-volatile memory medium, comprising:
In starting the application program process, monitoring is written to the fileinfo of a plurality of application files that are prone to the mistake storage medium;
Fileinfo according to said a plurality of application files is arranged said a plurality of application files pairing data on said non-volatile memory medium again, and the data of said correspondence are arranged on the said non-volatile memory medium continuously.
A kind of electronic equipment, said electronic equipment has a non-volatile memory medium, stores the operating system file of said electronic equipment in the said non-volatile memory medium and based on the software program file of operating system, comprising:
First monitoring means is used for the start process at said electronic equipment, and monitoring is written to the fileinfo of a plurality of files that are prone to the mistake storage medium;
First unit of arranging is used for according to the fileinfo of said a plurality of files said a plurality of files pairing data on said non-volatile memory medium being arranged again, and the data of said correspondence are arranged on the said non-volatile memory medium continuously.
Said monitoring means comprises:
The file analysis unit is used for analyzing a plurality of files that are written to volatile storage medium;
Information acquisition unit is used for obtaining the file size of said a plurality of files and at the document location of said non-volatile memory medium according to the result who analyzes;
Said information acquisition unit also is used for obtaining the write sequence of said write to a plurality of files of volatile storage medium.
The said unit of arranging comprises:
The gross space of the said non-volatile memory medium that said a plurality of file needs take is added up in the spatial statistics unit according to said file size;
The unit is searched in the space, in said non-volatile memory medium, searches and said gross space storage space of the same size, and the position of writing down said storage space;
The file acquiring unit obtains the pairing data of said a plurality of file according to the document location of said a plurality of files from said non-volatile memory medium;
The file writing unit is written to said storage space according to the position of said storage space with the pairing data of said a plurality of files.
Also comprise:
Delete cells after being used for the pairing data of a plurality of files obtained of order are written to said storage space successively, is deleted the data of the corresponding a plurality of files of said document location on the said non-volatile memory medium.
A kind of electronic equipment comprises:
Acquiring unit; Be used to obtain the position of the storage space of a plurality of files on non-volatile memory medium that is written to volatile storage medium; Wherein, The data storage of said a plurality of files is occupied first storage space on said non-volatile memory medium, the pairing a plurality of data of said a plurality of files are arranged in said first storage space continuously;
Reading unit is used for from said non-volatile memory medium, reading said a plurality of file according to the position at the storage space on the said non-volatile memory medium of said a plurality of files continuously;
Start unit is used for accomplishing according to the said a plurality of files that read the startup of said electronic equipment.
A kind of electronic equipment, said electronic equipment has a non-volatile memory medium, stores the application file of said electronic equipment in the said non-volatile memory medium, comprising:
Second monitoring means is used for starting the application program process, and monitoring is written to the fileinfo of a plurality of application files that are prone to the mistake storage medium;
Second unit of arranging; Be used for said a plurality of application files pairing data on said non-volatile memory medium being arranged again, the data of said correspondence are arranged on the said non-volatile memory medium continuously according to the fileinfo of said a plurality of application files.
Technical scheme by the above embodiment of the invention provides is visible; Be written to the easy fileinfo that loses a plurality of files of storage medium through monitoring among the application embodiment; Fileinfo according to a plurality of files is arranged a plurality of files pairing data on non-volatile memory medium again, makes corresponding data be arranged on the non-volatile memory medium continuously; Follow-uply can from non-volatile memory medium, read a plurality of files continuously according to the position of the storage space of a plurality of files on non-volatile memory medium that is written to volatile storage medium.Since among the application embodiment in the electronic equipment start-up course; Needs are write volatile storage medium, and original on non-volatile memory medium the file series arrangement again of random alignment, when therefore reading these files once more; Can put in order according to it and once read; Practiced thrift the time that electronic equipment reads file thus, special in starting up's process for the reading of operating system file, can greatly practice thrift the on time of system.
Description of drawings
Fig. 1 is the first embodiment process flow diagram of the file arrangement method of the application's electronic equipment;
Fig. 2 is the second embodiment process flow diagram of the file arrangement method of the application's electronic equipment;
Fig. 3 is the 3rd an embodiment process flow diagram of the file arrangement method of the application's electronic equipment;
Fig. 4 is the embodiment process flow diagram of the startup method of the application's electronic equipment;
Fig. 5 is the first embodiment block diagram of the application's electronic equipment;
Fig. 6 is the second embodiment block diagram of the application's electronic equipment;
Fig. 7 is the 3rd an embodiment block diagram of the application's electronic equipment.
Embodiment
In following a plurality of embodiment of the present invention, some embodiment provides a kind of file arrangement method of electronic equipment, and some embodiment provides a kind of startup method of electronic equipment, and some embodiment provides a kind of electronic equipment.
In order to make those skilled in the art person understand the technical scheme in the embodiment of the invention better; And make the above-mentioned purpose of the embodiment of the invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing technical scheme in the embodiment of the invention done further detailed explanation.
Referring to Fig. 1, be the first embodiment process flow diagram of the file arrangement method of the application's electronic equipment, this embodiment has described the process that electronic equipment starting up process is arranged to file:
Step 101: in the start process of electronic equipment, monitoring is written to the fileinfo of a plurality of files that are prone to the mistake storage medium.
Among the application embodiment, electronic equipment has a non-volatile memory medium, stores the operating system file of electronic equipment in the non-volatile memory medium and based on the software program file of operating system.When the electronic equipment in the present embodiment was a PC terminal, wherein volatile storage medium mainly referred to the internal memory of PC, and non-volatile memory medium mainly refers to hard disk or the SSD (Solid State Disk, solid state hard disc) of PC.
Concrete, analyze and be written to a plurality of files in the volatile storage medium, obtain a plurality of file file sizes and the document location in non-volatile memory medium according to the result who analyzes; Further can also obtain the write sequence that is written to a plurality of files in the volatile storage medium.
Step 102: the fileinfo according to a plurality of files is arranged a plurality of files pairing data on non-volatile memory medium again, and these corresponding data are arranged on the non-volatile memory medium continuously.
Concrete; Add up the gross space of the non-volatile memory medium that a plurality of file needs take according to file size; In non-volatile memory medium, search and gross space storage space of the same size; And the position of writing down this storage space, obtain the pairing data of a plurality of files according to the document location of a plurality of files from non-volatile memory medium, according to the position of storage space the pairing data of a plurality of files are written to said storage space.Wherein, When not obtaining the write sequence that is written to a plurality of files in the volatile storage medium in the step 101; Can with the pairing data random writing of a plurality of files in the said storage space, finally fill up this storage space, with guarantee can from this storage space once read a plurality of files that will be written to the non-volatile memory medium get final product; But disposable read a plurality of files after, need carry out write operation according to its order that is written in the volatile storage medium; When also having obtained the write sequence that is written to a plurality of files in the volatile storage medium in the step 101; Can from non-volatile memory medium, obtain the pairing data of a plurality of files according to the document location of a plurality of files according to write sequence; And will be written to storage space successively according to the pairing data of a plurality of files that write sequence obtains according to the position of storage space; Like this at electronic equipment once more in the start-up course; The file data that in storage space, reads is written to the volatile storage medium according to file and arranges; Therefore directly these files are written in the non-volatile memory medium and get final product, further reduced the write time thus, improved the starting up speed of electronic equipment.
Concrete; Also can for certain free space consistent, this document be transferred in this free space according to the size of the free space between any two files on document location and the file size judgement non-volatile memory medium with the file size of certain file; For other free space; With being filled in these free spaces after the file fractionation, finally make a plurality of files on non-volatile memory medium, arrange continuously, can disposablely be read.Wherein, When not obtaining the write sequence that is written to a plurality of files in the volatile storage medium in the step 101; When being split padding, file do not consider the write sequence of file; Free space between the file is filled up, it is arranged in continuously get final product in the storage space, with assurance can from this storage space once read a plurality of files that will be written to the non-volatile memory medium get final product; But disposable read a plurality of files after, need carry out write operation according to its order that is written in the volatile storage medium; When also having obtained the write sequence that is written to a plurality of files in the volatile storage medium in the step 101; Then when the size of judging the free space between two files is consistent with certain file size; To guarantee that also this document can be to arrange according to the write sequence that is written in the non-volatile memory medium with described two files; Just this document is transferred to two free spaces between the file; At electronic equipment once more in the start-up course, the file data that in storage space, reads is written to the volatile storage medium according to file and arranges, and therefore directly these files is written in the non-volatile memory medium to get final product like this; Further reduce the write time thus, improved the starting up speed of electronic equipment.For example; The data storage of file A is in first space of non-volatile memory medium; The data storage of file B is in the 4th space of non-volatile memory medium, and the data storage of file C supposes that in the 3rd space of non-volatile memory medium second space between file A and the file C is consistent with the file size of file B; Then the data with file B move in this second space, make file B arrange continuously with file A and file C respectively thus.
The foregoing description is an example with the PC terminal; When the operation system program; The magnetic head of hard disk drive at first search operation system program moves necessary file, reads the file data of these files, then file data is sent in disk cache (Cache) and the internal memory.Usually in the hard disk performance index, be called as average seek time (Average seek time) search time; Unit is a millisecond (ms); The average seek time of main flow hard disk is less than 9.5ms at present; If can the necessary file of operating system program launch be placed in the continuous space of disk, the time of magnetic head search will reduce a lot; Accordingly; Also be like this when reading file; Disk reads and is positioned at magnetic head below sectors of data required time and is merely and magnetic head is moved on to another place reads 1/5th of identical data required time again; So search time and time for reading affect the efficient that program is carried out to a great extent, so the application embodiment makes operating system start shooting once more through again operating system file being arranged; Can minimum limit ground be operated by magnetic head during the read operation system file, thereby improve the starting up speed at PC terminal.In other words, because data are continuously storages, so disk is disposable, and to read the valid data that are arranged in magnetic head below sectors of data be maximum.
Referring to Fig. 2, be the second embodiment process flow diagram of the file arrangement method of the application's electronic equipment, this embodiment shows in detail the process of in the electronic equipment starting up process file being arranged, and wherein electronic equipment is that example is described with the PC terminal:
Step 201: in the start process at PC terminal, analyze and be written to a plurality of files in the internal memory.
During the starting operating system at PC terminal; Start the monitor service program; Detect and currently be incorporated into all system files of internal memory, and analyze document location and the file size of each file in hard disk, for example from hard disk; Windows operating system is when start, and the file that needs to introduce internal memory comprises the core dll file under the system32 file.
Usually the PC terminal is recorded in the document location and the file size of each file of being analyzed in the startup file daily record of creating in advance; Being used for follow-up startup file daily record obtains the information of these files and carries out the rearrangement operation; This startup file daily record can be created with the txt form, and the sequencing the when file entry in the startup file daily record is introduced internal memory according to file carries out record.
Step 202: the result according to analyzing obtains the file size of a plurality of files and the document location in hard disk.
After the PC terminal operating system start, can be from the startup file daily record document location and the file size that need when starting the operating system, be written to the file in the internal memory of order reading and recording.
Step 203: the gross space of adding up the hard disk that a plurality of file needs take according to file size.
Step 204: in hard disk, search and gross space storage space of the same size, and the position in recording storage space.
Step 205: the document location according to a plurality of files obtains the pairing data of a plurality of files from hard disk.
Step 206: the position according to storage space is written to storage space with the pairing data of a plurality of files.
The gross space of the hard disk that takies according to these file needs of file size statistics is searched in hard disk and gross space hard drive space of the same size then, and the position of writing down this hard drive space.File size according to each file is distributed to each file respectively with above-mentioned hard drive space; And the position of hard drive space that will distribute to each file is as the target location of this document; With the source position of the document location that writes down in the startup file daily record as file; In hard disk, find corresponding file according to these source position orders; Read the file that finds and these files are saved on the target location corresponding on the hard drive space, thus the series arrangement of system file on hard disk when accomplishing start.
Step 207: after the pairing data of a plurality of files obtained of order are written to storage space successively, the data of a plurality of files that the original position on the deletion hard disk is corresponding.
File is being moved from the source position the process of target location, can temporarily not deleted the file on the source position, treat that All Files is arranged completion again after; Delete the file on the source position again; After perhaps having moved a part of file, delete these files on the source position again, thereby guarantee to move in the process; File can not lost because of power down, thereby guarantees safety of files.
Because in the prior art; The system file that is incorporated into internal memory from hard disk when the operating system at PC terminal is started shooting at every turn all is random alignment in hard disk, and these files link together with the mode of similar chained list, therefore when introducing internal memory, need search each file respectively according to chained list; These files are read at random; Therefore reading speed is slower, expends system resource, causes starting up of terminal speed to reduce; And among the application embodiment through in hard drive space, introducing the file of internal memory during the series arrangement starting operating system; Therefore can be so that the operating system at follow-up PC terminal when starting shooting again; Be read as disposable these files that reads of logic according to system; And needn't in hard disk, search these files, therefore practiced thrift system resource, the corresponding starting up speed that improves the PC terminal.
Referring to Fig. 3, be the second embodiment process flow diagram of the file arrangement method of the application's electronic equipment, this embodiment has described the process that the application programs file was arranged when electronic equipment started application program:
Step 301: in starting the application program process, monitoring is written to the fileinfo of a plurality of application files that are prone to the mistake storage medium.
Among the application embodiment, electronic equipment has a non-volatile memory medium, stores the application file of said electronic equipment in the non-volatile memory medium.When the electronic equipment in the present embodiment was a PC terminal, wherein volatile storage medium mainly referred to the internal memory of PC, and non-volatile memory medium mainly refers to the hard disk of PC.
Concrete, analyze and be written to a plurality of application files in the volatile storage medium, obtain the file size of a plurality of application files and the document location in non-volatile memory medium according to the result who analyzes; Further can also obtain the write sequence that is written to a plurality of application files in the volatile storage medium.
Step 302: the fileinfo according to a plurality of application files is arranged a plurality of application files pairing data on non-volatile memory medium again, and corresponding data are arranged on the non-volatile memory medium continuously.
Concrete; Add up the gross space of the non-volatile memory medium that a plurality of application file needs take according to file size; In non-volatile memory medium, search and gross space storage space of the same size; And the position of writing down this storage space, obtain the pairing data of a plurality of application files according to the document location of a plurality of application files from non-volatile memory medium, according to the position of storage space the pairing data of a plurality of application files are written to said storage space.Wherein, When not obtaining the write sequence that is written to a plurality of application files in the volatile storage medium in the step 301; Can be in said storage space with the pairing data random writing of a plurality of application files; Finally fill up this storage space; Guaranteeing that can once read a plurality of application files that institute will be written to the non-volatile memory medium from this storage space gets final product, still disposable read a plurality of application files after, need carry out write operation according to its order that is written in the volatile storage medium; When also having obtained the write sequence that is written to a plurality of application files in the volatile storage medium in the step 301; Can from non-volatile memory medium, obtain the pairing data of a plurality of application files according to the document location of a plurality of application files according to write sequence; And will be written to storage space successively according to the pairing data of a plurality of application files that write sequence obtains according to the position of storage space; Like this at electronic equipment once more in the start-up course; The application file data that in storage space, read are written to the volatile storage medium according to application file arranges; Therefore directly these application files are written in the non-volatile memory medium and get final product, further reduced the write time thus, improved the opening speed of application program.
Concrete; Also can be according to the size of the free space between any two application files on document location and the file size judgement non-volatile memory medium; For certain free space consistent with the file size of certain application file; This application file is transferred in this free space, for other free space, with being filled in these free spaces after the application file fractionation; Finally make a plurality of application files on non-volatile memory medium, arrange continuously, can disposablely be read.Wherein, When not obtaining the write sequence that is written to a plurality of application files in the volatile storage medium in the step 301; When splitting padding, the application programs file do not consider the write sequence of application file; Free space between the application file is filled up, it is arranged in continuously get final product in the storage space, with assurance can from this storage space once read a plurality of application files that will be written to the non-volatile memory medium get final product; But disposable read a plurality of application files after, need carry out write operation according to its order that is written in the volatile storage medium; When also having obtained the write sequence that is written to a plurality of application files in the volatile storage medium in the step 301; Then when the size of judging the free space between two application files is consistent with certain application file size; To guarantee that also this application file can be to arrange according to the write sequence that is written in the non-volatile memory medium with described two application files; Just this application file is transferred to two free spaces between the file; Like this at electronic equipment once more in the start-up course; The file data that in storage space, reads is written to the volatile storage medium according to application file and arranges; Therefore directly these application files are written in the non-volatile memory medium and get final product, further reduced the write time thus, improved the opening speed of application program.
Referring to Fig. 4; Startup method embodiment process flow diagram for the application's electronic equipment; This embodiment is applied in the process of electronic equipment startup, and this embodiment starts based on a plurality of files of on non-volatile memory medium, arranging continuously among the aforementioned document arrangement method embodiment:
Step 401: the position that obtains the storage space of a plurality of files on non-volatile memory medium that is written to volatile storage medium.
Wherein, the data storage of a plurality of files is occupied first storage space on said non-volatile memory medium, and the pairing a plurality of data of a plurality of files are arranged in first storage space continuously.
Wherein, The a plurality of files that are written to volatile storage medium are specially electronic equipment in a preceding start-up course; To after need from said non-volatile memory medium, being written to pairing data of file in the said volatile storage medium and arranging again, be arranged in a plurality of files in said first storage area continuously; The pairing a plurality of data of a plurality of files are arranged in continuously and are specially the sequencing of the pairing a plurality of data of a plurality of files when writing volatile storage medium according to a plurality of files in first storage space and are arranged in continuously in first storage space.
Step 402: a plurality of files are read continuously in the position at the storage space on the said non-volatile memory medium according to a plurality of files from non-volatile memory medium.
Step 403: accomplish the startup of electronic equipment according to a plurality of files that read.
Still be example with the os starting in the PC terminal; After the operating system in the PC terminal is started shooting again; The position of hard drive space according to record obtains tactic system file from hard disk, is incorporated in the internal memory start of complete operation system with these system files are disposable.
Because the PC terminal operating system quantity of documents that in start process, need read is all the same with size, and hard disk passes through the magnetic head reading of data, and magnetic head whenever reads a secondary data need expend the regular hour, and the number of times that reads of magnetic head consumed time is long more more at most; The maximum of the each reading of data of magnetic head is assumed to be 1M; Then have 100 when all start files, and total size is when being 10M and series arrangement, magnetic head need read altogether 10 times; And if these 100 files are in hard disk during random alignment; Then magnetic head need read 100 times at random, and consumed time will be 10 times that order reads thus, so the application can greatly improve the starting up speed at terminal.
In addition, the application embodiment need arrange system file when operating system is started shooting first again, follow-uply just can read file according to the order of the result after resetting when starting shooting again; And; After having increased new system file in the terminal; These system files possibly be kept on the position different with the system file of having arranged at random, this moment can according to system file in the terminal more new situation carry out the process of rank file again, repeat no more at this.
Electronic equipment among above-mentioned each embodiment can have the electronic equipment of operating system and application program for common being seen PC terminal, notebook computer etc.
Corresponding with the embodiment of the file arrangement method of electronic equipment of the present invention, startup method, the present invention also provides the embodiment of electronic equipment.Electronic equipment can have the electronic equipment of operating system and application program for common being seen PC terminal, notebook computer etc.
Referring to Fig. 5; The first embodiment block diagram for the application's electronic equipment; This electronic equipment has a non-volatile memory medium; Store the operating system file of this electronic equipment in this non-volatile memory medium and based on the software program file of operating system, the associated documents when this electronic equipment is used for starting operating system are arranged again.
This electronic equipment comprises: first monitoring means 510 and first unit 520 of arranging.
Wherein, first monitoring means is used for the start process at said electronic equipment, and monitoring is written to the fileinfo of a plurality of files that are prone to the mistake storage medium;
First unit of arranging is used for according to the fileinfo of said a plurality of files said a plurality of files pairing data on said non-volatile memory medium being arranged again, and the data of said correspondence are arranged on the said non-volatile memory medium continuously.
Concrete, first monitoring means 510 can comprise (not shown among Fig. 5): the file analysis unit is used for analyzing a plurality of files that are written to volatile storage medium; Information acquisition unit is used for obtaining the file size of said a plurality of files and at the document location of said non-volatile memory medium according to the result who analyzes; Said information acquisition unit also is used for obtaining the write sequence of said write to a plurality of files of volatile storage medium.
Concrete, first unit 520 of arranging can comprise (not shown among Fig. 5): the spatial statistics unit, add up the gross space of the said non-volatile memory medium that said a plurality of file needs take according to said file size; The unit is searched in the space, in said non-volatile memory medium, searches and said gross space storage space of the same size, and the position of writing down said storage space; The file acquiring unit obtains the pairing data of said a plurality of file according to the document location of said a plurality of files from said non-volatile memory medium; The file writing unit is written to said storage space according to the position of said storage space with the pairing data of said a plurality of files.
Further; This electronic equipment can also comprise (not shown among Fig. 5): delete cells; After being used for the pairing data of a plurality of files obtained of order are written to said storage space successively, delete the data of the corresponding a plurality of files of said document location on the said non-volatile memory medium.
Referring to Fig. 6, be the second embodiment block diagram of the application's electronic equipment, this electronic equipment starts based on a plurality of files of arranging continuously on its non-volatile memory medium.
This electronic equipment comprises: acquiring unit 610, reading unit 620 and start unit 630.
Wherein, Acquiring unit 610; Be used to obtain the position of the storage space of a plurality of files on non-volatile memory medium that is written to volatile storage medium; Wherein, the data storage of said a plurality of files is occupied first storage space on said non-volatile memory medium, and the pairing a plurality of data of said a plurality of files are arranged in said first storage space continuously;
Reading unit 620 is used for from said non-volatile memory medium, reading said a plurality of file according to the position at the storage space on the said non-volatile memory medium of said a plurality of files continuously;
Start unit 630 is used for accomplishing according to the said a plurality of files that read the startup of said electronic equipment.
Referring to Fig. 7; The 3rd embodiment block diagram for the application's electronic equipment; Electronic equipment has a non-volatile memory medium, stores the application file of this electronic equipment in this non-volatile memory medium, and this electronic equipment is used for the application programs file and arranges again.
This electronic equipment comprises: second monitoring means 710 and second unit 720 of arranging.
Wherein, second monitoring means 710 is used for starting the application program process, and monitoring is written to the fileinfo of a plurality of application files that are prone to the mistake storage medium;
Second unit 720 of arranging; Be used for said a plurality of application files pairing data on said non-volatile memory medium being arranged again, the data of said correspondence are arranged on the said non-volatile memory medium continuously according to the fileinfo of said a plurality of application files.
Description through above embodiment can be known; Be written to the easy fileinfo that loses a plurality of files of storage medium through monitoring among the application embodiment; Fileinfo according to a plurality of files is arranged a plurality of files pairing data on non-volatile memory medium again, makes corresponding data be arranged on the non-volatile memory medium continuously; Follow-uply can from non-volatile memory medium, read a plurality of files continuously according to the position of the storage space of a plurality of files on non-volatile memory medium that is written to volatile storage medium.Owing among the application embodiment,, needs are write volatile storage medium in the electronic equipment start-up course; And the original file of random alignment series arrangement again on non-volatile memory medium; When therefore reading these files once more, can put in order according to it and once read, practice thrift the time that electronic equipment reads file thus; Special in starting up's process for the reading of operating system file, can greatly practice thrift the on time of system.
The technology that those skilled in the art can be well understood in the embodiment of the invention can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme in the embodiment of the invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for system embodiment, because it is basically similar in appearance to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1. the file arrangement method of an electronic equipment; Said electronic equipment has a non-volatile memory medium; Store the operating system file of said electronic equipment in the said non-volatile memory medium and, it is characterized in that, comprising based on the software program file of operating system:
In the start process of said electronic equipment, monitoring is written to the fileinfo of a plurality of files that are prone to the mistake storage medium;
Fileinfo according to said a plurality of files is arranged said a plurality of files pairing data on said non-volatile memory medium again, and the data of said correspondence are arranged on the said non-volatile memory medium continuously.
2. method according to claim 1 is characterized in that, the fileinfo that said monitoring is written to a plurality of files that are prone to the mistake storage medium comprises:
Analysis is written to a plurality of files in the volatile storage medium;
Obtain the file size and the document location in said non-volatile memory medium of said a plurality of files according to the result who analyzes.
3. method according to claim 2 is characterized in that, also comprises: the write sequence that obtains a plurality of files of said write in the volatile storage medium.
4. method according to claim 2 is characterized in that, said at the fileinfo on the said non-volatile memory medium said a plurality of files pairing data on said non-volatile memory medium being arranged again according to said a plurality of files comprises:
Add up the gross space of the said non-volatile memory medium that said a plurality of file needs take according to said file size;
In said non-volatile memory medium, search and said gross space storage space of the same size, and the position of writing down said storage space;
Document location according to said a plurality of files obtains the pairing data of said a plurality of file from said non-volatile memory medium;
Position according to said storage space is written to said storage space with the pairing data of said a plurality of files.
5. method according to claim 4 is characterized in that, also comprises:
After the pairing data of a plurality of files obtained of order are written to said storage space successively, delete the data of the corresponding a plurality of files of said document location on the said non-volatile memory medium.
6. the startup method of an electronic equipment is characterized in that, said method is applied in the process of said electronic equipment startup, and said method comprises:
Obtain the position of the storage space of a plurality of files on non-volatile memory medium that is written to volatile storage medium; Wherein, The data storage of said a plurality of files is occupied first storage space on said non-volatile memory medium, the pairing a plurality of data of said a plurality of files are arranged in said first storage space continuously;
From said non-volatile memory medium, read said a plurality of file in the position of the storage space on the said non-volatile memory medium continuously according to said a plurality of files;
Accomplish the startup of said electronic equipment according to the said a plurality of files that read.
7. method according to claim 6; It is characterized in that; The said a plurality of files that are written to volatile storage medium are specially: said electronic equipment in a preceding start-up course, to need from said non-volatile memory medium, be written to pairing data of file in the said volatile storage medium arrange the back again and form be arranged in a plurality of files in said first storage area continuously.
8. method according to claim 6; It is characterized in that the pairing a plurality of data of said a plurality of files are arranged in continuously in said first storage space and are specially: the sequencing when the pairing a plurality of data of said a plurality of files write said volatile storage medium according to said a plurality of files is arranged in said first storage space continuously.
9. the file arrangement method of an electronic equipment, said electronic equipment has a non-volatile memory medium, stores the application file of said electronic equipment in the said non-volatile memory medium, it is characterized in that, comprising:
In starting the application program process, monitoring is written to the fileinfo of a plurality of application files that are prone to the mistake storage medium;
Fileinfo according to said a plurality of application files is arranged said a plurality of application files pairing data on said non-volatile memory medium again, and the data of said correspondence are arranged on the said non-volatile memory medium continuously.
10. electronic equipment, said electronic equipment has a non-volatile memory medium, stores the operating system file of said electronic equipment in the said non-volatile memory medium and based on the software program file of operating system, it is characterized in that, comprising:
First monitoring means is used for the start process at said electronic equipment, and monitoring is written to the fileinfo of a plurality of files that are prone to the mistake storage medium;
First unit of arranging is used for according to the fileinfo of said a plurality of files said a plurality of files pairing data on said non-volatile memory medium being arranged again, and the data of said correspondence are arranged on the said non-volatile memory medium continuously.
11. electronic equipment according to claim 10 is characterized in that, said monitoring means comprises:
The file analysis unit is used for analyzing a plurality of files that are written to volatile storage medium;
Information acquisition unit is used for obtaining the file size of said a plurality of files and at the document location of said non-volatile memory medium according to the result who analyzes;
Said information acquisition unit also is used for obtaining the write sequence of said write to a plurality of files of volatile storage medium.
12. electronic equipment according to claim 11 is characterized in that, the said unit of arranging comprises:
The gross space of the said non-volatile memory medium that said a plurality of file needs take is added up in the spatial statistics unit according to said file size;
The unit is searched in the space, in said non-volatile memory medium, searches and said gross space storage space of the same size, and the position of writing down said storage space;
The file acquiring unit obtains the pairing data of said a plurality of file according to the document location of said a plurality of files from said non-volatile memory medium;
The file writing unit is written to said storage space according to the position of said storage space with the pairing data of said a plurality of files.
13. electronic equipment according to claim 12 is characterized in that, also comprises:
Delete cells after being used for the pairing data of a plurality of files obtained of order are written to said storage space successively, is deleted the data of the corresponding a plurality of files of said document location on the said non-volatile memory medium.
14. an electronic equipment is characterized in that, comprising:
Acquiring unit; Be used to obtain the position of the storage space of a plurality of files on non-volatile memory medium that is written to volatile storage medium; Wherein, The data storage of said a plurality of files is occupied first storage space on said non-volatile memory medium, the pairing a plurality of data of said a plurality of files are arranged in said first storage space continuously;
Reading unit is used for from said non-volatile memory medium, reading said a plurality of file according to the position at the storage space on the said non-volatile memory medium of said a plurality of files continuously;
Start unit is used for accomplishing according to the said a plurality of files that read the startup of said electronic equipment.
15. an electronic equipment, said electronic equipment has a non-volatile memory medium, stores the application file of said electronic equipment in the said non-volatile memory medium, it is characterized in that, comprising:
Second monitoring means is used for starting the application program process, and monitoring is written to the fileinfo of a plurality of application files that are prone to the mistake storage medium;
Second unit of arranging; Be used for said a plurality of application files pairing data on said non-volatile memory medium being arranged again, the data of said correspondence are arranged on the said non-volatile memory medium continuously according to the fileinfo of said a plurality of application files.
CN 201010261143 2010-08-23 2010-08-23 File arrangement method and starting method of electronic equipment and electronic equipment Active CN102375850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010261143 CN102375850B (en) 2010-08-23 2010-08-23 File arrangement method and starting method of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010261143 CN102375850B (en) 2010-08-23 2010-08-23 File arrangement method and starting method of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN102375850A true CN102375850A (en) 2012-03-14
CN102375850B CN102375850B (en) 2013-10-30

Family

ID=45794472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010261143 Active CN102375850B (en) 2010-08-23 2010-08-23 File arrangement method and starting method of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN102375850B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968324A (en) * 2012-11-30 2013-03-13 北京奇虎科技有限公司 Method and device for organizing booting files of computer system
CN102968323A (en) * 2012-11-30 2013-03-13 北京奇虎科技有限公司 Computer terminal and method for accelerating starting-up of computer system
WO2016082467A1 (en) * 2014-11-24 2016-06-02 捷开通讯(深圳)有限公司 Network-based file transfer method and system
CN107122209A (en) * 2017-04-18 2017-09-01 努比亚技术有限公司 Accelerator and method that terminal starts
CN107766464A (en) * 2017-09-28 2018-03-06 努比亚技术有限公司 A kind of file memory method, terminal and computer-readable recording medium
CN108924850A (en) * 2015-06-24 2018-11-30 福建天晴数码有限公司 Networking method of wireless network and device
CN108958824A (en) * 2017-05-18 2018-12-07 龙芯中科技术有限公司 Starting method, apparatus, electronic equipment and the storage medium of application program
CN111782149A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Information processing method and information processing device
CN112379846A (en) * 2020-12-01 2021-02-19 厦门市美亚柏科信息股份有限公司 Method and system for rapidly reading disk file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0696003B1 (en) * 1994-08-05 2001-02-28 Canon Kabushiki Kaisha A method and an apparatus for document processing
CN1296582A (en) * 1998-04-15 2001-05-23 微软公司 System and method for improved program launch time
CN1908937A (en) * 2006-08-09 2007-02-07 华为技术有限公司 FLASH document management method and system in FLASH memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0696003B1 (en) * 1994-08-05 2001-02-28 Canon Kabushiki Kaisha A method and an apparatus for document processing
CN1296582A (en) * 1998-04-15 2001-05-23 微软公司 System and method for improved program launch time
CN1908937A (en) * 2006-08-09 2007-02-07 华为技术有限公司 FLASH document management method and system in FLASH memory

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968323A (en) * 2012-11-30 2013-03-13 北京奇虎科技有限公司 Computer terminal and method for accelerating starting-up of computer system
CN102968324B (en) * 2012-11-30 2015-11-25 北京奇虎科技有限公司 The method for sorting of computer system power-on file and device
CN102968323B (en) * 2012-11-30 2016-05-25 北京奇虎科技有限公司 Terminal and the method that realizes computer system power-on acceleration
CN102968324A (en) * 2012-11-30 2013-03-13 北京奇虎科技有限公司 Method and device for organizing booting files of computer system
WO2016082467A1 (en) * 2014-11-24 2016-06-02 捷开通讯(深圳)有限公司 Network-based file transfer method and system
CN108924850B (en) * 2015-06-24 2021-06-01 福建天晴数码有限公司 Wireless network networking method and device
CN108924850A (en) * 2015-06-24 2018-11-30 福建天晴数码有限公司 Networking method of wireless network and device
CN107122209A (en) * 2017-04-18 2017-09-01 努比亚技术有限公司 Accelerator and method that terminal starts
CN108958824A (en) * 2017-05-18 2018-12-07 龙芯中科技术有限公司 Starting method, apparatus, electronic equipment and the storage medium of application program
CN107766464A (en) * 2017-09-28 2018-03-06 努比亚技术有限公司 A kind of file memory method, terminal and computer-readable recording medium
CN111782149A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Information processing method and information processing device
CN112379846A (en) * 2020-12-01 2021-02-19 厦门市美亚柏科信息股份有限公司 Method and system for rapidly reading disk file
CN112379846B (en) * 2020-12-01 2022-04-29 厦门市美亚柏科信息股份有限公司 Method and system for rapidly reading disk file

Also Published As

Publication number Publication date
CN102375850B (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN102375850B (en) File arrangement method and starting method of electronic equipment and electronic equipment
US7610465B2 (en) Method and related apparatus for data migration utilizing disk arrays
CN108733306B (en) File merging method and device
US8825653B1 (en) Characterizing and modeling virtual synthetic backup workloads
CN102779080B (en) Method for generating snapshot, method and device for data recovery by using snapshot
CN102662690A (en) Method and apparatus for starting application program
CN103279532A (en) Filtering system and filtering method for removing duplication of elements of multiple sets and identifying belonged sets
CN104267912A (en) NAS (Network Attached Storage) accelerating method and system
CN101960442B (en) Method and apparatus for inputting/outputting data using virtualization technique
CN103605630A (en) Virtual server system and data reading-writing method thereof
CN116662214B (en) Hard disk garbage recycling method, device, system and medium based on fio
CN102087646A (en) Method and device for establishing index
Castiglione et al. Automatic, selective and secure deletion of digital evidence
van der Meer et al. A contemporary investigation of NTFS file fragmentation
US11223528B2 (en) Management of cloud-based shared content using predictive cost modeling
Zimmermann et al. Forensic analysis of YAFFS2
KR20210059212A (en) Method for defending memory sharing-based side channel attacks by embedding random values in binaries
Shah et al. Forensic potentials of solid state drives
Karresand et al. An empirical study of the ntfs cluster allocation behavior over time
US20150261454A1 (en) Database device, computer program product and data processing method
CN115933994B (en) Data processing method and device, electronic equipment and storage medium
CN114115745B (en) RAID optimization method and device for multi-Pass programming NAND and computer equipment
Perklin Anti-forensics and anti-anti-forensics
CN106610883B (en) Detection method and device
JP2007334752A (en) Raid apparatus, raid control program, and cache management method

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