CN103823633A - Management circuit for small files - Google Patents
Management circuit for small files Download PDFInfo
- Publication number
- CN103823633A CN103823633A CN201210461856.XA CN201210461856A CN103823633A CN 103823633 A CN103823633 A CN 103823633A CN 201210461856 A CN201210461856 A CN 201210461856A CN 103823633 A CN103823633 A CN 103823633A
- Authority
- CN
- China
- Prior art keywords
- flash
- small documents
- state machine
- small files
- splicing
- 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.)
- Pending
Links
Images
Abstract
The invention discloses a management circuit for small files. A state machine records positions and sizes of the small files in a buffer according to software configurations and instructions; the state machine instructs a FLASH control circuit to read existing non-spliced small files in a FLASH to the buffer in idle time; small files, suitable for being spliced with current small files, in the existing small files are calculated according to sizes of the current small files; the buffer is controlled to store the current small files and the small files matched with the same together; the small files subjected to splicing are written into the FLASH from the buffer; the FLASH is programmed; the state machine instructs the FLASH control circuit to erase FLASH space occupied by the small files, which are subjected to splicing and are written into the FLASH, before splicing in idle time. By the management circuit, access speed of the small files can be effectively increased.
Description
Technical field
The present invention relates to FLASH(flash memory) field, particularly relate to a kind of small documents management circuit.
Background technology
In multimedia and field of storage, data access speed more and more becomes one of key index of product.The speed of processing small documents is the weakness of most of product.Shown in Figure 1, existing small documents management circuit, comprises an impact damper, a FLASH control circuit, a FLASH.Described FLASH control circuit, first reads into impact damper the small documents in FLASH, and stitchs together with the small documents that is about to write FLASH; Wipe the interval that FLASH is corresponding; The small documents having stitched together is written to FALSH; To described FLASH programming.The time of wiping in the middle of this and programme, read-write was very long relatively, had had a strong impact on the read or write speed of FLASH.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of small documents management circuit, can effectively improve the access speed of small documents.
For solving the problems of the technologies described above, small documents management circuit of the present invention, comprising: a buffer, a FLASH control circuit, a FLASH; Also comprise a state machine;
Described state machine is according to the configuration of software and indication, and position and size to small documents in described impact damper are carried out record;
Utilize free time, described state machine indicates described FLASH control circuit that small documents existing in described FLASH and not splicing is read in described impact damper;
Described state machine, according to the size of current small documents, calculates the small documents that is applicable to splicing in existing small documents with current small documents; And indicate described in the control of described FLASH control circuit impact damper exists current small documents with the small documents matching together with, and notify software;
Described state machine indication FLASH control circuit, the small documents after splicing is completed, is written to described FLASH from described impact damper;
To described FLASH programming;
Utilize free time, after described state machine indication FLASH control circuit completes splicing and write the FLASH space before splicing that the small documents of FLASH occupies and wipe.
The present invention only spends less expense, on existing small documents management circuit basis, increases by a state machine, small documents is read to buffer and wipe the time that FLASH space spends to be submerged in free time; Solve the problem of the small documents read-write jogging speed of prior art existence, saved in a large number the time of small documents read-write, effectively improved the access speed of small documents.
Accompanying drawing explanation
Below in conjunction with accompanying drawing and embodiment, the present invention is further detailed explanation:
Fig. 1 is existing small documents management circuit theory diagram;
Fig. 2 is small documents management circuit one embodiment theory diagram of the present invention.
Embodiment
Shown in Figure 2, in the following embodiments, small documents management circuit of the present invention, comprising: an impact damper, a FLASH control circuit, a FLASH, a state machine.
The described state machine increasing on existing small documents management circuit basis, has described FLASH control circuit certain intelligent.
Described state machine is according to the configuration of software and indication, and position and size to small documents in described impact damper are carried out record; Increase zone bit at FLASH control circuit, to identify space and the position of the shared impact damper of small documents, for later splicing is prepared.
Before described FLASH is used, there are some small documents to be present in FLASH, utilize free time, described state machine indication FLASH control circuit is read existing small documents (not spliced) impact damper from FLASH.So-called free time, the meaning is the time that system does not operate FLASH.
Described state machine, according to the size of current small documents (being that system newly adds the small documents of coming in), calculates which and current small documents in existing small documents (small documents existing and that do not splice in FLASH) and splices proper.Indication FLASH control circuit controller buffer exists current small documents with the small documents matching together with, and notify software, so that file management.
Described state machine indication FLASH control circuit, the data (being spliced small documents) after splicing is completed, are written to FLASH from impact damper.FLASH is programmed.
Utilize free time, after described state machine indication FLASH control circuit completes splicing and write the FLASH space before splicing that the small documents of FLASH occupies and wipe.In general, the order of FLASH control circuit control FLASH read-write operation directly comes from system, and above-mentioned read-write/erase command of mentioning is that described state machine increases voluntarily according to current state.
Like this, small documents management circuit of the present invention is write the small documents time used at every turn and is only had the half of original small documents management circuit time used.Described small documents refers to that file size is less than FLASH minimum memory unit, is less than the space of FLASH one page (Page).
Small documents management circuit of the present invention also has following characteristics: do not affect original circuit structure, increase the state machine for optimum management; According to size or other software requirements of current small documents, determine whether to start this state machine; Described state machine can be according to the free time of system, inserts non-instant task.
The present invention is applicable to the storage products that FLASH is relevant.
By embodiment, the present invention is had been described in detail above, but these are not construed as limiting the invention.Without departing from the principles of the present invention, those skilled in the art also can make many distortion and improvement, and these also should be considered as protection scope of the present invention.
Claims (2)
1. a small documents management circuit, comprising: a buffer, a FLASH control circuit, a FLASH; It is characterized in that, also comprise a state machine;
Described state machine is according to the configuration of software and indication, and position and size to small documents in described impact damper are carried out record;
Utilize free time, described state machine indicates described FLASH control circuit that small documents existing in described FLASH and not splicing is read in described impact damper;
Described state machine, according to the size of current small documents, calculates the small documents that is applicable to splicing in existing small documents with current small documents; And indicate described in the control of described FLASH control circuit impact damper exists current small documents with the small documents matching together with, and notify software;
Described state machine indication FLASH control circuit, the small documents after splicing is completed, is written to described FLASH from described impact damper;
To described FLASH programming;
Utilize free time, after described state machine indication FLASH control circuit completes splicing and write the FLASH space before splicing that the small documents of FLASH occupies and wipe.
2. small documents management circuit as claimed in claim 1, is characterized in that: described free time refers to the time that system does not operate FLASH.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210461856.XA CN103823633A (en) | 2012-11-16 | 2012-11-16 | Management circuit for small files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210461856.XA CN103823633A (en) | 2012-11-16 | 2012-11-16 | Management circuit for small files |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103823633A true CN103823633A (en) | 2014-05-28 |
Family
ID=50758723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210461856.XA Pending CN103823633A (en) | 2012-11-16 | 2012-11-16 | Management circuit for small files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103823633A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1299096A (en) * | 2001-01-12 | 2001-06-13 | 常促宇 | High-capacity moving storage of universal serial bus interface and its implementation method |
CN101916228A (en) * | 2010-08-17 | 2010-12-15 | 中国人民解放军国防科学技术大学 | Flash translation layer (FTL) with data compression function and implementation method |
US20110320692A1 (en) * | 2009-11-11 | 2011-12-29 | Panasonic Corporation | Access device, information recording device, controller, real time information recording system, access method, and program |
CN102419775A (en) * | 2011-12-22 | 2012-04-18 | 厦门雅迅网络股份有限公司 | Method for storing and retrieving massive small files |
-
2012
- 2012-11-16 CN CN201210461856.XA patent/CN103823633A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1299096A (en) * | 2001-01-12 | 2001-06-13 | 常促宇 | High-capacity moving storage of universal serial bus interface and its implementation method |
US20110320692A1 (en) * | 2009-11-11 | 2011-12-29 | Panasonic Corporation | Access device, information recording device, controller, real time information recording system, access method, and program |
CN101916228A (en) * | 2010-08-17 | 2010-12-15 | 中国人民解放军国防科学技术大学 | Flash translation layer (FTL) with data compression function and implementation method |
CN102419775A (en) * | 2011-12-22 | 2012-04-18 | 厦门雅迅网络股份有限公司 | Method for storing and retrieving massive small files |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI604308B (en) | Data storage device and data maintenance method thereof | |
JP5853899B2 (en) | Storage control device, storage device, information processing system, and processing method therefor | |
JP2014182503A5 (en) | ||
CN101120414A (en) | Data relocation in a memory system | |
CN105824582A (en) | Information processing method and electronic equipment | |
CN104699417A (en) | Data storage device and data access method thereof | |
EP2199917A1 (en) | Cache control apparatus and method | |
CN102135943B (en) | Storing and accessing method of flash memory data and device thereof | |
CN107168651A (en) | A kind of small documents polymerize storage processing method | |
CN102012873A (en) | Cache system of Not AND (NAND) flash memory and cache method | |
US9612610B2 (en) | Data storage device and mode-detection method thereof | |
CN105389268B (en) | Data storage system and its operation method | |
CN103092771A (en) | Solid-state storing device and control method of cache thereof | |
CN104239226A (en) | Method for designing iSCSI storage server with independent cache | |
CN102708062A (en) | Multimedia storage method and multimedia storage device based on data block | |
CN103530236A (en) | Method and device for obtaining hybrid hard disk | |
CN102629212A (en) | Method for indirectly programming to NANDFLASH based on J-LINK | |
CN103412727A (en) | Method for optimizing deletion command of solid state disk and solid state disk using same | |
CN103440181A (en) | Method and system for modifying files | |
CN103488772A (en) | Method, system and equipment for caching files through external storage | |
CN103823633A (en) | Management circuit for small files | |
CN107329912A (en) | A kind of power down process method of NAND FLASH arrays | |
CN105589912A (en) | Method and storage structure for processing frequently written document with MRAM (Magnetic Random Access Memory) | |
CN101794254B (en) | NAND-FLASH data processing method | |
CN107193507A (en) | Magneto-optic electricity mixing storage method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140528 |