Image forming apparatus and memory management method for image forming apparatus

The memory management system in image forming devices uses a free node management array to quickly allocate and deallocate memory, addressing the slow memory search issue in linearly linked lists and maintaining performance.

JP7533199B2Active Publication Date: 2024-08-14RICOH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2020211184
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-12-21
Publication Date
2024-08-14
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

Image forming devices face decreased performance due to the long time required to find a free memory area when using a linearly linked list for memory allocation, especially as the number of secured memory areas increases.

Method used

Implementing a memory management system that uses a free node management array with multiple arrays for each memory size range and a memory management unit to quickly secure and release memory areas by referencing these arrays, reducing the time needed to find available memory.

Benefits of technology

This approach significantly reduces the time required to secure memory areas, preventing a decrease in image processing speed and maintaining performance in image forming apparatuses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007533199000007
    Figure 0007533199000007
  • Figure 0007533199000006
    Figure 0007533199000006
  • Figure 0007533199000008
    Figure 0007533199000008
Patent Text Reader

Abstract

To suppress deterioration of an image processing speed due to an image forming device, by reducing time to secure memory regions regardless of the number of secured memory regions.SOLUTION: An image forming device comprises: an image control unit; a memory management list in which a node in which a memory size and a memory address of a memory region are stored is allocated, for each used region and for each empty region of a memory used in the image control unit; an empty node management alignment which has a plurality of alignments allocated for each memory size of a predetermined range, and in which node information indicating a node in which the memory address corresponds to a minimum empty region is stored, for each alignment; and a memory management unit which secures a memory region on the basis of the node information held in the alignment obtained by searching the alignment corresponding to the memory size included in a memory securing request, updates the memory management list on the basis of the secured memory region, and updates an empty node management alignment on the basis of the updated memory management list.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image forming apparatus and a memory management method for the image forming apparatus. [Background technology]

[0002] A system that processes data of various sizes dynamically allocates memory areas corresponding to the size of the data. For example, a memory management system that dynamically allocates memory areas searches for free space in the free space management list indicated by the optimized free space search pointer or the free space management list at the top of the free space management list chain based on a comparison between the most frequently requested size and the requested size. Then, the memory management system merges multiple free spaces that are consecutive in terms of address but managed separately in multiple different free space management lists into one at regular intervals. Furthermore, the memory management system sorts the free space management list in ascending order using the size of the free space as a key. After that, the memory management system resets the optimized free space search pointer based on a statistical information table so that the free space management list that manages the memory area of ​​the requested size that is currently used the most frequently is indicated (for example, see Patent Document 1).

[0003] Another memory management system has a logical partition management unit, a physical partition management unit, and a conversion unit. The logical partition management unit manages allocation and release of virtual memory in a logical address space. The physical partition management unit manages allocation and release of real memory in a physical address space. The conversion unit performs address conversion between the logical address space and the physical address space. The physical partition management unit classifies unused areas of the physical partitions by size, and when making a memory allocation request, searches for and selects an unused area from the classified unused areas that includes the size of the memory allocation request (for example, see Patent Document 2). Summary of the Invention [Problem to be solved by the invention]

[0004] In order to control image data, an image forming apparatus such as a digital multifunction peripheral transfers image data at high speed between an image control device and the memory of a main CPU (Central Processing Unit), and, for example, dynamically secures and releases memory areas for each piece of image data. At this time, a linearly linked list may be used to facilitate management of the dynamic securing and releasing of memory areas.

[0005] However, when using a linearly linked list, it is necessary to sequentially search from the top of the list until a free area of ​​the desired size is found. Therefore, if the number of reserved memory areas increases, which increases the number of nodes in the list, there is a problem that it takes a long time to find a free area that can be reserved. If it takes a long time to find a free area, the image processing speed of the image forming device may decrease, and the performance of the image forming device may deteriorate.

[0006] The disclosed technology has been developed in consideration of the above-mentioned problems, and aims to prevent a decrease in the image processing speed of an image forming device by reducing the time it takes to allocate memory areas regardless of the number of memory areas allocated. [Means for solving the problem]

[0007] In order to solve the above technical problems, an image forming apparatus of one embodiment of the present invention has an image control unit that controls the formation of image data using a memory; a memory management list to which a node in which the memory size and memory address of a memory area are stored is assigned for each used area and each free area of ​​the memory used by the image control unit; a free node management array having a plurality of arrays assigned for each memory size in a predetermined range, and in which node information indicating the node corresponding to the free area with the smallest memory address is stored for each array; and a memory management unit that uses the memory management list and the free node management array to manage the allocation or release of memory areas for the memory in response to a memory allocation request or a memory release request from the image control unit, wherein the memory management unit searches for an array corresponding to the memory size included in the memory allocation request based on the memory allocation request, reserves a memory area based on the node information held in the array obtained by the search, updates the memory management list based on the reserved memory area, and updates the free node management array based on the updated memory management list. Effect of the Invention

[0008] By reducing the time required to secure memory areas regardless of the number of secured memory areas, it is possible to prevent a decrease in the image processing speed of the image forming apparatus. [Brief description of the drawings]

[0009] [Figure 1] 1 is a diagram illustrating an example of an overall configuration of an image forming apparatus according to a first embodiment. [Diagram 2] 2 is a block diagram showing an example of a functional configuration of an image processing unit in FIG. 1. [Diagram 3] 3A and 3B are diagrams illustrating an example of a memory management list and a free node management array in FIG. 2. [Figure 4] 4 is a sequence diagram showing an example in which a memory management unit allocates a memory area in an image data storage area based on a memory allocation request from the image control unit in FIG. 2. [Diagram 5]3 is a sequence diagram showing an example in which a memory management unit releases a memory area from an image data storage area based on a release request from the image control unit in FIG. 2. [Figure 6] 3A and 3B are diagrams illustrating another example of the memory management list and the free node management array in FIG. 2. [Figure 7] FIG. 7 is a diagram showing an example of a change in state when a memory allocation request of 100 KB is issued from image control unit 20 in the state of FIG. 6. [Figure 8] FIG. 8 is a diagram showing an example of a change in state when a memory allocation request of 190 KB is issued after the memory area is allocated in FIG. 7. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, the embodiments will be described with reference to the drawings. In the drawings, the same components are denoted by the same reference numerals, and duplicated descriptions may be omitted.

[0011] (First embodiment) Fig. 1 is a diagram showing an example of the overall configuration of an image forming apparatus in the first embodiment. The image forming apparatus 1 shown in Fig. 1 is, for example, a digital multifunction machine having a copy function, a printer function, a scanner function, a facsimile function, etc. The image forming apparatus 1 can switch its operation mode to any one of the copy function, the printer function, the scanner function, and the facsimile function by an application switching key on an operation unit (not shown). The image forming apparatus 1 may be a copy machine or a printer.

[0012] For example, image forming apparatus 1 has an automatic document feeder (ADF) 2, an image reading unit 3, a writing unit 4, a printer unit 5, and an image processing unit 10. The printer unit 5 has a photoconductor drum 6 (photoconductor), a developing unit 7, a conveyor belt 8, a fixing unit 9, and the like. The printer unit 5 creates a toner image to be transferred to a paper medium or the like based on image information. Below, as an example of the flow of image formation in image forming apparatus 1, a brief description will be given of a case where the operating mode is set to copy mode.

[0013] In the copy mode, multiple documents to be copied are set in the automatic document feeder 2. When a start button on an operation unit (not shown) is pressed, the automatic document feeder 2 sends the documents one by one to the image reading unit 3. The image reading unit 3 reads the image information of each document sent in order from the automatic document feeder 2. The read image information is processed by the image processing unit 10.

[0014] The writing unit 4 converts the image information processed by the image processing unit 10 into optical information. The photoconductor drum 6 is uniformly charged by a charger (not shown) and then exposed to a laser beam containing the optical information converted by the writing unit 4. An electrostatic latent image is formed on the photoconductor drum 6 by the exposure.

[0015] The developing device 7 develops the electrostatic latent image on the photoconductor drum 6 to form a toner image on the photoconductor drum 6. The conveyor belt 8 transfers the toner image onto a medium such as transfer paper. The fixing device 9 fixes the toner image onto the transfer paper. The transfer paper on which the image of the original document has been copied is then discharged from a discharge section.

[0016] Fig. 2 is a block diagram showing an example of a functional configuration of the image processing unit 10 in Fig. 1. The image processing unit 10 has an image control unit 20, a memory management unit 30, and a memory 40. A memory management list 50, a free node management array 60, and an image data storage area 70 are allocated to the memory 40. Note that the memory management list 50 and the free node management array 60 may be allocated to a memory different from the memory to which the image data storage area 70 is allocated.

[0017] The image control unit 20 controls the formation of images by controlling the generation and output of image data to be processed in the image forming apparatus 1 in Fig. 1. When processing image data, the image control unit 20 issues a memory allocation request to the memory management unit 30 to allocate a memory area to be used for processing the image data in the image data storage area 70. After processing the image data, the image control unit 20 issues a memory release request to the memory management unit 30 to release the memory area that was allocated in the image data storage area 70.

[0018] Based on a memory allocation request from the image control unit 20, the memory management unit 30 uses the memory management list 50 and the free node management array 60 to allocate a memory area of ​​a predetermined memory size to be used by the image control unit 20 in the image data storage area 70. Based on a memory release request from the image control unit 20, the memory management unit 30 releases the memory area used by the image control unit 20 from the image data storage area 70. After allocating the memory area and releasing the memory area, the memory management unit 30 also performs update processing to update the memory management list 50 and the free node management array 60. Examples of the memory management list 50 and the free node management array 60 will be described in FIG. 3.

