CN110989919B - Log recording mechanism for memory systems - Google Patents
Log recording mechanism for memory systems Download PDFInfo
- Publication number
- CN110989919B CN110989919B CN201910933263.0A CN201910933263A CN110989919B CN 110989919 B CN110989919 B CN 110989919B CN 201910933263 A CN201910933263 A CN 201910933263A CN 110989919 B CN110989919 B CN 110989919B
- Authority
- CN
- China
- Prior art keywords
- memory
- event
- command
- time
- memory device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0775—Content or structure details of the error report, e.g. specific table structure, specific error fields
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0769—Readable error formats, e.g. cross-platform generic formats, human understandable formats
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0772—Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
- G06F11/1048—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using arrangements adapted for a specific error detection or correction feature
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0238—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
- G06F12/0246—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1668—Details of memory controller
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/835—Timestamp
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/86—Event-based monitoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1032—Reliability improvement, data loss prevention, degraded operation etc
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1056—Simplification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/72—Details relating to flash memory management
- G06F2212/7201—Logical to physical mapping or translation of blocks or pages
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a method and system that can more easily identify problems associated with memory systems and simplify the analysis process. The method includes generating a detailed activity log having respective start and stop transmission events to facilitate identifying a problem in the memory device. Each event registered in the log contains a number of pieces of information. Such information helps identify the source of a particular problem, including the time and location of the problem, thereby making Fault Analysis (FA) easier and faster.
Description
Cross Reference to Related Applications
The present application claims priority from U.S. provisional application Ser. No. 62/740,772 filed on 3/10/2018, the entire contents of which are incorporated herein by reference.
Technical Field
Embodiments of the present disclosure relate to a logging mechanism for a memory system that is capable of narrowing the time span for a particular failure of the memory system.
Background
Computer environment paradigms have transformed into ubiquitous computing systems that are usable anytime and anywhere. Accordingly, the use of portable electronic devices such as mobile phones, digital cameras, and notebook computers has been rapidly increasing. These portable electronic devices typically use a memory system with a memory device, i.e., a data storage device. The data storage device serves as a main memory device or a secondary memory device of the portable electronic device.
Since data storage devices using memory devices do not have moving parts, they provide excellent stability, durability, high information access speed, and low power consumption. Examples of data storage devices having these advantages include Universal Serial Bus (USB) memory devices, memory cards with various interfaces, and Solid State Drives (SSDs).
An SSD may include a flash memory component and a controller including electronics to bridge the flash memory component to an input/output (I/O) interface of the SSD. The SSD controller may include an embedded microprocessor running functional components such as firmware. SSD function components are typically device specific and can be updated in most cases.
Two main types of flash memories are named NAND logic gates and NOR logic gates. Individual flash memory cells exhibit intrinsic characteristics similar to those of their respective gates. NAND-type flash memory can be written to and read from in blocks (or pages), which are typically much smaller than the entire memory space. NOR flash memory allows a single machine word (byte) to be written to an erase location or read independently. NAND-type flash memories mainly operate in memory cards, USB flash drives, SSDs, and the like for general data storage and transmission.
Debug information that accompanies abnormal behavior occurring in a memory system, such as an SSD, is typically continuously collected while it is in the user's field during the lifetime of the system. Such information is expected to help reduce problems or provide some clues in the event of a failure. However, because the log covers a period of time that may be up to five years (possibly the entire warranty period) and the log itself contains millions of entries, it may be difficult to determine when and where the problem occurred after the log was received from the user.
In this context, embodiments of the present invention are presented.
Disclosure of Invention
Embodiments of the present invention relate to a logging mechanism for a memory system that can narrow the time span over which a particular failure occurs to more easily identify when and where the particular failure occurred.
Accordingly, one aspect of the invention includes a method of operating a memory controller for detecting activity in a memory device associated with the memory controller. The method comprises the following steps: detecting a start transmission event defining a start of receiving a command group from a host; registering the transmission starting event in an activity log; detecting a specific period of time when no command is received after the transmission event is started; and after a certain period of time has elapsed, a stop transmission event is posted to the activity log.
Another aspect of the invention relates to a memory system that includes a memory device and a memory controller configured to detect activity in the memory device associated with the memory controller. The memory controller includes: a log logger detecting a start transmission event defining a start of a command group received from a host; registering the transmission starting event in an activity log; detecting a specific period of time when no command is received after the transmission event is started; and after a certain period of time has elapsed, a stop transmission event is posted to the activity log.
According to another aspect of the invention, a method of operating a memory controller that detects activity in a memory device associated with the memory controller. The method comprises the following steps: detecting a plurality of start transmission events, each of the plurality of start transmission events defining a start of receiving a respective command group from the host; registering each of a plurality of start transmission events in an activity log; detecting a specific period of time after each start transmission event when no command is received; and registering a plurality of stop transmission events in an activity log, each of the stop transmission events being registered after a corresponding one of the specific time periods has elapsed.
Other aspects of the invention will become apparent from the description that follows.
Drawings
Fig. 1 is a diagram illustrating a memory system according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating a memory system according to an embodiment of the invention.
Fig. 3 is a circuit diagram illustrating a memory block of a memory device of a memory system according to an embodiment of the present invention.
Fig. 4 is a diagram illustrating a layout of a log recorder or log according to an embodiment of the present invention.
Fig. 5A and 5B are flowcharts illustrating the flow of host activity life log recording according to an embodiment of the present invention.
FIG. 6 is a flow chart illustrating a process of detecting activity in a memory device of a memory system according to an embodiment of the invention.
Detailed Description
Various embodiments are described in more detail below with reference to the accompanying drawings. This invention may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Furthermore, references herein to "an embodiment," "another embodiment," etc., are not necessarily to only one embodiment, and different references to any such phrase are not necessarily to the same embodiment. Throughout this disclosure, like reference numerals designate like parts throughout the drawings and embodiments of the present invention.
The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a combination of objects, a computer program product embodied on a computer readable storage medium, and/or a processor such as one adapted to execute instructions stored on and/or provided by a memory coupled to the processor. In this specification, these embodiments, or any other form that the disclosure may take, may be referred to as solutions. In general, the order of the steps of disclosed processes may be altered within the scope of the invention. Unless otherwise indicated, components such as processors or memories described as suitable for performing the tasks may be implemented as general-purpose components temporarily configured to perform the tasks at a given time or as specific components manufactured to perform the tasks. As used herein, the term "processor" or the like refers to one or more devices, circuits, and/or processing cores adapted to process data, such as computer program instructions.
The following provides a detailed description of embodiments of the invention, along with accompanying figures that illustrate aspects of the invention. The invention will be described in connection with these embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims. The invention is intended to cover alternatives, modifications and equivalents, which may be included within the scope of the claims. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. These details are provided for the purpose of illustration; the present invention may be practiced according to the claims without some or all of these specific details. For the sake of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
Fig. 1 is a block diagram schematically illustrating a memory system according to an embodiment of the present invention.
Referring to fig. 1, a memory system 10 may include a memory controller 100 and a semiconductor memory device 200, and the semiconductor memory device 200 may represent more than one such device. The semiconductor memory device 200 is preferably a flash memory device, particularly a NAND flash memory device.
The memory controller 100 may control the overall operation of the semiconductor memory device 200. For simplicity, the memory controller 100 and the semiconductor memory device 200 may hereinafter be sometimes simply referred to as the controller 100 and the memory device 200, respectively.
The semiconductor memory device 200 may perform one or more erase operations, program operations, and read operations under the control of the memory controller 100. The semiconductor memory device 200 may receive a command CMD, an address ADDR, and DATA through input/output (I/O) lines. The semiconductor memory device 200 may receive the power PWR through a power line and the control signal CTRL through a control line. The control signal CTRL may include a Command Latch Enable (CLE) signal, an Address Latch Enable (ALE) signal, a Chip Enable (CE) signal, a Write Enable (WE) signal, a Read Enable (RE) signal, and the like.
The memory controller 100 and the semiconductor memory device 200 may be integrated in a single semiconductor device such as a Solid State Drive (SSD). The SSD may include a storage device for storing data therein. When the memory system 10 is used in an SSD, the operation speed of the host device 5 coupled to the memory system 10 can be significantly increased.
The memory controller 100 and the semiconductor memory device 200 may be integrated in a single semiconductor device such as a memory card. For example, the memory controller 100 and the semiconductor memory device 200 may be so integrated as to be configured to: personal Computer Memory Card International Association (PCMCIA) PC cards, compact Flash (CF) cards, smart Media (SM) cards, memory sticks, multimedia cards (MMC), reduced-size multimedia cards (RS-MMC), micro-sized versions MMC (MMC micro), secure Digital (SD) cards, mini secure digital (mini SD) cards, micro secure digital (micro SD) cards, secure Digital High Capacity (SDHC) cards, and/or Universal Flash (UFS).
In another embodiment, the memory system 10 may be provided as one of various components in an electronic device such as: a computer, an Ultra Mobile PC (UMPC), a workstation, a netbook computer, a Personal Digital Assistant (PDA), a portable computer, a web tablet PC, a wireless telephone, a mobile telephone, a smart phone, an electronic book reader, a Portable Multimedia Player (PMP), a portable gaming device, a navigation device, a black box, a digital camera, a Digital Multimedia Broadcasting (DMB) player, a three-dimensional 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 for a data center, a device capable of receiving and transmitting information in a wireless environment, a Radio Frequency Identification (RFID) device, and one of various electronic devices of a home network, one of various electronic devices of a computer network, one of various electronic devices of a telematics network, or one of various components of a computing system.
FIG. 2 is a detailed block diagram illustrating a memory system according to an embodiment of the invention. For example, the memory system of FIG. 2 may describe the memory system 10 shown in FIG. 1.
Referring to fig. 2, the memory system 10 may include a memory controller 100 and a semiconductor memory device 200. The memory system 10 may operate in response to a request from the host device 5, in particular, store data to be accessed by the host device 5.
The host device 5 may be implemented using any of a variety of electronic devices. In some embodiments, the host device 5 may include electronic devices such as the following: desktop computers, workstations, three-dimensional (3D) televisions, smart televisions, digital audio recorders, digital audio players, digital picture recorders, digital picture players, and/or digital video recorders, and digital video players. In some embodiments, the host device 5 may comprise a portable electronic device such as the following: mobile phones, smart phones, electronic books, MP3 players, portable Multimedia Players (PMPs), and/or portable gaming machines.
The memory device 200 may store data to be accessed by the host device 5.
The memory device 200 may be implemented with volatile memory devices such as Dynamic Random Access Memory (DRAM) and/or Static Random Access Memory (SRAM) or non-volatile memory devices such as the following: read-only memory (ROM), mask ROM (MROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), ferroelectric Random Access Memory (FRAM), phase change RAM (PRAM), magnetoresistive RAM (MRAM), and/or Resistive RAM (RRAM).
The controller 100 may control the storage of data in the memory device 200. For example, the controller 100 may control the memory device 200 in response to a request from the host device 5. The controller 100 may provide data read from the memory device 200 to the host device 5, and may store the data provided from the host device 5 in the memory device 200.
The controller 100 may include a storage 110, a control component 120, an Error Correction Code (ECC) component 130, a host interface (I/F) 140, and a memory interface (I/F) 150 coupled by a bus 160, where the control component 120 may be implemented as a processor such as a Central Processing Unit (CPU).
The storage device 110 may be used as a working memory of the memory system 10 and the controller 100, and stores data for driving the memory system 10 and the controller 100. When the controller 100 controls the operation of the memory device 200, the storage device 110 may store data used by the controller 100 and the memory device 200 for operations such as a read operation, a write operation, a program operation, and an erase operation.
The storage 110 may be implemented using volatile memory such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). As described above, the storage device 110 may store data used by the host device 5 in the memory device 200 for read operations and write operations. For storing data, the storage 110 may include program memory, data memory, write buffers, read buffers, map buffers, and the like. The storage 110 may include a hash table.
The control component 120 may control the general operation of the memory system 10 and control the write operation or read operation of the memory device 200 in response to a write request or read request from the host device 5. The control component 120 may drive firmware, referred to as a Flash Translation Layer (FTL) 125, to control the general operation of the memory system 10. For example, FTL 125 may perform operations such as logical-to-physical (L2P) mapping, wear leveling, garbage Collection (GC), and/or bad block processing. FTL 125 may be implemented as firmware in controller 100 and, more specifically, in control component 120. L2P mapping is referred to as logical block addressing.
During a read operation, the ECC component 130 can detect and correct errors in the data read from the memory device 200. When the number of error bits is greater than or equal to the threshold number of correctable error bits, the ECC component 130 may not correct the error bits, but may output an error correction failure signal indicating that the error bits have failed correction.
The ECC component 130 may perform error correction operations based on coded modulation such as: low Density Parity Check (LDPC) codes, bose-Chaudhri-Hocquenghem (BCH) codes, turbo Product Codes (TPC), reed-Solomon (RS) codes, convolutional codes, recursive Systematic Codes (RSC), trellis Coded Modulation (TCM), and Block Coded Modulation (BCM). The ECC component 130 may include any and all circuits, systems, or devices suitable for error correction operations.
The host interface 140 may communicate with the host device 5 via one or more of various interface protocols such as: universal Serial Bus (USB), multimedia card (MMC), peripheral component interconnect express (PCI-e or PCIe), small Computer System Interface (SCSI), serial SCSI (SAS), serial Advanced Technology Attachment (SATA), parallel Advanced Technology Attachment (PATA), nonvolatile memory express (NVMe), enhanced compact disc interface (ESDI), and integrated electronics drive (IDE).
The memory interface 150 may provide an interface between the controller 100 and the memory device 200 to allow the controller 100 to control the memory device 200 in response to a request from the host device 5. The memory interface 150 may generate control signals for the memory device 200 and process data under the control of the control component (or CPU) 120. When the memory device 200 is a flash memory such as a NAND flash memory, the memory interface 150 may generate a control signal for the memory and process data under the control of the CPU 120.
The voltage generation circuit 230, the row decoder 240, the page buffer (array) 250, the column decoder 260, and the input/output circuit 270 may form peripheral circuits of the memory cell array 210. The peripheral circuits may perform a program operation, a read operation, or an erase operation of the memory cell array 210. The control circuit 220 may control peripheral circuits.
The voltage generation circuit 230 may generate various levels of operating voltages. For example, in the erase operation, the voltage generation circuit 230 may generate operation voltages of various levels such as an erase voltage and a pass voltage.
The row decoder 240 may be in electrical communication with the voltage generation circuit 230 and the plurality of memory blocks 211. The row decoder 240 may select at least one memory block among the plurality of memory blocks 211 in response to the row address RADD generated by the control circuit 220 and transmit the operation voltage supplied from the voltage generation circuit 230 to the selected memory block.
The page buffer (array) 250 may be in electrical communication with the memory cell array 210 (shown in FIG. 3) via bit lines BL. The page buffer (array) 250 may precharge the bit lines BL with a positive voltage in response to a page buffer control signal generated by the control circuit 220, transfer data to a selected memory block in a program operation, and receive data from the selected memory block in a read operation, or temporarily store the transferred data.
The column decoder 260 may transfer data to and receive data from the page buffer (array) 250, and may also exchange data with the input/output circuit 270.
The input/output circuit 270 may transfer a command and an address received from an external device (e.g., the memory controller 100) to the control circuit 220, and transfer data from the external device to the column decoder 260 or output data from the column decoder 260 to the external device through the input/output circuit 270.
The control circuit 220 may control peripheral circuits in response to commands and addresses.
Fig. 3 is a circuit diagram showing a memory block of a semiconductor memory device according to an embodiment of the present invention. For example, the memory block of fig. 3 may be any one of the plurality of memory blocks 211 of the memory cell array 200 shown in fig. 2.
Referring to fig. 3, the exemplary memory block 211 may include a plurality of word lines WL0 to WLn-1, a drain select line DSL, and a source select line SSL coupled to the row decoder 240. These lines may be arranged in parallel, with multiple word lines between DSL and SSL.
The exemplary memory block 211 may further include a plurality of cell strings 221 coupled to the bit lines BL0 to BLm-1, respectively. The cell string 340 of each column may include one or more drain select transistors DST and one or more source select transistors SST. In the illustrated embodiment, each cell string has one DST and one SST. In the cell string, a plurality of memory cells or memory cell transistors MC0 through MCn-1 may be serially coupled between the selection transistors DST and SST. Each of the plurality of memory cells may be formed as a multi-level cell (MLC) that stores multi-bit data information.
The source of the SST in each cell string may be coupled to a common source line CSL, and the drain of each DST may be coupled to a corresponding bit line. The gates of the SSTs in the cell strings may be coupled to SSL and the gates of the DSTs in the cell strings may be coupled to DSL. The gates of the memory cells across the cell string may be coupled to respective word lines. That is, the gate of the memory cell MC0 is coupled to the corresponding word line WL0, the gate of the memory cell MC1 is coupled to the corresponding word line WL1, and the like. A group of memory cells coupled to a particular word line may be referred to as a physical page. Thus, the number of physical pages in the memory block 211 may correspond to the number of word lines.
As previously described, the page buffer (array) 250 may be in the form of a page buffer array including a plurality of page buffers 251 coupled to bit lines BL0 to BLm-1. The page buffer 251 may operate in response to a page buffer control signal. For example, during a read operation or a verify operation, the page buffer 251 may temporarily store data received through the bit lines BL0 to BLm-1 or sense a voltage or current of the bit lines.
In some embodiments, the memory block 211 may include NAND-type flash memory cells. However, the memory block 211 is not limited to this cell type, but may include NOR-type flash memory cells. The memory cell array 210 may be implemented as a hybrid flash memory combining two or more types of memory cells, or as a single NAND (one-NAND) flash memory with a controller embedded within a memory chip.
As previously mentioned, memory systems experience various problems during their entire life, some of which require a degree of analysis. While information about these problems is continually collected and recorded, it is difficult to find information about a particular problem, such as a fault, because there are so many entries that span a relatively long period of time.
Embodiments of the present invention provide an improved logging mechanism, such as a logger, that improves upon the above by facilitating locating information related to a particular problem of interest, and a method of detecting and logging activity in a memory system.
Referring to fig. 4, a layout of a log logger (or log) 41 according to an embodiment of the present invention is shown. The log logger 41 contains data that can be saved or cleared to a memory device 200, such as a NAND. The transfer start (traffic) event and the transfer stop event are registered in the log logger 41 for read commands, write commands, and other commands received from the host 5. For each event, there is one start record and one end record, and each record is time stamped.
More specifically, a given start transmission event 42 includes the following information: a time stamp 43a indicating a time at which the registration start transmission event is registered; a transmission start Identification (ID) 44a indicating a transmission start event; an operation code (Opcode) 45 indicating an operation performed by the command group associated with the start transmission event; a Logical Block Address (LBA) 46, indicating where operations are performed in the memory device 200, and a Length (Length) 47 of the command, may represent the number of sectors of the command.
For each start transmission event, there is a corresponding stop transmission event. In fig. 4, the stop transmission event 48 corresponds to the start transmission event 42 described above. The stop transmission event 48 includes a time stamp 43b indicating the time at which the stop transmission event was registered, a stop transmission ID 44b, and identifies the stop transmission event. The transmission stop event further includes the following information in common with the corresponding transmission start event: an operation code (Opcode) 45, an LBA 46, and a Length (Length) 47 of the command set.
An error log ID49 may exist between the start transmission event 42 and the stop transmission event 48.
In operation, the host device 5 transmits a command group, and at some point, stops transmitting commands. Typically, there is a period of time during which no command is sent. The intermittent period is used to register a stall event registered for the command group just sent. For example, once the firmware of memory controller 100 obtains the last command of the command group, a stop transfer event 48 may be registered. At the time of registering the stop transmission event 48, all of the relevant information described above is also registered.
In embodiments, the commands associated with a particular pair of start and stop events may be the same type of read command, write command, or other type of command that is acquired by the firmware. Separate timers may be used or separate time periods may be set for different types of commands.
As shown in the flowchart of fig. 5A, after the device starts or previously stops transmitting events, a start transmission event is recorded due to a first command in step 502. That is, the corresponding opcodes, arguments, time stamps, etc. are stored in RAM, e.g., storage 110. Then in step 503, the type of first command after expiration of a specific or set period of time is determined. The set period of time may be maintained by a timer, such as an ISR (interrupt service routine) timer, which may be set in the controller 100. The type of command refers to whether the command is a write command, a read command, or other command, as shown in step 504. Then, in step 505, the recorded start transfer event is cleared to the NAND, such as memory device 200.
Referring to the flowchart of fig. 5B, the ISR timer operates to measure a set period of time after the last command. Each type of command may have its own set period of time, as shown in step 506. After a time set for a specific type of command, a stop transmission event is detected and recorded. Typically, the set period of time may be about 10 minutes. Thereafter, in step 507, the recorded transfer stop event is cleared to NAND.
Although the exact location where the problem occurs over a longer period of time is not known, various commands sent by the user may be acquired. Such commands include test logs, windows activities, etc. The key is to establish a connection between host activity and drive activity. For example, events are sent from the memory system and host activity is introduced. Thus, intersections on the time axis can be found, i.e. between cells where the fault is located, in a log with millions of entries.
FIG. 6 is a flowchart 600 describing steps in the process of detecting activity in a memory device of a memory system, according to an embodiment of the present invention. The steps shown in flowchart 600 are exemplary. It will be appreciated by those of skill in the art that additional steps and/or alternative steps may be performed or the order of steps may be altered to practice aspects of the invention without departing from the inventive concepts disclosed herein.
In step 601, a start transmission event defining a start of receiving a command group from a host is detected. In step 602, a start transmission event is registered in an activity log. After the start of the transmission event, a specific period of time during which no command is received is detected in step 603. After a certain period of time, a stop transmission event is posted in the activity log in step 604. Then, as shown in steps 605 and 606, the start transmission event and the stop transmission event are cleared to the NAND at appropriate times.
This process continues to create a detailed activity log of events that can be used to identify and resolve events or problems that occur in the operation of the memory system.
As previously described, embodiments of the present invention provide a mechanism to more quickly identify problems in memory devices. The mechanisms provided herein help identify the origin of a particular problem, including when and where the problem occurs, which is often difficult to do even with tracers and analyzers. Thus, embodiments of the present invention simplify these studies and make Fault Analysis (FA) easier and faster.
Although the foregoing embodiments have been illustrated and described in some detail for purposes of clarity and understanding, the invention is not limited to the details provided. As will be appreciated by those skilled in the art in light of the foregoing disclosure, there are many alternatives for practicing the invention. The disclosed embodiments are therefore illustrative and not restrictive.
Claims (15)
1. A method of operating a memory controller that detects activity in a memory device associated with the memory controller, the method comprising:
detecting a start transmission event defining a start of receiving a command set from a host;
registering the transmission starting event in an activity log;
detecting a specific period of time when no command is received after the memory controller acquires a last command of the command group after the start transmission event; and
after the certain period of time has elapsed, a stop transmission event is registered in the activity log.
2. The method of claim 1, wherein the registering of the start transmission event comprises: a time stamp indicating the time at which the start transfer event was registered, a start transfer identification, an opcode indicating the operation performed by the command set, a logical block address indicating the location in the memory device at which the operation was performed, i.e., LBA, and the length of the command set are registered.
3. The method of claim 2, wherein the registering of the stop transmission event comprises: a time stamp indicating the time at which the stall event was registered, a stall identification, the opcode indicating the operation performed by the command set, the logical block address indicating the location in the memory device at which the operation was performed, the LBA, and the length of the command set are registered.
4. The method of claim 1, wherein the command sets are each of a particular type.
5. The method of claim 4, wherein the particular type is read or write.
6. The method of claim 1, wherein the detection of the start transmission event is based on the elapse of the particular time period since the host received a last command of an immediately preceding command set.
7. The method of claim 1, further comprising:
after registering the start transmission event, the start transmission event is stored in the memory device.
8. The method of claim 1, further comprising:
after registering the stall event, the stall event is stored in the memory device.
9. A memory system, comprising:
a memory device; and
a memory controller that detects activity in the memory device associated with the memory controller, the memory controller comprising: a log logger, the log logger:
detecting a start transmission event defining a start of receiving a command set from a host;
registering the transmission starting event in an activity log;
detecting a specific period of time when no command is received after the memory controller acquires a last command of the command group after the start transmission event; and
after the certain period of time has elapsed, a stop transmission event is registered in the activity log.
10. The memory system of claim 9, wherein the memory controller comprises a timer for counting down the particular period of time.
11. The memory system of claim 10, wherein the memory controller comprises different timers for different types of commands.
12. The memory system of claim 9, wherein each of the start transmission event and the stop transmission event includes a respective timestamp and transmission identification.
13. A method of operating a memory controller that detects activity in a memory device associated with the memory controller, the method comprising:
detecting a plurality of start transmission events, each of the plurality of start transmission events defining a start of receiving a command set from a host;
registering each of the plurality of start transmission events in an activity log;
after each start transmission event, detecting a specific period of time when no command is received after the memory controller acquires a last command of the command group; and
registering a plurality of stop transmission events in said activity log, each of said stop transmission events being registered after a corresponding said specific period of time has elapsed.
14. The method of claim 13, further comprising:
each of the registered start transmission events is cleared to the memory device.
15. The method of claim 13, further comprising:
each of the registered stall events is cleared to the memory device.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201862740772P | 2018-10-03 | 2018-10-03 | |
US62/740,772 | 2018-10-03 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110989919A CN110989919A (en) | 2020-04-10 |
CN110989919B true CN110989919B (en) | 2023-06-27 |
Family
ID=70052153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910933263.0A Active CN110989919B (en) | 2018-10-03 | 2019-09-29 | Log recording mechanism for memory systems |
Country Status (2)
Country | Link |
---|---|
US (1) | US11599403B2 (en) |
CN (1) | CN110989919B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11294750B2 (en) * | 2019-07-15 | 2022-04-05 | Micron Technology, Inc. | Media management logger for a memory sub-system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0282325A (en) * | 1988-09-20 | 1990-03-22 | Fujitsu Ltd | Restoring system for event log data |
WO2015136959A1 (en) * | 2014-03-14 | 2015-09-17 | オムロン株式会社 | Control system, method, program and information processing device |
CN107544925A (en) * | 2016-06-24 | 2018-01-05 | 爱思开海力士有限公司 | Accumulator system and the method for accelerating boot time |
CN108108308A (en) * | 2016-11-24 | 2018-06-01 | 爱思开海力士有限公司 | Storage system and its operating method |
Family Cites Families (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6170063B1 (en) * | 1998-03-07 | 2001-01-02 | Hewlett-Packard Company | Method for performing atomic, concurrent read and write operations on multiple storage devices |
US7039773B2 (en) * | 2003-04-29 | 2006-05-02 | Oracle International Corporation | Method and mechanism for efficient implementation of ordered records |
US7365361B2 (en) * | 2003-07-23 | 2008-04-29 | Semiconductor Energy Laboratory Co., Ltd. | Semiconductor device and method for manufacturing the same |
US7446769B2 (en) * | 2004-02-10 | 2008-11-04 | International Business Machines Corporation | Tightly-coupled synchronized selection, filtering, and sorting between log tables and log charts |
US7546488B2 (en) * | 2004-07-02 | 2009-06-09 | Seagate Technology Llc | Event logging and analysis in a software system |
US7627614B2 (en) * | 2005-03-03 | 2009-12-01 | Oracle International Corporation | Lost write detection and repair |
US7774761B2 (en) * | 2005-12-27 | 2010-08-10 | International Business Machines Corporation | Use of memory watch points and a debugger to improve analysis of runtime memory access errors |
US8095723B2 (en) * | 2007-02-16 | 2012-01-10 | Electronics And Telecommunications Research Institute | Log-based flash translation layer and operating method thereof |
US7890299B2 (en) * | 2007-05-21 | 2011-02-15 | Qualcomm, Incorporated | Providing event-controlled continuous logging for a mobile operating environment |
US7913030B2 (en) * | 2007-12-28 | 2011-03-22 | Sandisk Il Ltd. | Storage device with transaction logging capability |
US8037033B2 (en) * | 2008-09-22 | 2011-10-11 | Microsoft Corporation | Log manager for aggregating data |
JP5198245B2 (en) * | 2008-12-27 | 2013-05-15 | 株式会社東芝 | Memory system |
US8171257B2 (en) * | 2009-09-25 | 2012-05-01 | International Business Machines Corporation | Determining an end of valid log in a log of write records using a next pointer and a far ahead pointer |
US8990476B2 (en) * | 2009-10-01 | 2015-03-24 | Micron Technology, Inc. | Power interrupt management |
TWI417889B (en) * | 2009-12-30 | 2013-12-01 | Silicon Motion Inc | Write timeout methods for a flash memory and memory device using the same |
US8725951B2 (en) * | 2010-04-12 | 2014-05-13 | Sandisk Enterprise Ip Llc | Efficient flash memory-based object store |
US8554741B1 (en) * | 2010-06-16 | 2013-10-08 | Western Digital Technologies, Inc. | Timeline application for log structured storage devices |
JP2012003644A (en) * | 2010-06-21 | 2012-01-05 | Fujitsu Ltd | Memory error part detection device and memory error part detection method |
US9465755B2 (en) * | 2011-07-18 | 2016-10-11 | Hewlett Packard Enterprise Development Lp | Security parameter zeroization |
US9047922B2 (en) | 2012-01-27 | 2015-06-02 | Seagate Technology Llc | Autonomous event logging for drive failure analysis |
US20140372710A1 (en) * | 2013-06-18 | 2014-12-18 | Samsung Electronics Co., Ltd. | System and method for recovering from an unexpected shutdown in a write-back caching environment |
US9329965B2 (en) | 2014-01-31 | 2016-05-03 | Hewlett Packard Enterprise Development Lp | Extracting log files from storage devices |
US8832027B1 (en) * | 2014-03-28 | 2014-09-09 | Storagecraft Technology Corporation | Change tracking between snapshots of a source storage |
KR20160033519A (en) * | 2014-09-18 | 2016-03-28 | 삼성전자주식회사 | Method of data storage device for generating log for write commands and method of raid system including same |
US9996563B2 (en) * | 2015-03-23 | 2018-06-12 | International Business Machines Corporation | Efficient full delete operations |
US10482038B2 (en) * | 2015-07-24 | 2019-11-19 | SK Hynix Inc. | Programmable protocol independent bar memory for SSD controller |
JP2018022402A (en) * | 2016-08-05 | 2018-02-08 | 富士通株式会社 | Information processor, information processing system, control method of information processor and control program information processor |
JP6834446B2 (en) * | 2016-12-14 | 2021-02-24 | オムロン株式会社 | Control system, control program and control method |
JP7358287B2 (en) * | 2020-03-30 | 2023-10-10 | キオクシア株式会社 | Semiconductor storage device and its control method |
-
2019
- 2019-09-11 US US16/567,440 patent/US11599403B2/en active Active
- 2019-09-29 CN CN201910933263.0A patent/CN110989919B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0282325A (en) * | 1988-09-20 | 1990-03-22 | Fujitsu Ltd | Restoring system for event log data |
WO2015136959A1 (en) * | 2014-03-14 | 2015-09-17 | オムロン株式会社 | Control system, method, program and information processing device |
CN107544925A (en) * | 2016-06-24 | 2018-01-05 | 爱思开海力士有限公司 | Accumulator system and the method for accelerating boot time |
CN108108308A (en) * | 2016-11-24 | 2018-06-01 | 爱思开海力士有限公司 | Storage system and its operating method |
Also Published As
Publication number | Publication date |
---|---|
CN110989919A (en) | 2020-04-10 |
US20200110652A1 (en) | 2020-04-09 |
US11599403B2 (en) | 2023-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10535410B2 (en) | Hybrid read disturb count management | |
CN109710451B (en) | Firmware event tracking for NAND-based storage devices, methods and instruction sets for performing same | |
US10180805B2 (en) | Memory system and operating method thereof | |
CN110689915B (en) | Remote SSD debug via host/serial interface and method of performing same | |
US10482038B2 (en) | Programmable protocol independent bar memory for SSD controller | |
US10296452B2 (en) | Data separation by delaying hot block garbage collection | |
US9653176B2 (en) | Read disturb reclaim policy | |
CN107957959B (en) | Memory system with file level secure erase and method of operating the same | |
US10007451B2 (en) | Scalable SPOR algorithm for flash memories | |
KR102564774B1 (en) | Apparatus for diagnosing memory system or data processing system and operating method of memory system or data processing system based on diagnosis | |
CN110444242B (en) | Memory system with deep learning based disturbance correction capability and method of operation | |
US10802761B2 (en) | Workload prediction in memory system and method thereof | |
US10169289B2 (en) | Memory system and method for accelerating boot time | |
US10552048B2 (en) | Reduction of maximum latency using dynamic self-tuning for redundant array of independent disks | |
US10089255B2 (en) | High performance host queue monitor for PCIE SSD controller | |
US11036627B2 (en) | Self-management memory system and operating method thereof | |
CN109800178B (en) | Garbage collection method and memory system for hybrid address mapping | |
US9946644B2 (en) | Memory system and operating method thereof | |
CN110277124B (en) | Memory system with hybrid decoding scheme and method of operating the same | |
CN112416298B (en) | Original read-based physical unclonable function for flash memory | |
US10921988B2 (en) | System and method for discovering parallelism of memory devices | |
CN110989919B (en) | Log recording mechanism for memory systems | |
US20230038605A1 (en) | System and method for testing multicore ssd firmware based on preconditions generation | |
CN111128289B (en) | Scan chain technique and method for utilizing scan chain structure | |
US20210249080A1 (en) | Memory system with single decoder, multiple memory sets and method for decoding multiple codewords from memory sets using the single decoder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |