Memory controller and method of operation thereof
By using a multi-core memory controller's load balancing mechanism to dynamically adjust kernel load, the problem of concentrated load in the memory system is solved, improving system stability and performance.
Patent Information
- Application Number
- CN202211128762.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-30
- Filing Date
- 2022-09-16
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-16
AI Technical Summary
In existing memory systems, during write operations, the load tends to concentrate on specific cores, leading to load imbalance and affecting system performance and stability.
A multi-core memory controller is adopted, which dynamically adjusts the kernel load through an external interface unit and a kernel control unit. Based on the write request and the number of open partitions, the load level is balanced and the appropriate kernel is selected to perform the write operation.
It achieves kernel load balancing in the memory system, improves system stability and performance, and avoids the problem of concentrated load on write operations.
Smart Images

Figure CN116204112B_ABST
Abstract
Description
[0001] Cross-references to related applications
[0002] This patent document claims priority to Korean Patent Application No. 10-2021-0169587, filed on November 30, 2021, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] The various embodiments of the disclosed technology generally relate to an electronic device, and more particularly to a memory controller and a method of operating the same. Background Technology
[0004] The computing environment paradigm is shifting towards ubiquitous computing, enabling computing to occur anytime, anywhere. The recent increase in the use of ubiquitous computing has led to an increase in the use of portable electronic devices such as mobile phones, digital cameras, and laptops. These portable electronic devices typically use memory systems with one or more memory devices for storing data.
[0005] Memory systems can be used as primary or secondary data storage devices for portable electronic devices.
[0006] Semiconductor-based data storage devices offer the following advantages over traditional hard disk drives: because they lack mechanical components such as robotic arms, they provide superior stability and durability, higher data access rates, and lower power consumption. Examples of semiconductor-based data storage devices include USB (Universal Serial Bus) memory devices, memory cards with various interfaces, solid-state drives (SSDs), and more. Summary of the Invention
[0007] Various embodiments of the disclosed technology relate to a memory controller and a method of operating the memory controller, which prevents the load during write operations from being concentrated on a specific core.
[0008] In addition, various embodiments of the disclosed technology relate to a memory controller capable of balancing load levels based on write operations from multiple cores, and a method for operating the memory controller.
[0009] In an embodiment of the disclosed technology, a memory controller controls a memory device comprising multiple memory blocks allocated to multiple zones. The memory controller includes: multiple kernels adapted to control the multiple zones; and an external interface unit adapted to determine, based on the number of open zones performing programming operations under the control of a first kernel, a kernel for performing a write operation corresponding to a write request from an external device, wherein the first kernel controls the zone corresponding to the write request.
[0010] The external interface unit can identify the kernel that controls fewer open partitions than the first kernel as the kernel to perform write operations.
[0011] When the number of open partitions controlled by the first kernel is equal to or greater than the threshold, the external interface unit can identify the kernel controlling the number of open partitions less than the threshold as the kernel to perform write operations.
[0012] The kernel used to perform write operations can change an empty partition controlled by the kernel and whose programming operation is not yet determined to be performed into an open partition, and can perform write operations on the storage blocks allocated to the newly changed open partition.
[0013] In another embodiment of the disclosed technology, a memory controller controls a memory device comprising a plurality of memory blocks allocated to a plurality of partitions. The memory controller includes: a plurality of cores adapted to control the plurality of partitions; a partition information manager adapted to generate a plurality of open count values in response to a write request received from an external device, each open count value indicating that a write operation is controlled by each of the plurality of cores and determining the number of open partitions for which a programming operation is performed; and a kernel control unit adapted to determine a second core for performing a write operation corresponding to a write request based on a first open count value of a first core, wherein the first core controls the partition corresponding to the write request.
[0014] The kernel control unit can identify a kernel with an open count value less than the first open count value as the second kernel.
[0015] When the first open count value is not the maximum value, the kernel control unit can identify the first kernel as the second kernel.
[0016] When the first open count value is equal to or greater than the threshold, the kernel control unit can identify the kernel that controls fewer open partitions than the threshold as the second kernel.
[0017] The threshold can be the average of multiple open count values.
[0018] The threshold can be greater than the average number of open partitions controlled by each of the multiple kernels, but less than the maximum open count value.
[0019] The second kernel changes an empty partition, which is controlled by the second kernel and whose programming operation is not yet determined, into an open partition, and performs write operations on the storage blocks allocated to the newly changed open partition.
[0020] In another embodiment of the disclosed technology, a method of operating a memory controller that controls a memory device comprising a plurality of memory blocks allocated to a plurality of partitions via a plurality of cores includes: generating a plurality of open count values in response to a write request received from an external device, each open count value indicating the number of open partitions controlled by each of the plurality of cores and determining the number of open partitions to be run a programming operation; and determining a second core for performing a write operation corresponding to the write request based on a first open count value of a first core, wherein the first core controls the partition corresponding to the write request.
[0021] Determining the second kernel may include: identifying a kernel whose open count value is less than the first open count value as the second kernel.
[0022] Determining the second kernel may include: when the first open count value is the maximum among a plurality of open count values, the kernel with the smallest open count value is determined as the second kernel.
[0023] Determining the second kernel may include: when the first open count value is not the maximum value, the first kernel is determined as the second kernel.
[0024] Determining the second kernel may include: when the first open count value is equal to or greater than the threshold, the kernel that controls fewer open partitions than the threshold is determined as the second kernel.
[0025] The threshold can be the average of multiple open count values.
[0026] The threshold can be greater than the average number of open partitions controlled by each of the multiple kernels, but less than the maximum open count value. Attached Figure Description
[0027] Figures 1A to 1C It is a diagram illustrating the operation of a data processing system.
[0028] Figure 2 This is a diagram illustrating the data storage method of a data processing system using partitioned namespaces, based on the disclosed technology.
[0029] Figure 3 This is a schematic diagram illustrating a data processing system according to an embodiment.
[0030] Figure 4 This is a schematic diagram illustrating the operation of a memory controller according to an embodiment.
[0031] Figures 5A to 5D This is a diagram illustrating an example of how a memory controller, according to an embodiment, changes the operation of a kernel performing a write operation.
[0032] Figure 6This is a flowchart illustrating the operation of a memory controller according to an embodiment.
[0033] Figure 7A and Figure 7B It is shown Figure 6 The flowchart shown illustrates an example of how a memory controller alters the operations of a kernel performing a write operation. Detailed Implementation
[0034] Various examples of this disclosure are described in more detail below with reference to the accompanying drawings. This disclosure may be implemented in other embodiments, forms, and variations thereof, and should not be construed as limited to the embodiments set forth herein. Throughout this disclosure, the same reference numerals refer to the same parts in the various drawings and examples. It should be noted that references to “embodiment,” “another embodiment,” etc., do not necessarily indicate only one embodiment, and different references to any such phrase do not necessarily refer to the same(s) embodiments(s).
[0035] It will be understood that although the terms “first,” “second,” “third,” etc., may be used herein to describe various elements, these elements are not limited by these terms. These terms are used to distinguish one element from another element that otherwise has the same or similar name. Thus, without departing from the spirit and scope of the invention, a first element in one instance may be referred to as a second or third element in another instance.
[0036] The accompanying drawings are not necessarily to scale, and in some instances, the scale may be enlarged to clearly show the features of the embodiments. When an element is referred to as being connected to or coupled to another element, it should be understood that the former may be directly connected to or coupled to the latter, or may be electrically connected to or coupled to the latter via one or more intermediate elements. Unless the context otherwise indicates, communication between two elements, whether through direct or indirect connection / coupling, can be wired or wireless. Furthermore, it will be understood that when an element is referred to as being “between” two elements, the element may be the only element between the two elements, or one or more intermediate elements may be present.
[0037] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention.
[0038] Unless the context clearly indicates otherwise, as used herein, the singular form is intended to include the plural form as well, and vice versa. Unless otherwise stated or clearly involved in the context, the articles “a” and “an” as used in this application and the appended claims should generally be interpreted as meaning “one or more”.
[0039] It will be further understood that, when used in this specification, the terms "comprising" or "including" specify the presence of the said element and do not exclude the presence or addition of one or more other elements. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0040] It should be noted that in some instances, as will be apparent to those skilled in the art, a feature or element described in connection with one embodiment may be used independently or in combination with other features or elements of another embodiment.
[0041] Embodiments of the disclosed technology will be described in detail with reference to the accompanying drawings.
[0042] In the following text, various embodiments of the disclosed technology will be described in detail with reference to the accompanying drawings.
[0043] Figures 1A to 1C It is a diagram illustrating the operation of a data processing system. Figure 1A This illustrates an example of using a single memory block to drive three applications in a memory system.
[0044] Technologies such as artificial intelligence (AI), big data, and cloud computing operate through data centers. Data centers comprise memory systems implemented using flash memory, and multiple applications are driven by a single memory system. These applications can be driven by external devices such as computers or mobile phones. Each of these applications stores data in a logical block address (LBA), and the memory system stores the data stored in the LBA in a single memory block. The memory system stores data from different applications into a single memory block and then maps the LBA to the physical address of the single memory block.
[0045] Figure 1A This example illustrates driving three applications for a single memory system.
[0046] Multiple logical block addresses covering the storage capacity of a single memory system can be classified into partitions, each partition being assigned to three applications. Each of the three applications can generate a data association for each application with the logical block addresses within the assigned partition.
[0047] exist Figure 1AIn the example shown, a first application APP1 can generate three first data entries ①, assign three logical block addresses from a plurality of logical block addresses to these three first data entries ①, and attempt to store these three first data entries ① in the memory device (e.g., NAND) of the memory system. A second application APP2 can generate two second data entries ②, assign two other logical block addresses to these two second data entries ②, and attempt to store these two second data entries ② in the memory system. Similarly, a third application APP3 can generate three third data entries ③, assign three logical block addresses from a plurality of logical block addresses to these three third data entries ③, and attempt to store these three third data entries ③ in the memory system. The memory system can program the first data entries ①, the second data entries ②, and the third data entries ③ to different locations of a single memory block BLK in the memory device. A single memory block BLK can include multiple regions, with different regions specifically assigned to each of the first application APP1 through the third application APP3. Therefore, the memory block BLK can store all the data stored by each of the first application APP1 through the third application APP3.
[0048] Figure 1B This illustrates an erase operation in a memory system when the first application APP1 erases at least one piece of data that has been stored in the storage block BLK.
[0049] In a memory system, read and program operations are performed on a page-by-page basis, while erase operations are performed on a block-by-block basis. When a first application APP1 issues an erase command for programmable data while data stored by multiple applications is stored in a single block BLK, the memory system can invalidate the data corresponding to the first application APP1. For example... Figure 1B As shown, among the multiple data entries included in the storage block BLK, the data corresponding to the first application APP1 is invalid (INVALID), while the data corresponding to the second application APP2 and the third application APP3 remain valid. As the size of the invalid data included in the storage block increases, the available storage capacity of the memory system decreases. Therefore, the memory system performs garbage collection to convert areas storing invalid data into available areas for storing other data.
[0050] Figure 1C This is a diagram illustrating the garbage collection operation performed on the storage block BLK.
[0051] The memory system copies valid data stored in memory block BLK to an empty memory block. (See reference...) Figure 1CIn addition to the data stored by the first application APP1 (i.e., invalid data), the memory system copies the data stored by the second application APP2 and the third application APP3 (i.e., valid data) to an empty memory block. After copying the valid data to the empty memory block, the memory system invalidates all valid data stored in the memory block BLK and performs an erase operation on the memory block BLK. The memory system only copies valid data from the memory block containing invalid data to the empty memory block and then performs an erase operation on the memory block to complete the garbage collection operation.
[0052] The size of invalid data stored in storage blocks increases due to erase commands generated by an application. When garbage collection is performed to remove invalid data, ongoing read and programmable operations are temporarily halted, which can degrade service quality. Data processing systems using Partition Namespaces (ZNS) can resolve performance degradation caused by execution interference between multiple applications and garbage collection operations.
[0053] Figure 2 This is a diagram illustrating a data storage method used in a data processing system that utilizes partitioned namespaces.
[0054] Partitioned namespaces (ZNS) refer to the technique of dividing a namespace into multiple partitions. A namespace refers to the amount of storage in non-volatile memory that can be formatted into logical blocks. In a data processing system using partitioned namespaces, each partition is allocated to a corresponding application, allowing multiple applications to store their data individually using sequential logical block addresses allocated to each partition. Not only are logical block addresses grouped into multiple parts corresponding to multiple partitions, but the storage areas of the memory system are also divided into physical areas corresponding to multiple partitions. Since a single partition can store multiple pieces of data generated by the same application or multiple pieces of data associated with the same application, the attributes or properties of the multiple pieces of data stored in a single partition can be similar. Furthermore, the logical block addresses within each partition can be contiguous. In a memory system with partitioned namespaces, at least one storage block allocated to each partition can be programmed sequentially.
[0055] Reference Figure 2The namespace NAMESPACE is divided into multiple partitions ZONE 1 to ZONE N. In one embodiment, each of the multiple partitions ZONE 1 to ZONE N can have the same size. A single application can correspond to a single partition. In another embodiment, a single application can use multiple partitions to store multiple pieces of data generated by the application itself. Within each partition, multiple contiguous logical block addresses are allocated. The storage within the memory device can also be divided into multiple regions corresponding to the multiple partitions ZONE 1 to ZONE N, such that each partition in the logical domain can correspond to a corresponding region in the physical domain. Partitions in the physical regions can have the same size, and the size of each partition can be an integer multiple of the erase unit.
[0056] For example, suppose the first application APP1 to the third application APP3 correspond to the first partition ZONE 1 to the third partition ZONE 3, respectively. The first application APP1 stores data in the logical block addresses included in the first partition ZONE 1. The logical block addresses included in the first partition ZONE 1 are contiguous, and the host provides the memory system with identification information about the partition, as well as programming data and programming commands. Based on the identification information about the partition, the memory system sequentially programs the data stored in the logical block addresses included in the first partition ZONE 1 into the first storage block BLKs_1 corresponding to the first partition ZONE 1.
[0057] Similarly, data associated with the second partition ZONE 2 and the third partition ZONE 3 are stored in the second storage block BLKs_2 and the third storage block BLKs_3, respectively. In the case of a memory system using partition namespaces, data provided by different applications is stored in different areas within the internal regions of the memory device, which are divided into multiple partitions.
[0058] Figure 3 An example of a data processing system 100 is shown. In some embodiments, the data processing system 100 may include a host 102 that is coupled, interlocked, or communicates with the memory system 110.
[0059] The host 102 may include portable electronic devices (e.g., mobile phones, MP3 players, laptops, etc.) or non-portable electronic devices such as desktop computers, game consoles, televisions (TVs), projectors, etc.
[0060] The host 102 may also include at least one operating system (OS) for managing and controlling the functions and operations of the host 102. For example, the OS may provide interoperability between the host 102 coupled to the memory system 110 and the user of the memory system 110. The OS may support functions and operations corresponding to user requests.
[0061] As an example, and not a limitation, the OS could be a general-purpose operating system or a mobile operating system, depending on the mobility of host 102. Depending on system requirements or user environment, a general-purpose operating system could be, for example, a personal operating system or an enterprise operating system. Personal operating systems (e.g., Windows, Chrome, etc.) may be subject to support services for various purposes. Enterprise operating systems, including Windows Server, Linux, Unix, etc., may be specifically designed to secure and support high performance.
[0062] The mobile operating system may be based on, for example, Android, iOS, Windows Mobile, or another system. The mobile operating system may be limited by support services or features for mobility (e.g., power-saving features). In one embodiment, host 102 may include multiple operating systems and may run multiple operating systems interlocked with memory system 110 based on user requests. Host 102 may transmit multiple commands corresponding to user requests to memory system 110, thereby executing operations corresponding to the commands within memory system 110.
[0063] The memory system 110 can operate or perform specific functions or operations in response to requests from the host 102, such as storing data to be accessed by the host 102. The memory system 110 can be used as the main memory system or auxiliary memory system of the host 102. The memory system 110 can be implemented using one of various types of storage devices electrically connected to the host 102 and can communicate with the host 102 according to a host interface protocol. Non-limiting examples of storage devices include solid-state drives (SSDs), multimedia cards (MMCs), embedded MMCs (eMMCs), size-reduced MMCs (RS-MMCs), micro MMCs, secure digital cards (SDs), mini SDs, micro SDs, universal serial bus (USB) storage devices, universal flash memory (UFS) devices, compact flash memory (CF) cards, smart media (SM) cards, memory sticks, etc.
[0064] The storage device of the memory system 110 may be implemented using volatile memory devices (e.g., dynamic random access memory (DRAM) and static RAM (SRAM)) and / or non-volatile memory devices (e.g., read-only memory (ROM), mask ROM (MROM), programmable ROM (PROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), ferroelectric RAM (FRAM), phase-change RAM (PRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM or ReRAM), flash memory, etc.).
[0065] The memory system 110 may include a memory controller 130 and a memory device 150. The memory device 150 may store data to be accessed by the host 102. The memory controller 130 may control the storage of data in the memory device 150.
[0066] The memory controller 130 and memory device 150 can be integrated into a single semiconductor device, which can be of any type of memory system as illustrated above. By way of example and not limitation, the memory controller 130 and memory device 150 can be integrated into a single semiconductor device. The memory controller 130 and memory device 150 can be integrated into an SSD to improve operating speed. When the memory system 110 is used as an SSD, the operating speed of the host 102 connected to the memory system 110 can be significantly higher than the operating speed of a host 102 implemented as a hard disk.
[0067] Additionally, the memory controller 130 and the memory device 150 can be integrated into a semiconductor device to form memory cards such as PC cards (PCMCIA), compact flash memory cards (CF), memory cards such as smart media cards (SM, SMC), memory sticks, multimedia cards (MMC, RS-MMC, micro MMC), SD cards (SD, mini SD, micro SD, SDHC), general-purpose flash memory, etc.
[0068] The memory system 110 can be configured as part of, for example, a computer, an ultra-mobile PC (UMPC), a workstation, a netbook, a personal digital assistant (PDA), a portable computer, a network tablet, a tablet computer, a wireless telephone, a mobile phone, a smartphone, an e-book reader, a portable multimedia player (PMP), a portable game console, a navigation system, a black box, a digital camera, a digital multimedia broadcasting (DMB) player, a three-dimensional (3D) television, a smart television, a digital audio recorder, a digital audio player, a digital picture recorder, a digital picture player, a digital video recorder, a digital video player, a storage device configured for a data center, a device capable of transmitting and receiving information in a wireless environment, one of various electronic devices configured for a home network, one of various electronic devices configured for a computer network, one of various electronic devices configured for a telematics network, a radio frequency identification (RFID) device, or one of various components configured for a computing system.
[0069] Memory device 150 may be a non-volatile memory device and retains data therein even when no power is supplied. Memory device 150 can store data provided from host 102 via write operations and can provide the stored data to host 102 via read operations. Memory device 150 may include a plurality of memory blocks 152, 154, 156, each of which may include a plurality of pages. Each page may include a plurality of memory cells to which word lines (WLs) are electrically connected. Memory device 150 also includes a plurality of memory dies, each of which includes a plurality of planes, and each of these planes includes a plurality of memory blocks 152, 154, 156. Memory device 150 may be a non-volatile memory device. Examples include flash memory with a three-dimensional stacked structure.
[0070] The memory controller 130 can control all operations of the memory device 150, such as read, write, program, and erase operations. For example, the memory controller 130 can control the memory device 150 in response to a request from the host 102. The memory controller 130 can provide data read from the memory device 150 to the host 102. The memory controller 130 can store data provided by the host 102 into the memory device 150.
[0071] The memory controller 130 may include a host interface (I / F) 132, a processor 134, an ECC unit 138, a power management unit (PMU) 140, a memory interface (I / F) 142, and a memory 144, all of which are operatively connected via an internal bus.
[0072] Host interface 132 can process commands and data from host 102 and can communicate with host 102 via at least one of a variety of interface protocols. Examples include Universal Serial Bus (USB), Multimedia Card (MMC), High-Speed Peripheral Component Interconnect (PCI-e or PCIe), Small Computer System Interface (SCSI), Serial SCSI (SAS), Serial Advanced Technology Attachment (SATA), Parallel Advanced Technology Attachment (PATA), Enhanced Small Disk Interface (ESDI), and Electronic Integrated Drive (IDE). In embodiments, host interface 132 can exchange data with host 102 based on instructions, such as firmware like the Host Interface Layer (HIL).
[0073] ECC unit 138 can correct one or more error bits in data processed in memory device 150 and may include an ECC encoder and an ECC decoder. The ECC encoder can perform error correction encoding on data to be programmed into memory device 150 to generate encoded data with one or more parity bits added. The ECC encoder can store the encoded data in memory device 150. When memory controller 130 reads data stored in memory device 150, ECC decoder can detect and correct errors in the data read from memory device 150. For example, after performing error correction decoding on data read from memory device 150, ECC unit 138 can determine whether the error correction decoding was successful and output a command signal (e.g., a correction success signal or a correction failure signal).
[0074] ECC unit 138 can use parity bits generated during the ECC encoding process to correct erroneous bits in the read data. When the number of erroneous bits is greater than or equal to the threshold number of correctable erroneous bits, ECC unit 138 may not correct the erroneous bits, but may instead output an error correction failure signal indicating that the correction of erroneous bits has failed.
[0075] ECC unit 138 can perform error correction operations in various ways, including but not limited to coded modulation. Examples include low-density parity-check (LDPC) codes, Bose-Chaudhuri-Hocquenghem (BCH) codes, turbo codes, Reed-Solomon (RS) codes, convolutional codes, recursive systematic codes (RSC), trellis-coded modulation (TCM), and block-coded modulation (BCM). ECC unit 138 may also include various circuits, modules, systems, or devices for performing error correction operations based on at least one of these codes.
[0076] The PMU 140 can manage the power of the memory controller 130.
[0077] Memory interface 142 can serve as an interface for processing commands and data transferred between memory controller 130 and memory device 150, allowing memory controller 130 to control memory device 150 in response to requests from host 102. When memory device 150 is flash memory, including but not limited to NAND flash memory, memory interface 142 can generate control signals for memory device 150 based on control by processor 134 and can process data input to or output from memory device 150. Memory interface 142 can serve as an interface for processing commands and data between memory controller 130 and memory device 150. For example, memory interface 142 can serve as a NAND flash memory interface for the purpose of processing operations between memory controller 130 and memory device 150. In embodiments, memory interface 142 can be implemented via firmware (e.g., flash interface layer (FIL)) that serves as a component for exchanging data with memory device 150.
[0078] Memory 144 can support operations performed by memory system 110 and memory controller 130. Memory 144 can store temporary or transactional data related to or transferred in connection with operations in memory system 110 and memory controller 130. Memory controller 130 can control memory device 150 in response to requests from host 102. Memory controller 130 can transfer data read from memory device 150 to host 102. Memory controller 130 can store data input via host 102 in memory device 150. Memory 144 can be used to store data for operations performed by memory controller 130 and memory device 150, such as read operations or programming / write operations.
[0079] Memory 144 may be implemented using volatile memory, such as static random access memory (SRAM), dynamic random access memory (DRAM), or both. Memory 144 may be located within memory controller 130. In embodiments, memory 144 may be external and coupled to memory controller 130. For example, memory 144 may include external volatile memory with a memory interface that transfers data and / or signals between memory 144 and memory controller 130.
[0080] Memory 144 may store data for performing operations requested by host 102, such as data writing and data reading, and / or data transferred between memory device 150 and memory controller 130 for background operations such as garbage collection and wear leveling. In embodiments, to support operations in memory system 110, memory 144 may include one or more of program memory, data memory, write buffer / cache, read buffer / cache, data buffer / cache, map buffer / cache, etc.
[0081] Processor 134 may be implemented, for example, using a microprocessor or a central processing unit (CPU). In one embodiment, memory system 110 may include one or more processors 134. Processor 134 may control all operations of memory system 110. By way of example and not limitation, processor 134 may control programming or reading operations of memory device 150 in response to write or read requests input from host 102. In embodiments, processor 134 may use or execute instructions (e.g., firmware) to control all operations of memory system 110. In one embodiment, firmware may refer to a flash translation layer (FTL). The FTL may operate as an interface between host 102 and memory device 150. Host 102 may transmit requests for write and read operations to memory device 150 via the FTL.
[0082] For example, the memory controller 130 may use a processor 134 (e.g., implemented as a microprocessor or central processing unit (CPU)) to execute operations requested from the host 102 within the memory device 150. The processor 134 may engage with the memory device 150 to process instructions or commands corresponding to commands from the host 102. For example, the memory controller 130 may execute foreground operations as operations corresponding to commands from the host 102. Examples of commands include programming operations corresponding to write commands, reading operations corresponding to read commands, erasing / discarding operations corresponding to erase / discard commands, and parameter setting operations corresponding to parameter setting commands or setting feature commands with setting commands.
[0083] In one embodiment, the memory controller 130 may perform background operations on the memory device 150 via the processor 134. By way of example and not limitation, background operations on the memory device 150 may include copying data stored in one of the memory blocks 152, 154, 156 of the memory device 150 and storing that data in another memory block, such as a garbage collection (GC) operation. Background operations may include moving or swapping data stored in at least one of the memory blocks 152, 154, 156 to at least another memory block among the memory blocks 152, 154, 156, such as a wear leveling (WL) operation.
[0084] During background operations, memory controller 130 may use processor 134 to store mapped data (stored in memory controller 130) into at least one of the memory blocks 152, 154, 156 of memory device 150, for example, through a mapping flush operation. Bad block management operations, such as checking or searching for bad blocks in memory blocks 152, 154, 156, are another example of background operations that can be performed by processor 134.
[0085] In memory system 110, memory controller 130 can perform multiple operations corresponding to commands input from host 102. For example, when sequentially, randomly, or alternately executing programming operations corresponding to programming commands, reading operations corresponding to reading commands, and erasing operations corresponding to erasing commands, memory controller 130 can determine or select channels or paths for performing each operation. The channels or paths may be, for example, channels or paths connecting memory controller 130 to multiple memory dies in memory device 150.
[0086] The memory controller 130 can send or transmit data or instructions via a channel or path for performing each operation. Memory dies in the memory 150 can transmit operation results via the same channel or path after completing their respective operations. The memory controller 130 can then transmit a response or acknowledgment signal to the host 102. In an embodiment, the memory controller 130 can check the status of each channel or path. In response to a command from the host 102, the memory controller 130 can select at least one channel or path based on the status of each channel or path, thereby enabling the transmission of instructions and / or operation results and data via the selected channel(s) or path(s).
[0087] As an example and not a limitation, the memory controller 130 can identify the state of channels (or pathways) associated with memory dies in the memory device 150. For example, the memory controller 130 can determine the state of each channel or pathway as busy, ready, active, idle, normal, or abnormal, or various combinations thereof. The controller's determination of which channel or pathway to pass instructions (and / or data) can be associated with physical block addresses (e.g., which die(s)(s) the instructions (and / or data) are passed to).
[0088] In this embodiment, each of the multiple partitions ZONE 1 to ZONE N may include multiple storage blocks 152, 154, 156, ... In this embodiment, the number of storage blocks included in each of the multiple partitions ZONE 1 to ZONE N may be different from or the same as each other. A partition may be a storage area corresponding to a Logical Block Address Group (LBA GROUP), which includes multiple logical block addresses input from host 102. Specifically, the multiple partitions may be areas used to store data corresponding to each Logical Block Address Group (LBA GROUP). Figure 2 As shown, the first partition ZONE 1 can be a partition used to store data corresponding to the first storage block group LBA GROUP 1. The second partition ZONE 2 can be a partition used to store data corresponding to the second storage block group LBA GROUP 2. The third partition ZONE 3 can be a partition used to store data corresponding to the third storage block group LBA GROUP 3. The Nth partition ZONE N can be a partition used to store data corresponding to the Nth storage block group LBA Group N. Each of the logical block address groups can include consecutive logical block addresses.
[0089] In one implementation, the memory controller 130 may be a multi-core memory controller, comprising multiple distinct central processing units (CPUs) or CPU cores for controlling operations performed on multiple partitions within the memory device 150. Each of the multiple cores is assigned to a partition group comprising the multiple partitions. For example, operations performed on a specific partition corresponding to a contiguous logical block address (LBA GROUP) input from host 102 may be controlled by a core assigned to the partition group comprising that specific partition.
[0090] The amount of requests allocated to each kernel can vary depending on the partition corresponding to the requests received from host 102. Therefore, excessive requests from host 102 to memory controller 130 may be sent to a particular kernel among the multiple kernels. In this case, the load levels of the multiple kernels may differ from one another. To address this problem, a method is needed to distribute the host's requests evenly across the multiple kernels to maintain a uniform load level across them.
[0091] Figure 4 This is a diagram illustrating an example of a multi-core memory controller 130 used in a data processing system 100 according to an embodiment.
[0092] In this example, the data processing system 100 may include a host 102, a multi-core memory controller 130, and a memory device 150 with different memory partitions. Figure 4 The host 102, memory controller 130, and memory device 150 shown can correspond to Figure 3 The host 102, memory controller 130, and memory device 150 are shown.
[0093] The memory device 150 may include multiple memory blocks allocated to multiple partitions ZONE 1, ZONE 2, ZONE 3, ..., ZONE N, and is controlled by the memory controller 130.
[0094] Host 102 transmits the write request WT_REQ to memory controller 130. Host 102 may transmit the write data and partition identification information together with the write request WT_REQ to memory controller 130. The partition identification information may include the logical block address (LBA) of the write data.
[0095] The memory controller 130 may include a host interface 132 and multiple CPU cores CORE_A, CORE_B, CORE_C and CORE_D. Figure 4 The memory controller 130 is shown to include only four cores, but the disclosed technology is not limited to this and can be implemented with any number of cores.
[0096] Multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D can correspond to Figure 3 The processor 134 shown. Multiple cores CORE_A, CORE_B, CORE_C and CORE_D can run in parallel, and each of the cores CORE_A, CORE_B, CORE_C and CORE_D can drive the flash translation layer FTL.
[0097] In response to a write request WT_REQ from host 102, host interface 132 according to this embodiment can check whether the load levels of multiple cores CORE_A, CORE_B, CORE_C and CORE_D remain uniform, and uniformly manage the load levels so that the load is balanced among multiple cores CORE_A, CORE_B, CORE_C and CORE_D.
[0098] Host interface 132 can detect a first kernel that controls the partition for which a write operation is requested by a write request WT_REQ from host 102. The first kernel may have been configured to control the write operation performed on the partition for which data is requested to be written according to host 102. Additionally, host interface 132 can determine whether to perform the write operation using a second kernel instead of the first kernel based on the number of open partitions controlled by the detected first kernel.
[0099] In an implementation of the disclosed technology, the second core may be a core selected by the memory controller 130 based on the detected load levels of different cores to achieve the desired load balancing among the different cores and to perform write operations according to the write request WT_REQ.
[0100] Therefore, in the disclosed embodiments, the first kernel may correspond to a kernel that controls a partition by requesting a write operation to that partition based on a write request WT_REQ received from the host 102. The second kernel may correspond to a kernel selected by the memory controller 130 and performing a write operation based on the write request WT_REQ.
[0101] In order to achieve the desired load balancing when operating different kernels in the memory controller 130, the host interface 132 of the disclosed technology may include a partition information manager 131 and a kernel control unit 135.
[0102] The partition information manager 131 can generate a mapping table, which includes partition identification information and the mapping relationship between the partition corresponding to the partition identification information and the kernel that controls the partition.
[0103] The partition information manager 131 can generate status information STATE indicating the programming status of each of multiple partitions ZONE 1, ZONE 2, ZONE 3, ..., ZONE N in response to a write request WT_REQ received from the host 102. The status information STATE can include an open state (OPEN), a closed state (CLOSED), an empty state (EMPTY), and a full state (FULL). An open state indicates that the memory controller 130 has determined that a programming operation can be performed on the corresponding partition. Therefore, an open state can refer to the state in which the corresponding partition can be used to perform the programming operation requested by the write request WT_REQ received from the host 102. An open state can indicate a state in which a programming operation is being performed or a state in which a programming operation is planned. A closed state can indicate a state in which a programming operation has been determined to be stopped. An empty state, also known as an erase state, can indicate a state in which a programming operation has not been determined to be performed. A full state can indicate a state in which a programming operation has been completed.
[0104] The partition information manager 131 can generate an open count value OPEN_CNT for each of the multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D based on the generated status information STATE. The open count value OPEN_CNT can indicate the number of open partitions controlled by the corresponding kernel. An open partition can refer to a partition whose status information STATE is "open". For example, suppose kernel CORE_B controls five partitions ZONE 2, ZONE 6, ZONE 10, ZONE 14, and ZONE 18. In this case, when the status information STATE of four partitions ZONE 2, ZONE 6, ZONE 10, and ZONE 14 is "OPEN" while the status information STATE of another partition ZONE 18 is "EMPTY", the open count value OPEN_CNT of kernel CORE_B can be "4".
[0105] Figure 4 The storage unit showing the separate storage mapping table MAP TABLE, status information STATE, and open count value OPEN_CNT is stored in the partition information manager 131, but the disclosed technology is not limited thereto.
[0106] The kernel control unit 135 can detect or identify a partition that has been requested to perform a write operation based on a write request WT_REQ, based on partition identification information. The partition identification information may include a logical block address (LBA). For example, when write data and a logical block address along with a write request WT_REQ are received from host 102, the kernel control unit 135 can detect or identify the partition corresponding to the logical block address. The kernel control unit 135 can determine the kernel controlling the detected or identified partition as a first kernel. Therefore, the first kernel corresponds to a kernel whose corresponding identification information is included in the write request WT_REQ received from the host.
[0107] The kernel control unit 135 can check whether the load level of the first kernel is high based on a first open count value, which controls the partitions requested to perform write operations according to write requests WT_REQ. The first open count value can indicate the number of open partitions controlled by the first kernel.
[0108] In an embodiment, when the first open count value is the maximum among multiple open count values OPEN_CNT, the kernel control unit 135 can determine that the load level of the first kernel is high. In this case, the kernel control unit 135 operates to perform load balancing between different kernels.
[0109] In an embodiment, when the first open count value is equal to or greater than a threshold, the kernel control unit 135 can determine that the load level of the first kernel is high. Therefore, the kernel control unit 135 can determine that the load levels of multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D are uneven and perform a load balancing operation. The threshold may include the average of multiple open count values. Alternatively, the threshold may include a value greater than the average of the multiple open count values but less than the maximum open count value.
[0110] When the load level of the first kernel is high, the kernel control unit 135 can change the kernel used to perform the write operation corresponding to the write request WT_REQ. Therefore, based on the first kernel's first open count value, the kernel control unit 135 can control multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D, such that the write operation corresponding to the write request WT_REQ is performed by a second kernel with a lower load level than the first kernel, instead of the first kernel. The second kernel refers to the kernel determined by the kernel control unit 135 to perform the write operation, rather than the first kernel controlling the partition requested to perform the write operation according to the write request WT_REQ.
[0111] In addition, the kernel control unit 135 can identify a kernel with an open count value less than the first open count value as a second kernel.
[0112] In one embodiment, when the first open count value is the maximum among multiple open count values OPEN_CNT, the kernel control unit 135 can determine the kernel with the smallest open count value as the second kernel. In some other embodiments, when the first open count value is not the maximum value, the kernel control unit 135 can determine the first kernel as the second kernel.
[0113] In one embodiment, when the first open count value is equal to or greater than a threshold, the kernel control unit 135 can identify a kernel with an open count value less than the threshold as a second kernel. In some other embodiments, when the first open count value is less than the threshold, the kernel control unit 135 can identify a first kernel as a second kernel.
[0114] During a write operation, the second kernel may, based on the control of the memory controller 130, change at least one empty partition controlled by the second kernel into an open partition, and perform a write operation on the storage block allocated to the newly changed open partition.
[0115] Therefore, the memory controller 130 according to this embodiment can uniformly manage the load levels of multiple cores CORE_A, CORE_B, CORE_C and CORE_D by changing the core performing the write operation based on the open count value OPEN_CNT to perform the write operation requested by the write request WT_REQ received from the host.
[0116] Figures 5A to 5D This is a diagram illustrating the operation of changing the kernel that performs write operations according to an embodiment.
[0117] Specifically, Figure 5A This is a diagram illustrating multiple kernels controlling multiple partitions according to an embodiment. Figure 5B This is a diagram illustrating a mapping table according to an embodiment. Figure 5C This is a diagram illustrating state information according to an embodiment. Figure 5D This is a diagram illustrating the open count value according to an embodiment. Figures 5A to 5D The method shown can be derived from Figure 4 The memory controller 130 shown is executed.
[0118] Figure 5AEach of the multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D shown can control write operations performed on five partitions. Kernel CORE_A can control partitions ZONE 1, ZONE 5, ZONE 9, ZONE 13, and ZONE 17; kernel CORE_B can control partitions ZONE 2, ZONE 6, ZONE 10, ZONE 14, and ZONE 18; kernel CORE_C can control partitions ZONE 3, ZONE 7, ZONE 11, ZONE 15, and ZONE 19; and kernel CORE_D can control partitions ZONE 4, ZONE 8, ZONE 12, ZONE 16, and ZONE 20. In this embodiment, the number of kernels and the number of partitions controlled by each kernel can vary depending on the implementation.
[0119] Figure 5B The mapping table shown can include the mapping relationship between the partition ZONE corresponding to the partition identification information ZONE_ID and the kernel CORE of the control partition ZONE.
[0120] Figure 5C The STATE status information shown indicates the programming status of each of the multiple partitions ZONE 1 through ZONE 20. STATE status information can include OPEN, CLOSED, EMPTY, and FULL. Partitions ZONE 1, ZONE 2, ZONE 4, ZONE 5, ZONE 6, ZONE 8, ZONE 9, ZONE 10, ZONE 11, and ZONE 14 can be in the OPEN state, indicating that a programming operation is determined to be performed. The OPEN state can include a state where a programming operation is being performed or a programming operation is planned to be performed soon. Partition ZONE 7 can be in the CLOSED state, indicating that a programming operation is determined to be stopped. Partitions ZONE 12, ZONE 13, ZONE 15, ZONE 16, ZONE 17, ZONE 18, ZONE 19, and ZONE 20 can be in the EMPTY state, indicating that a programming operation is not determined to be performed, and storage blocks allocated to empty partitions in the EMPTY state can be in a data erasure state. Partition ZONE 3 can be in a full state where programming operations have been completed.
[0121] Figure 5DThe open count value OPEN_CNT shown indicates the number of open partitions controlled by each of the multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D. Referring to the open count value OPEN_CNT, kernel CORE_A has an open count value of 3, kernel CORE_B has an open count value of 4, kernel CORE_C has an open count value of 1, and kernel CORE_D has an open count value of 2. Therefore, the number of open partitions controlled by the multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D are 3, 4, 1, and 2, respectively.
[0122] Among the multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D, the kernel with the largest open count value OPNE_CNT is kernel CORE_B. Therefore, since kernel CORE_B controls the most open partitions, its load level is the highest according to programming operations. At this time, when kernel CORE_B performs a write operation according to a write request, its load level becomes even higher. Therefore, the memory controller 130 can determine that the load levels of the multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D are uneven, and thus control the multiple kernels CORE_A, CORE_B, CORE_C, and CORE_D so that different kernels other than kernel CORE_B perform write operations corresponding to write requests.
[0123] In the following text, reference will be made to Figures 5A to 5D This embodiment describes in detail the operation of changing the kernel that performs write operations.
[0124] For example, when a write request WT_REQ is received from host 102 ( Figure 5B When referring to "REQUESTED BY WT_REQ" and the partition identifier information "LBA 18", see the relevant documentation. Figure 5B The mapping table shown shows that "LBA 18" is the partition identifier information ZONE_ID corresponding to ZONE 18 controlled by the kernel CORE_B. Based on Figure 5B As shown in the mapping table, the memory controller 130 can detect or identify the partition ZONE 18 corresponding to the received partition identification information LBA 18.
[0125] based on Figure 5BThe mapping table shown allows memory controller 130 to identify or recognize the kernel corresponding to the detected partition ZONE 18. Therefore, memory controller 130 confirms "CORE_B" as the control partition ZONE 18. Partition ZONE 18 is the one for which host 102 has requested a write operation to be performed. Figure 5A The partition is designated as "requested via WT_REQ". The memory controller 130 can determine the kernel CORE_B of the control partition ZONE 18 as the first kernel.
[0126] In this embodiment, a partition is described as a storage region corresponding to a logical block address (LBA), but the disclosed technology is not limited thereto. Therefore, as referred to Figure 2 As described, a partition can be a storage area corresponding to a logical block address group (LBA GROUP) that includes multiple logical block addresses input from host 102.
[0127] Memory controller 130 generation Figure 5C The diagram shows the status information STATEs for multiple partitions. Additionally, the memory controller 130 can generate the STATEs for each core by summing the number of partitions with the OPEN state from the generated status information STATEs. Figure 5D The multiple open count values OPEN_CNT are shown. Therefore, as... Figure 5D As shown, the memory controller 130 can generate an open count value OPEN_CNT for each core, which indicates the number of open partitions controlled by each of the multiple cores CORE_A, CORE_B, CORE_C, and CORE_D.
[0128] The memory controller 130 can determine "4" as the first open count value, where "4" is the open count value OPEN_CNT of the first core CORE_B, and determine the second core for performing the write operation corresponding to the write request WT_REQ based on the first open count value.
[0129] In some implementations, the memory controller 130 of the disclosed technology may identify a kernel CORE_C or CORE_D as a second kernel, wherein the kernel CORE_C or CORE_D is a kernel whose open count value OPEN_CNT is less than a first open count value "4".
[0130] When the first open count value "4" is the maximum value among multiple open count values OPEN_CNT, the memory controller 130 according to this embodiment can determine the kernel with the smallest open count value as the second kernel. Since the first open count value "4" of the first kernel CORE_B is the maximum value among multiple open count values 3, 4, 1, and 2, the memory controller 130 can determine the kernel CORE_C with the smallest open count value "1" as the second kernel.
[0131] When the first open count value "4" of the first core CORE_B is equal to or greater than a threshold (e.g., "2.5"), the memory controller 130 according to another embodiment can determine the core CORE_C with an open count value OPEN_CNT (e.g., "1") less than the threshold as the second core.
[0132] Since the first open count value "4" is equal to or greater than the threshold "2.5", the memory controller 130 can identify the kernel CORE_C, which has an open count value "1" less than the threshold, as the second kernel. In this case, the memory controller 130 can also identify the kernel CORE_D, which has an open count value "2" less than the threshold, as the second kernel.
[0133] Subsequently, the memory controller 130 can control the second kernel CORE_C to perform a write operation. During the write operation, the memory controller 130 can update the status information STATE of partition ZONE 15, which is one of the empty partitions controlled by the second kernel CORE_C, thereby changing partition ZONE 15 into an open partition. Figure 5C (Changed to 'OPEN' in the text). Additionally, the memory controller 130 can perform write operations on the storage blocks allocated to the partition newly changed to open partition ZONE 15. Figure 5A (The "perform write operation" in the text).
[0134] In addition, the memory controller 130 can Figure 5B The mapping table shown updates partition ZONE 15 (which corresponds to LBA 18 and was requested by the host to perform a write operation) to partition ZONE 15. Figure 5B (Changed to 'ZONE 15'). Additionally, the memory controller 130 can update the kernel controlling the partition corresponding to LBA 18 from kernel CORE_B to kernel CORE_C. Figure 5B (Change to 'CORE_C' in the text).
[0135] Figure 6 This is a flowchart illustrating an example of an operation method of a memory controller according to an embodiment. Figure 6The method shown can be, for example, by Figure 4 The memory controller 130 shown is executed.
[0136] The operation method of the memory controller 130 may include operations S100, S200, S300, S400 and S500, wherein the memory controller 130 controls a memory device including a plurality of memory blocks allocated to a plurality of partitions, and includes a plurality of cores controlling the plurality of partitions.
[0137] During operation S100, the memory controller 130 can receive a write request WT_REQ from the host 102.
[0138] During operation S200, the memory controller 130 can detect the first kernel controlling the partition corresponding to the write request WT_REQ. The memory controller 130 can detect or identify the partition corresponding to the write request WT_REQ based on partition identification information received from the host 102 and associated with the write request WT_REQ. The partition identification information may include a logical block address (LBA). Furthermore, the memory controller 130 can determine the kernel controlling the detected partition as the first kernel.
[0139] In operation S300, the memory controller 130 may generate an open count value OPEN_CNT in response to a received write request WT_REQ, where each open count value indicates the number of open partitions controlled by each of the multiple cores. An open partition may refer to the partition for which programming operations are to be performed. The operation S300 of generating the open count value OPEN_CNT may include generating status information STATE indicating the open status of the multiple partitions, and generating multiple open count values OPEN_CNT based on the status information STATE.
[0140] In operation S400, the memory controller 130 can determine a second core for performing the write operation corresponding to the write request WT_REQ based on the first core's first open count value OPEN_CNT. The memory controller 130 can also determine a core whose open count value OPEN_CNT is less than the first open count value OPEN_CNT as the second core. (See reference...) Figure 7A and Figure 7B The operation S400 of the memory controller 130 determining the second core is described in detail.
[0141] In operation S500, the memory controller 130 can control a second core such that the second core, with a lower load level than the first core, performs write operations. In some embodiments, the second core is different from the first core, which has a higher load level, and the second core controls the partition requested by the host to perform write operations. When the second core performs a write operation, the memory controller 130 can change an empty partition controlled by the second core into an open partition and control the second core to perform write operations on the memory blocks allocated to the newly changed open partition.
[0142] Figure 7A and Figure 7B This is a flowchart illustrating the operation of a memory controller determining a second core according to an embodiment. Figure 7A and Figure 7B Show Figure 6 Different examples of S400 operation, 400A and 400B. (See also...) Figure 7A and Figure 7B The described operation can be performed by Figure 4 The memory controller 130 shown is executed.
[0143] Reference Figure 7A ,exist Figure 6 Following operation S300, in operation S400, the memory controller 130 can determine whether the first open count value OPEN_CNT has a maximum value. The first kernel can be the kernel that controls the partition that the host 102 requests to perform a write operation on. The first open count value OPEN_CNT can be the number of open partitions controlled by the first kernel.
[0144] When the determination result of operation S410 indicates that the first open count value OPEN_CNT is not the maximum value among multiple open count values OPEN_CNT (i.e., "No" in operation S410), in operation S420, the memory controller 130 can determine the first core as the second core without changing the core.
[0145] When the determination result of operation S410 indicates that the first open count value OPEN_CNT is the maximum value among multiple open count values OPEN_CNT (i.e., "Yes" in step S410), in operation S430, the memory controller 130 can determine the kernel with the smallest open count value OPEN_CNT as the second kernel. Subsequently, the memory controller 130 can execute... Figure 6 Operation of S500.
[0146] Reference Figure 7B In execution Figure 6Following operation S300, in operation S415, the memory controller 130 may determine whether the first open count value OPEN_CNT is equal to or greater than a threshold. The threshold may include the average number of open partitions controlled by each of a plurality of kernels. The first kernel may be the kernel controlling the partition for which the host 102 requests a write operation. The first open count value OPEN_CNT may be the number of open partitions controlled by the first kernel.
[0147] When the determination result of operation S415 indicates that the first open count value OPEN_CNT is not equal to or greater than the threshold (i.e., "No" in operation S415), in operation S425, the memory controller 130 can determine the first core as the second core without changing the core used to perform the write operation.
[0148] When the determination result of operation S415 indicates that the first open count value OPEN_CNT is equal to or greater than the threshold (i.e., "Yes" in operation S415), in operation S435, the memory controller 130 can determine the kernel with the open count value OPEN_CNT less than the threshold as the second kernel. Subsequently, the memory controller 130 can execute... Figure 6 Operation of S500.
[0149] The memory controller and its operating method according to embodiments of the disclosed technology can prevent the load of write operations from being concentrated on a particular core and can balance the load levels of multiple cores controlling multiple partitions.
[0150] Although examples of memory systems and their operating methods have been described with reference to specific embodiments, variations and modifications can be made to the disclosed embodiments and other embodiments based on the content disclosed or shown in this patent document.
Claims
1. A memory controller for controlling a memory device comprising a plurality of memory blocks, the plurality of memory blocks being allocated to a plurality of partitions for storing data, the memory controller comprising: Multiple kernels control data operations in the multiple partitions of the memory device; as well as An external interface unit communicates with and receives from an external device a write request to perform a write operation on a first partition in the memory device. The external interface unit identifies a first kernel for controlling the first partition and determines a second kernel for performing the write operation based on the number of open partitions controlled by the first kernel and having an open state, the open state indicating the ability to run programming operations.
2. The memory controller of claim 1, wherein the external interface unit further determines that the number of open partitions is less than that of the second kernel controlling the open partitions of the first kernel.
3. The memory controller of claim 1, wherein when the number of open partitions controlled by the first kernel is equal to or greater than a threshold, the external interface unit further determines a second kernel whose number of open partitions is less than the threshold.
4. The memory controller of claim 1, wherein the second kernel changes the state of a third partition, which is controlled by the second kernel and has an empty state with no known ability to perform the programming operation, to an open state, and performs the write operation on the memory block allocated to the third partition.
5. A memory controller for controlling a memory device comprising a plurality of memory blocks, the plurality of memory blocks being allocated to a plurality of partitions, the memory controller comprising: Multiple kernels control the multiple partitions to perform data operations within the multiple partitions; The partition information manager communicates with an external device and (1) receives from the external device a write request to perform a write operation on a first partition, and (2) in response to receiving the write request, generates an open count value corresponding to the plurality of kernels, the open count value indicating the number of partitions controlled by the respective kernel and having an open state, the open state indicating the ability to run programming operations; as well as The kernel control unit communicates with the partition information manager and determines the second kernel for performing the write operation based on the first open count value of the first kernel that controls the first partition.
6. The memory controller of claim 5, wherein the kernel control unit determines a second kernel whose open count value is less than the first open count value.
7. The memory controller of claim 5, wherein when the first open count value is not the maximum value among the open count values corresponding to the plurality of cores, the core control unit determines the first core as the second core.
8. The memory controller of claim 5, wherein when the first open count value is equal to or greater than the threshold, the kernel control unit further determines a second kernel whose open count value is less than the threshold.
9. The memory controller of claim 8, wherein the threshold comprises the average of open count values corresponding to the plurality of cores.
10. The memory controller of claim 8, wherein the threshold is greater than the average of the open count values corresponding to the plurality of cores and less than the maximum open count value, the maximum open count value being the largest among the open count values corresponding to the plurality of cores.
11. The memory controller of claim 5, wherein the second kernel changes the state of a third partition, which is controlled by the second kernel and has an empty state with no known ability to perform the programming operation, to an open state, and performs the write operation on a memory block allocated to the third partition.
12. The memory controller of claim 5, further comprising a mapping table storage unit for storing a mapping table, the mapping table including a mapping relationship between a partition corresponding to partition identification information and a kernel controlling the partition.
13. A method of operating a memory controller, the memory controller controlling a memory device comprising a plurality of memory blocks, the plurality of memory blocks being allocated to a plurality of partitions, the method comprising: In response to a write request received from an external device requesting to perform a write operation on the first partition, multiple open count values are generated. The open count value of each kernel indicates the number of partitions controlled by the corresponding kernel and having an open state, the open state indicating the ability to run programming operations. as well as A second kernel is determined based on a first open count value corresponding to the first kernel controlling the first partition, for performing the write operation corresponding to the write request.
14. The method of operation according to claim 13, wherein determining the second kernel comprises: A second kernel with an open count value less than the first open count value is identified.
15. The method of operation according to claim 13, wherein determining the second kernel comprises: When the first open count value is the maximum value among the plurality of open count values, the second kernel with the smallest open count value is determined.
16. The method of operation according to claim 15, wherein determining the second kernel comprises: When the first open count value is not the maximum value among the plurality of open count values, the first kernel is determined to be the second kernel.
17. The method of operation according to claim 13, wherein determining the second kernel comprises: When the first open count value is equal to or greater than the threshold, the second kernel with an open count value less than the threshold is determined.
18. The method of operation according to claim 17, wherein the threshold comprises the average of the plurality of open count values.
19. The method of operation according to claim 17, wherein the threshold is greater than the average of the plurality of open count values and less than the maximum open count value, the maximum open count value being the maximum value among the plurality of open count values.
20. The operating method according to claim 13, further comprising: Change the state of the third partition, which is controlled by the second kernel and is in an empty state with an uncertain ability to perform the programming operation, to an open state. as well as The write operation is performed on the storage block allocated to the third partition.
Citation Information
Patent Citations
Systems and methods for dynamic logical block address distribution between multicores
US20210318829A1