[0019] FIG. 3 is a diagram showing an example of the memory management list 50 and the free node management array 60 of FIG. 2. In the example shown in FIG. 3, the memory size allocated to the image data storage area 70 is 1 GB, and the minimum block size of the memory area that can be allocated is 4 KB. The head memory address (physical address) of the image data storage area 70 is 0x4290_0000. However, the size of the image data storage area 70 is not limited to 1 GB, and the minimum block size is not limited to 4 KB. In addition, the head memory address of the image data storage area 70 is not limited to 0x4290_0000. Note that the code "0x" indicates that the following numerical value is a hexadecimal number, and the code "_" indicates a 2-byte separator in a 4-byte address.

[0020] 3, image control unit 20 has reserved (in use) a 12 KB memory area and an 8 B memory area in image data storage area 70 to perform image processing. The memory address range of the 12 KB memory area is 0x4290_0000 to 0x4290_2FFF. The memory address range of the 8 KB memory area is 0x4290_4000 to 0x4290_5FFF. In image data storage area 70, the reserved memory areas are shown shaded.

[0021] For this reason, the 4 KB memory area in the memory address range from 0x4290_3000 to 0x4290_3FFF and the 1048552 KB (= the difference between 1 GB and 24 KB) memory area in the memory address range from 0x4290_6000 onwards are unallocated free space.

[0022] The memory management list 50 has a data structure of a linearly linked list, and in Fig. 3, information on each node (array) is shown in one line. Each node has an area that stores the address (virtual address) assigned to the node itself, the state, the top address (physical address) of the memory area, the memory size, and the address (virtual address) assigned to the next node. Below, the virtual address assigned to a node is also referred to as the node address.

[0023] "Status" indicates whether the memory area managed by each node is in use or free. "NULL" in "next node" is an example of unregistered information indicating that there is no next linked node. The brackets in the lower part of Figure 3 show an image of a linearly linked list based on memory management list 50.

[0024] The free node management array 60 has a plurality of Empty arrays corresponding to memory sizes (hereinafter also referred to as free sizes) indicated in the range of powers of 2. Each Empty array stores a node address corresponding to the smallest physical address (i.e., the physical address closest to the top address) in the memory area of ​​the corresponding free size.

[0025] For example, the free node management array 60 has 18 Empty arrays "0" to Empty

[17] , each with an upper limit of the memory size of the memory area ranging from 8KB (=2^3) to 1024MB (=2^20). The symbol "^" indicates a power. The number of Empty arrays in the free node management array 60 is not limited to that shown in FIG. 3, but varies depending on the total size of the image data storage area 70. For example, when the total size of the image data storage area 70 is 1MB, eight Empty arrays [0] to Empty[7] are used. The upper limit of the range of memory sizes allocated to each Empty array is not limited to a power of 2. However, it is preferable that the memory size range of the memory size allocated to the Empty array is set to be larger as the memory size increases.

[0026] In the state shown in FIG. 3, there are two memory sizes of free space managed by the memory management list 50: 4 KB and 1048552 KB. Therefore, the node address (0xF556_CAFE) of the node that manages the 4 KB free space in the memory management list 50 is stored in the array Empty[0] of the free node management array 60. Also, the node address (0xF556_FACE) of the node that manages the 1048552 KB free space in the memory management list 50 is stored in the array Empty

[17] of the free node management array 60. Note that if there is no free space in the free node management array 60 with a memory size in the range corresponding to the array Empty, "NULL" is stored in the array Empty. Hereinafter, a node that indicates the "free" state in the memory management list 50 is also referred to as a free node.

[0027] For example, when the image control unit 20 in Fig. 2 issues a memory allocation request to the memory management unit 30, the memory management unit 30 references the array Empty in the free node management array 60, which includes the memory size of the requested memory area. The memory management unit 30 references the node in the memory management list 50 indicated by the node address stored in the referenced array Empty, and checks the memory size of the free area. If the memory size of the free area is equal to or larger than the memory size requested to be allocated, the memory management unit 30 reserves the memory area using the free area indicated by the node.

[0028] If the memory size of the free space held in the node is smaller than the memory size requested by the memory allocation request, the memory management unit 30 determines that the free space held in the node is not enough to allocate the memory space. Then, the memory management unit 30 sequentially increments the number of the array Empty until it finds the array Empty in which the node address is stored (i.e., until it finds a free node).

[0029] When "NULL" is stored in the array Empty of the free node management array 60, which contains the memory size of the requested memory area, the memory management unit 30 determines that there is no free area of ​​a predetermined range of memory sizes including the memory size. Even in this case, the memory management unit 30 can secure the memory area by sequentially incrementing the number of the array Empty until it finds the array Empty in which the node address is stored.

[0030] After reserving the memory area, the memory management unit 30 updates the memory management list 50 and the free node management array 60 according to the reserved memory area. Then, the memory management unit 30 responds to the image control unit 20 with a completion of reserving the memory area. An example of management of the memory management list 50 and the free node management array 60 by the memory management unit 30 when reserving the memory area will be described in FIG. 4 and FIG. 6 onward.

[0031] If the memory management unit 30 cannot find any reservable free space even after referring to all the arrays Empty in the free node management array 60, it responds to the image control unit 20 with an error indicating that the memory space cannot be reserved. In this case, the image control unit 20 requests the memory management unit 30 to reserve the memory space again, for example, after a predetermined time has elapsed. The image data storage area 70 is designed so that a certain amount of free space exists even when the image forming device 1 is operating at full capacity, so that a malfunction in which the memory space cannot be reserved is unlikely to occur, except in the case of a malfunction of the image forming device 1, etc.

[0032] In this way, the memory management unit 30 can secure memory areas by referencing up to 18 Empty arrays in the free node management array 60, regardless of the number of nodes (number of arrays) in the memory management list 50. When reserving a memory area of ​​100 KB, the memory management unit 30 may start reference from the Empty array[4] which contains a free size of 100 KB. In this case, the average number of references to the Empty array when reserving one memory area can be reduced to less than 18.

[0033] In contrast, for example, when searching for free space by referencing only the memory management list 50 and reserving memory space, the next node address in the memory management list 50 is referenced in order, so the time it takes to reserve free space increases depending on the number of nodes. For example, when the image forming apparatus 1 scans an image, the image is scanned line by line to generate image data, so a situation in which a large amount of memory space with small memory sizes is reserved is likely to occur. In such a situation, when searching for free space by referencing only the memory management list 50, it takes time to reserve memory space, which causes a decrease in the operating speed of the image forming apparatus 1.

[0034] On the other hand, in this embodiment, the memory management unit 30 references the free node management array 60 in order, starting with the Empty array corresponding to the smallest memory size. Therefore, when a large amount of small memory areas are reserved, the time required to reserve the memory areas can be shortened compared to the case where only the memory management list 50 is referenced. Furthermore, the existing memory management list 50 can be used as is, and the size of each Empty array in the free node management array 60 is only 4 bytes for storing a node address, so memory costs and modification costs can be kept down and free areas can be searched for quickly.

[0035] After reserving the memory area, the memory management unit 30 may respond to the image control unit 20 with a notification of completion of memory area reservation before updating the memory management list 50 and the free node management array 60. In this case, the memory management unit 30 can perform the update process of the memory management list 50 and the free node management array 60 in the background of the image processing by the image processing unit 10, and it is possible to prevent the time required for the update process from affecting the performance of the image processing.

[0036] When the image control unit 20 issues a memory release request to the memory management unit 30 to release a reserved memory area, the memory management unit 30 releases the memory area and then updates the memory management list 50 and the free node management array 60. An example of management of the memory management list 50 and the free node management array 60 by the memory management unit 30 when releasing a memory area is described in FIG.

[0037] Fig. 4 is a sequence diagram showing an example in which the memory management unit 30 secures a memory area in the image data storage area 70 based on a memory securing request from the image control unit 20 in Fig. 2. That is, Fig. 4 shows an example of a memory management method of the image forming apparatus 1. In Fig. 4, the symbol sd indicates that the inside of the box is a sequence diagram. The symbol alt indicates conditional branch processing (alternative), and the symbol loop indicates iterative processing. A solid arrow indicates a message, and a dashed arrow indicates a response.

[0038] For example, when performing image processing, the image control unit 20 issues a memory allocation request to the memory management unit 30 (FIG. 4(a)). Based on the memory allocation request, the memory management unit 30 searches the free node management array 60 (free node acquisition request) and acquires free node information (FIG. 4(b)). Based on the acquired free node information, the memory management unit 30 reserves a memory area and updates the nodes in the memory management list 50 (FIG. 4(c)).

[0039] For example, the memory management unit 30 changes the "status" of the node corresponding to the secured memory area from "free" to "used" and changes the "memory size" to the secured memory size. If the memory size of the secured memory area is smaller than the memory size stored in the node, free space remains. In this case, the memory management unit 30 adds a free node to the memory management list 50 and registers information corresponding to the remaining free space in the added free node. Next, the memory management unit 30 deletes the free node that existed before the memory area was secured by changing the array Empty in the free node management array 60 corresponding to the node changed to "used" to "NULL" (FIG. 4(d)).

[0040] After the nodes in the memory management list 50 are updated, the image control unit 20 can use the secured memory area to perform image processing. For this reason, the memory management unit 30 may notify the image control unit 20 of the securing of free space based on the update of the memory management list 50. In the example shown in FIG. 3, the memory management unit 30 refers to the free node management array 60 a maximum of 18 times, and the update of the memory management list 50 is completed by inserting a node into the linked list. For this reason, the time required to secure a memory area can be shortened compared to searching the memory management list 50 itself.

[0041] After deleting the free nodes from the free node management array 60, the memory management unit 30 performs a loop process to search for nodes to update the information in the Empty array of the free node management array 60 (FIG. 4(e)). In the process of updating the free node management array 60, the memory management unit 30 starts the search from the Empty array corresponding to the memory size held in the node used to secure the memory area or the memory size held in the newly added node. Then, the memory management unit 30 performs a process of adding a node address to the free node management array 60. In the addition process, the memory management unit 30 determines whether or not a node can be added to the free node management array 60, and if there is a node that can be added, adds the node address to the target Empty array (FIG. 4(f)).

[0042] The condition for adding a node address is that there is no free space whose memory size is larger than the free space to be added and whose physical address is smaller than the physical address of the free space to be added. In other words, if the physical address of a free space whose memory size is larger than the free space of the node to be added is smaller than the physical address of the free space of the node to be added, the node address is not added to the Empty array. If the physical address of a free space whose memory size is larger than the free space of the node to be added is larger than the physical address of the free space of the node to be added, the node address is added to the Empty array.

[0043] After adding the node address to the array Empty, the memory management unit 30 performs an update process for the array Empty (FIG. 4(g)). In the update process, if a free node with a larger physical address of the free space is registered in the array Empty with a memory size smaller than the memory size of the free space registered in the node of the node address added to the array Empty, the node address is deleted.

[0044] For example, when the node address of a 200KB free space is added to the array Empty[5], the node address registered in the array Empty[4] corresponding to the 128KB free space, which has a larger memory address than the memory address of the 200KB free space, is deleted. This allows the area with the physical address closest to the beginning of the memory space to be used preferentially when allocating memory space.

[0045] Fig. 5 is a sequence diagram showing an example in which the memory management unit 30 releases memory space from the image data storage area 70 based on a release request from the image control unit 20 in Fig. 2. Detailed description of operations similar to those in Fig. 4 will be omitted.

[0046] For example, when image processing is completed, the image control unit 20 issues a memory release request to the memory management unit 30 (FIG. 5(a)). The memory management unit 30 releases the memory area based on the memory release request and updates the node of the memory management list 50 (FIG. 5(b)).

[0047] Next, the memory management unit 30 performs a process of adding a node to the free node management array 60 according to the released memory area. In the addition process, the memory management unit determines whether or not a node can be added to the free node management array 60, and if a node that can be added is available, adds the node address to the target array Empty (FIG. 5(c)). After adding the node address to the array Empty, the memory management unit 30 performs an update process for the array Empty (FIG. 5(d)). The process of adding a node to the free node management array 60 is similar to the process of adding a node to the free node management array 60 in FIG. 5.

[0048] Fig. 6 is a diagram showing another example of the memory management list 50 and the free node management array 60 of Fig. 2. Detailed description of the same elements as in Fig. 3 will be omitted. In the image data storage area 70 and the memory management list 50, the secured (used) memory areas are indicated by shading.

[0049] For ease of explanation, in Fig. 6, the own node address and next node address of each node (row) in the memory management list 50 are indicated by alphabets. The memory size of the image data storage area 70 is 1024KB (=1MB), and the minimum block size of the memory area that can be allocated is 1KB. Therefore, the number of Empty arrays in the free node management array 60 is 8. The alphabets in parentheses following the memory size of each memory area in the image data storage area 70 indicate the node addresses of the corresponding nodes in the memory management list 50.

[0050] In the free node management array 60, the array Empty[0], which has a free area memory size of up to 8 KB, stores the node address A of the node corresponding to the free area with the smallest physical address among the three free areas of 3 KB. For example, if the free area corresponding to node address A is reserved for image processing, the array Empty[0] stores the node address C of the node corresponding to the free area with the next smallest physical address.

[0051] The array Empty[2], where the memory size of the free space is from 17KB to 32KB, stores the node address G of the node corresponding to the 20KB free space. The array Empty[6], where the memory size of the free space is from 257KB to 512KB, stores the node address I of the node corresponding to the 300KB free space. The array Empty[7], where the memory size of the free space is from 513KB to 1024KB, stores the node address M of the node corresponding to the 520KB free space.

[0052] In the array Empty[4] where the memory size of the free area ranges from 65KB to 128KB, the node address K of the node corresponding to the 128KB free area is not registered. This is because there is a 300KB free area that is assigned to a physical address that is larger than 128KB and smaller than the physical address of the 128K free area. This means that, for example, if a memory allocation request is issued for a memory area larger than 20KB and equal to or smaller than 128KB, priority is given to allocating memory area from the 300KB free area with the smaller physical address.

[0053] By reserving memory areas in order from free areas with smaller physical addresses, it is possible to reserve memory areas from higher areas with smaller physical addresses in the image data storage area 70. This reduces the possibility that memory areas will be reserved in a dispersed manner throughout the entire image data storage area 70, making it easier for the memory management unit 30 to manage the memory areas.

[0054] FIG. 7 is a diagram showing an example of a change in state when a memory allocation request of 100 KB is issued from the image control unit 20 in the state of FIG. 6. That is, FIG. 7 shows an example of a memory management method of the image forming apparatus 1. The thick frame shown in FIG. 7 indicates that the state has changed. The memory management unit 30, which has received the memory allocation request, searches the free node management array 60, for example, in order from the array Empty[0], and finds the array Empty[6] corresponding to the memory size of the memory area to be allocated. Then, the memory management unit 30 decides to allocate the memory area by using the free area corresponding to the node indicated by the node address I stored in the array Empty[6] shown in FIG. 6. Hereinafter, the node indicated by the node address I is also referred to as node I.

[0055] The maximum number of searches required to find an Empty array corresponding to the memory size of the memory area to be reserved is the total number of Empty arrays. In the example shown in Fig. 7, the memory management unit 30 can find a node in which information on the free area to be used for reserving the memory area is registered by searching the free node management array 60 a maximum of eight times.

[0056] Memory management unit 30 updates memory management list 50, reserving 100 KB of memory space using the 300 KB of free space corresponding to node I, and setting the remaining free space to 200 KB (FIG. 7(a)). In the example shown in FIG. 7, memory management unit 30 stores information on the 100 KB of used space in node I, and stores information on the 200 KB of free space in the newly added node N.

[0057] Next, the memory management unit 30 stores "NULL" in the array Empty[6] of the free node management array 60, thereby deleting the free information set in the array Empty[6] (FIG. 7(b)).

[0058] Next, the memory management unit 30 performs a process of adding a node to the array Empty of the free node management array 60. The memory management unit 30 searches the memory management list 50 and determines whether or not there is a free area whose memory size is larger than 200 KB and whose physical address is smaller than the physical address of 200 KB, which has become a new free area. In the example shown in Fig. 7, there is no free area whose memory size is larger than 200 KB and whose physical address is smaller than the physical address of 200 KB, so the memory management unit 30 registers the free area of ​​200 KB in the array Empty[5] (Fig. 7(c)).

[0059] If there is free space with a memory size larger than 200 KB and a physical address smaller than the physical address of the 200 KB free space, the memory management unit 30 does not register the node information corresponding to the 200 KB free space in the array Empty[5]. This allows free space to be reserved preferentially from free spaces with smaller physical addresses, regardless of the memory size of the free space.

[0060] If the array Empty[5] holds node information corresponding to a free space whose physical address is smaller than the physical address of the new 200 KB free space, the memory management unit 30 maintains the node information already registered in the array Empty[5]. If the array Empty[5] holds node information corresponding to a free space whose physical address is larger than the physical address of the new 200 KB free space, the memory management unit 30 registers the node information corresponding to the 200 KB free space in the array Empty[5]. This also makes it possible to secure free space by prioritizing free spaces with smaller physical addresses, regardless of the memory size of the free space.

[0061] Next, the memory management unit 30 performs an update process for the array Empty in the free node management array 60. The memory management unit 30 searches the memory management list 50 and determines whether or not there is a free area whose memory size is smaller than the newly free area of ​​200 KB and whose physical address is larger than the physical address of the 200 KB free area. If there is a free area whose memory size is smaller than the newly free area of ​​200 KB and whose physical address is larger than the physical address of the 200 KB free area, the memory management unit 30 deletes the node corresponding to that free area from the array Empty.

[0062] As a result, for example, if there is a memory allocation request to allocate the next 100 KB of free space, 100 KB can be allocated from the 200 KB free space with a smaller memory address, rather than from the free space with a larger physical address. In other words, free space can be allocated preferentially from the free space with a smaller physical address.

[0063] 7, there is a free area of ​​128 KB (node ​​K) whose memory size is smaller than 200 KB and whose physical address is larger than the physical address of the 200 KB free area. However, since the array Empty[4] corresponding to node K is set to "NULL", the memory management unit 30 does not delete the information of the array Empty[4]. Then, the memory management unit 30 ends the update process of the array Empty and completes the process of reserving a memory area of ​​100 KB.

[0064] Fig. 8 is a diagram showing an example of a change in state when a memory allocation request of 190 KB is issued after the memory area is allocated in Fig. 7. That is, Fig. 8 shows an example of a memory management method of image forming apparatus 1. Detailed description of processes similar to those in Fig. 7 will be omitted.

[0065] Upon receiving the memory allocation request, the memory management unit 30 searches the free node management array 60 and finds the array Empty[5] that matches the memory size of the 190 KB memory area to be allocated. The memory management unit 30 decides to allocate the memory area by using the free area corresponding to the node N indicated by the node address N stored in the array Empty[5] shown in FIG.

[0066] The memory management unit 30 updates the memory management list 50, reserving 190 KB of memory space using the 200 KB of free space corresponding to node N, and leaving 10 KB of free space (FIG. 8(a)). In the example shown in FIG. 8, the memory management unit 30 stores information about the 190 KB of used space in node N, and stores information about the 10 KB of free space in the newly added node O.

[0067] Next, the memory management unit 30 stores "NULL" in the array Empty[5] of the free node management array 60, thereby deleting the free information set in the array Empty[5] (FIG. 8(b)).

[0068] Next, the memory management unit 30 performs a process of adding a node to the array Empty of the free node management array 60. The memory management unit 30 searches the memory management list 50 and determines whether or not there is a free area whose memory size is larger than the newly created free area of ​​10 KB and whose physical address is smaller than the physical address of the 10 KB free area. In the example shown in FIG. 8, there is a free area (node ​​G) whose memory size is 20 KB and whose physical address is smaller than the physical address of the 10 KB free area. Therefore, the memory management unit 30 does not register the 10 KB free area in the array Empty[1], and maintains "NULL" in the array Empty[1] (FIG. 8(c)).

[0069] Furthermore, the memory management unit 30 extracts nodes C, E, O, and K that are not registered in the free node management array 60 as free areas, and determines whether the node addresses of nodes C, E, O, and K can be registered in the array Empty. The node address of node A is registered in the array Empty[0], which corresponds to the size (3 KB) of the free areas indicated by nodes C and E. Furthermore, the physical address of the free area indicated by node A is smaller than the physical addresses of the free areas indicated by nodes C and Empty. For this reason, the memory management unit 30 determines that the node addresses of nodes C and E cannot be registered.

[0070] The memory management unit 30 determines that node O should not be registered in the array Empty[1] in the addition process, and therefore excludes it from the determination target for registration. No node address is registered (NULL) in the array Empty[4] corresponding to the size of the free space indicated by node K (128 KB). The memory size (128 KB) and physical address of the free space indicated by node K satisfy the relationship between memory size and physical address for other free nodes. Therefore, the memory management unit 30 decides to register the node address of node K in the array Empty[4] and registers it (Figure 8(d)).

[0071] If a node has already been registered in the array Empty[4], the memory management unit 30 preferentially registers a node corresponding to a free space with a smaller physical address in the array Empty[4]. For example, if a node corresponding to a free space in the range of 65 KB to 128 KB and having a smaller physical address than the 128 KB free space of node K is registered in the array Empty[4], the memory management unit 30 does not register node K in the array Empty[4]. On the other hand, if a node corresponding to a free space in the range of 65 KB to 128 KB and having a larger physical address than the 128 KB free space of node K is registered in the array Empty[4], the memory management unit 30 registers node K in the array Empty[4].

[0072] Next, the memory management unit 30 performs an update process of the array Empty in the free node management array 60. The memory management unit 30 searches the memory management list 50 and determines whether or not there is a free area whose memory size is smaller than 10 KB and whose physical address is larger than the physical address of 10 KB that has become a new free area. In the example shown in FIG. 8, there is no free area whose memory size is smaller than 10 KB and whose physical address is larger than the physical address of 10 KB. Therefore, the memory management unit 30 ends the update process of the array Empty and completes the process of reserving a memory area of ​​190 KB.

[0073] As described above, in this embodiment, a memory area can be secured by referencing a maximum of 18 arrays Empty in the free node management array 60. Therefore, the time required to secure a memory area can be shortened compared to searching the memory management list 50 itself. In other words, regardless of the number of secured memory areas, the time required to secure a memory area can be shortened, and a decrease in the image processing speed of the image forming apparatus can be suppressed.

[0074] The memory management unit 30 references the free node management array 60 in order, starting from the array Empty corresponding to the smallest memory size. Therefore, when a large amount of memory areas with small memory sizes are reserved, the time required to reserve the memory areas can be reduced compared to the case where only the memory management list 50 is referenced.

[0075] Furthermore, the existing memory management list 50 can be used as is, and the size of each Empty array in the free node management array 60 is only 4 bytes, so memory costs and modification costs can be reduced and free space can be searched for quickly.

[0076] Even if "NULL" is stored in the array Empty of the free node management array 60, the memory management unit 30 can secure memory space by sequentially incrementing the number of the array Empty until it finds the array Empty in which the node address is stored.

[0077] If node information corresponding to a free space whose physical address is smaller than that of the new free space is held in the corresponding Empty array, the memory management unit 30 maintains the node information already registered in the Empty array. Also, if node information corresponding to a free space whose physical address is larger than that of the new free space is held in the corresponding Empty array, the memory management unit 30 rewrites the Empty array with the node information corresponding to the new free space. This makes it possible to secure free space by prioritizing free spaces whose physical addresses are smaller, regardless of the memory size of the free space.

[0078] If the physical address of a registered free area corresponding to an Empty array that has a memory size larger than the allocated memory area is smaller than the physical address of the allocated memory area, the memory management unit 30 does not register the allocated memory area in the Empty array. If the physical address of a registered free area corresponding to an Empty array that has a memory size smaller than the allocated memory area is larger than the physical address of the allocated memory area, the memory management unit 30 rewrites the Empty array that has allocated the registered free area to "NULL". This makes it possible to allocate free areas with smaller physical addresses first, regardless of the memory size of the free areas.

[0079] Although the present invention has been described above based on the embodiments, the present invention is not limited to the requirements shown in the above embodiments. These points can be changed without departing from the spirit of the present invention, and can be appropriately determined according to the application form. [Explanation of symbols]

[0080] 1. Image forming device 2 Automatic document feeder 3 Image reading section 4 Write Unit 5 Printer unit 6 Photoconductor drum 7. Developing device 8 Conveyor belt 9 Fixing device 10 Image processing section 20 Image control section 30 Memory Management Unit 40 Memory 50 Memory Management List 60 Free node management array 70 Image data storage area [Prior art documents] [Patent documents]

[0081] [Patent Document 1] Japanese Patent Application Publication No. 9-016463 [Patent Document 2] JP 2010-204762 A

Claims

1. an image control unit that uses a memory to control the formation of image data; a memory management list in which a node in which a memory size and a memory address of the memory area are stored is assigned to each used area and free area of ​​the memory used by the image control unit; a free node management array having a plurality of arrays allocated for each of a predetermined range of memory sizes, and for each array, node information indicating a node corresponding to a free area having a smallest memory address is stored; a memory management unit that manages allocation or release of a memory area for the memory by using the memory management list and the free node management array in response to a memory allocation request or a memory release request from the image control unit; having The memory management unit Based on the memory allocation request, an array corresponding to the memory size included in the memory allocation request is searched for, and a memory area is reserved based on node information held in the array obtained by the search; updating the memory management list based on the allocated memory area; The free node management array is updated based on the updated memory management list. Image forming device.

2. When an array corresponding to the memory size included in the memory allocation request holds unregistered information indicating that no free space exists, the memory management unit sequentially searches for arrays corresponding to a memory size larger than the memory size included in the memory allocation request, and reserves a memory area based on node information held in the array obtained by the search. The image forming apparatus according to claim 1 .

3. When updating the free node management array, the memory management unit The node information stored in the array referenced when allocating the memory area is rewritten to unregistered information, When a new node corresponding to a new free space is registered in the memory management list by securing a memory space, and unregistered information is held in an array corresponding to the memory size of the new free space, storing node information corresponding to the new free space in an array corresponding to the memory size of the new free space; When a new node corresponding to a new free space is registered in the memory management list by securing a memory space, and node information is held in an array corresponding to the memory size of the new free space, if the memory address of the new free space is smaller than the memory address of the free space corresponding to the node information held in the array corresponding to the memory size of the new free space, the node information held in the array corresponding to the memory size of the new free space is rewritten to the node information of the new node.

3. The image forming apparatus according to claim 1 or 2.

4. When updating the free node management array, the memory management unit further When new node information corresponding to a new free space is registered in the memory management list by securing a memory space, and the memory address of the free space corresponding to the node information held in an array corresponding to a memory size larger than the array corresponding to the memory size of the new free space is smaller than the memory address of the new free space, the unregistered information held in the array corresponding to the memory size of the new free space is maintained.

4. The image forming apparatus according to claim 1, wherein the first and second ink cartridges are arranged on a first surface side.

5. When updating the free node management array, the memory management unit further If the memory address of the free space corresponding to the node information held in an array corresponding to a memory size smaller than the array storing the node information indicating the node corresponding to the new free space is larger than the memory address of the new free space, the node information held in the array is rewritten to unregistered information.

5. The image forming apparatus according to claim 1,

6. The memory management list is a linearly linked list.

6. The image forming apparatus according to claim 1,

7. a memory management method for an image forming apparatus comprising: an image control unit which controls formation of image data using a memory; a memory management list in which a node is assigned for each used area and each free area of ​​the memory used by the image control unit, the node storing the memory size and memory address of the memory area; and a free node management array having a plurality of arrays assigned for each memory size in a predetermined range, the free node management array storing node information indicating a node corresponding to a free area having a smallest memory address, the method comprising the steps of: Based on the memory allocation request, an array corresponding to the memory size included in the memory allocation request is searched for, and a memory area is reserved based on node information held in the array obtained by the search; updating the memory management list based on the allocated memory area; The free node management array is updated based on the updated memory management list. A memory management method for an image forming apparatus.

Citation Information

Patent Citations

  • Managing method of main storage

    JP1983171780A

  • File control system

    JP1990019938A

  • Storage area management method

    JP1996115252A

  • Dynamic allocation management system for memory area

    JP1997016463A

  • Area managing and controlling device for memory in electronic equipment

    JP1997160823A