Targeted memory cleanup
Patent Information
- Application Number
- DE602018076258
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2017-01-12
- Filing Date
- 2018-01-10
- Publication Date
- 2024-11-06
- Estimated Expiration
- 2038-01-10
AI Technical Summary
Existing memory sanitization methods are either non-deterministic, failing to ensure complete erasure of targeted data, or overly aggressive, erasing both valid and invalid data, leading to security concerns and inefficiencies.
A deterministic garbage collection method is implemented, where a controller in a memory system performs a host-initiated sanitization operation, ensuring physical erasure of all invalid data without losing valid data by relocating valid data to free blocks and erasing the invalid blocks, ensuring secure and complete deletion of targeted data.
This approach guarantees secure erasure of data by physically removing all copies of targeted data while preserving valid data, providing a deterministic and efficient method for sanitization, enhancing data security and storage integrity.
Description
Technical Field
[0001] The present disclosure relates generally to semiconductor memory apparatuses and methods, and more particularly, to directed sanitization of memory.Background
[0002] Memory devices are typically provided as internal, semiconductor, integrated circuits and / or external removable devices in computers or other electronic devices. There are many different types of memory including volatile and non-volatile memory. Volatile memory can require power to maintain its data and can include random-access memory (RAM), dynamic random access memory (DRAM), and synchronous dynamic random access memory (SDRAM), among others. Non-volatile memory can retain stored data when not powered and can include NAND flash memory, NOR flash memory, phase change random access memory (PCRAM), resistive random access memory (RRAM), and magnetic random access memory (MRAM), among others.
[0003] Memory devices can be combined together to form a solid state drive (SSD). An SSD can include non-volatile memory (e.g., NAND flash memory and / or NOR flash memory), and / or can include volatile memory (e.g., DRAM and / or SRAM), among various other types of non-volatile and volatile memory. An SSD can be used to replace hard disk drives as the main storage volume for a computer, as the solid state drive can have advantages over hard drives in terms of performance, size, weight, ruggedness, operating temperature range, and power consumption. For example, SSDs can have superior performance when compared to magnetic disk drives due to their lack of moving parts, which may avoid seek time, latency, and other electro-mechanical delays associated with magnetic disk drives.
[0004] In various instances, it can be beneficial and / or desirable to erase data stored in memory (e.g., to delete files or portions thereof that may contain sensitive and / or private information). Some deletion mechanisms may not involve actual physical erasure of the data such that it is possible for the data to be recovered from the memory. For instance, a deletion mechanism might involve physical erasure of memory locations currently storing a particular file, but memory locations which may have previously stored the particular file, or portions thereof, may not be physically erased. Other deletion mechanisms might involve physical erasure of all data stored in memory, which ensures deletion of data targeted for deletion, but also erases data that may not be targeted for deletion.
[0005] US 2003 / 229753 A1 describes a file system for effectively using a flash memory including a meta block, a data block and an info block. US 2010 / 262766 A1 describes a method of formatting a data storage device and garbage collection for failure prediction and repartitioning. US 5 819 304 A describes a random access memory assembly which is a key component of an object space manager which in turn is a key circuit in a garbage-collecting control unit for a computer system. D5= US 2012 / 278579 A1 discloses a data sanitize command issued by a host to a data storage device along with the designation of a selected range of logical block addresses to be removed.Brief Summary
[0006] In a first aspect of the invention there is provided a method according to independent claim 1. In a second aspect of the invention there is provided an apparatus according to independent claim 7. Further optional features of the invention are defined in the dependent claims. Embodiments in the following description that do not fall in the scope of the independent claims are not according to the invention, but provide helpful context or highlight specific features of the invention.Brief Description of the Drawings
[0007] Figure 1 is a block diagram of an apparatus in the form of a computing system including a memory system comprising a controller configured to perform directed sanitization in accordance with a number of embodiments of the present disclosure. Figure 2 illustrates a diagram of a portion of a memory having a number of physical blocks in accordance with a number of embodiments of the present disclosure. Figure 3A illustrates a timing diagram associated with performing a garbage collection operation. Figure 3B illustrates a timing diagram associated with directed sanitization of memory in accordance with a number of embodiments of the present disclosure. Figure 4A illustrates block status of a memory prior to directed sanitization in accordance with a number of embodiments of the present disclosure. Figure 4B illustrates block status of the memory shown in Figure 4A subsequent to the directed sanitization in accordance with a number of embodiments of the present disclosure. Figure 5 illustrates a flow diagram associated with directed sanitization of memory in accordance with a number of embodiments of the present disclosure. Detailed Description
[0008] The present disclosure includes apparatuses and methods for directed sanitization associated with memory. One example method comprises, responsive to receiving a sanitization command, performing a deterministic garbage collection operation on a memory, wherein performing the deterministic garbage collection operation results in physical erasure of all invalid data stored on the memory without losing valid data stored on the memory.
[0009] Embodiments of the present disclosure can provide various benefits such as providing for secure erasure (e.g., of data targeted by the host for deletion) in a deterministic manner. For instance, a number of embodiments of the present disclosure provide a mechanism for host-initiated secure erasure of data corresponding to specific logical block addresses (LBAs) as well as previous copies of the data that might reside in memory. A number of embodiments can implement secure erasure using a deterministic garbage collection operation, as opposed to a typical garbage collection operation that might be associated with wear leveling operations performed in the background. Such background garbage collection is often non-deterministic in that it is often not initiated by a host and is not performed on demand but rather at some non-deterministic time in the future (e.g., as directed by a controller, such as an SSD controller, in association with wear leveling).
[0010] A number of embodiments provide directed sanitization that ensures that all copies (e.g., current and past) of data corresponding to a particular file, for example, are physically erased from memory, as opposed to being only logically erased (e.g., marked as invalid while still being physically stored in memory). The directed sanitization (e.g., secure erasure) can be performed using a deterministic garbage collection operation, which can provide a guaranty that no valid data (e.g., "live" data being tracked by a host) is erased.
[0011] In the following detailed description of the present disclosure, reference is made to the accompanying drawings that form a part hereof, and in which is shown by way of illustration how one or more embodiments of the disclosure may be practiced. These embodiments are described in sufficient detail to enable those of ordinary skill in the art to practice the embodiments of this disclosure, and it is to be understood that other embodiments may be utilized and that process, electrical, and / or structural changes may be made without departing from the scope of the present disclosure. As used herein, the designators "N," "B," "R," and "S", particularly with respect to reference numerals in the drawings, indicate that a number of the particular feature so designated can be included. As used herein, "a number of" a particular thing can refer to one or more of such things (e.g., a number of blocks can refer to one or more blocks).
[0012] The figures herein follow a numbering convention in which the first digit or digits correspond to the drawing figure number and the remaining digits identify an element or component in the drawing. Similar elements or components between different figures may be identified by the use of similar digits. For example, 110 may reference element "10" in Figure 1, and a similar element may be referenced as 210 in Figure 2. As will be appreciated, elements shown in the various embodiments herein can be added, exchanged, and / or eliminated so as to provide a number of additional embodiments of the present disclosure. In addition, as will be appreciated, the proportion and the relative scale of the elements provided in the figures are intended to illustrate certain embodiments of the present invention, and should not be taken in a limiting sense.
[0013] Figure 1 is a block diagram of an apparatus in the form of a computing system 100 including a memory system 104 comprising a controller 108 configured to perform directed sanitization in accordance with a number of embodiments of the present disclosure. As used herein, a memory system 104, a controller 108, or a memory 110 might also be separately considered an "apparatus." The memory system 104 is a solid state drive (SSD), and does include a host interface 106, a controller 108 (e.g., a sequencer and / or other control circuitry), and a memory 110. Although not shown in Figure 1, the memory 110 comprises a number of solid state memory devices, such as NAND flash devices, which provide a storage volume for the memory system 104.
[0014] The controller 108 can be coupled to the host interface 106 and to the memory 110 via a plurality of channels and is used to transfer data between the memory 110 and a host 102. The interface 106 can be in the form of a standardized interface. For example, when the memory system 104 is used for data storage in a computing system 100, the interface 106 is a serial advanced technology attachment (SATA), peripheral component interconnect express (PCIe), or a universal serial bus (USB), among other connectors and interfaces. In general, however, interface 106 can provide an interface for passing control, address, data, and other signals between the memory system 104 and a host 102 having compatible receptors for the interface 106.
[0015] A host 102 can be a host system such as a personal laptop computer, a desktop computer, a digital camera, a mobile telephone, or a memory card reader, among various other types of hosts. The host 102 can include a system motherboard and / or backplane and can include a number of memory access devices (e.g., a number of processors). The host 102 can also be a controller, such as where the memory system 104 is a memory device having an on-die controller. The host 102 can be configured to provide various commands to the memory system 104 (e.g., to the controller 108) to direct the memory system 104 to perform various operations in accordance with the received command. For example, the host 102 can be configured to provide a sanitization command to the controller 108 such that the controller 108 initiates a deterministic garbage collection operation responsive to receiving the sanitization command, as further described herein, In a number of embodiments, the sanitization command can be sent as an interrupt signal such that, for instance, the controller 108 performs the deterministic garbage collection operation "on demand" upon receiving the command. For example, upon receiving the sanitization command, the controller 108 can suspend its current activities, save its state, and perform the deterministic garbage collection operation.
[0016] The host 102 can include a trimming queue 103 (TRIM QUEUE), which can be used in association with an operating system (OS) trimming feature. The trimming queue 103 can be configured to store logical block addresses (LBAs) corresponding to data no longer in use and / or being tracked by host 102, for example, such that the data may be marked as invalid and erased from memory 110. The LBAs in the trimming queue 103 can be sent to the controller 108 in association with a trimming command. As used herein, a trimming command can be a TRIM command, UNMAP command, or DEALLOCATE command, among other commands, which can depend on a particular interface type and / or protocol (e.g., ATA, SCSI, etc.). As described further herein, in a number of embodiments, the host 1 02 can initiate a forced flush of the trimming queue in association with providing a host-initiated sanitization command to the controller 108, which can initiate a deterministic garbage collection operation that results in secure erasure of at least the data corresponding to the LBA list provided from the trimming queue 103.
[0017] The controller 108 can control performance of various operations (read, write, erase, etc.) on the memory 110, which can comprise a number of memory dies (e.g., NAND dies), for example. The controller 108 can be on a same die or a different die than memory 110. Although not specifically illustrated, the controller 108 can include a discrete memory channel controller for each channel coupling the controller 108 to the memory 110. The controller 108 can include, for example, a number of components in the form of hardware and / or firmware (e.g., one or more integrated circuits) and / or software for controlling access to the memory 110 and / or for facilitating data transfer between the host 102 and memory 110.
[0018] As illustrated in Figure 1, the controller 108 can include a wear-leveling component 112, a garbage collection component 114, and a mapping component 115. The wear-leveling component 112 can include, for example, circuitry configured to reduce the number of process cycles (e.g., program and / or erase cycles) performed on a particular group of cells (e.g., block) by spreading the cycles more evenly over an entire array and / or device. The wear leveling component 112 can be configured to perform dynamic wear leveling, which can include garbage collection performed via garbage collection component 114. Garbage collection can include reclaiming (e.g., erasing and making available for programming) blocks that have the most invalid pages (e.g., according to a "greedy algorithm"). Alternatively, garbage collection can include reclaiming blocks with more than a threshold amount (e.g., quantity) of invalid pages. If sufficient free blocks exist for a programming operation, then a garbage collection operation may not occur. An invalid page, for example, can refer to a page whose corresponding logical to physical address mapping has been updated (e.g., such that the data corresponding to the previous mapping is stale). Component 112 can also perform static wear leveling, which can include writing static data to blocks that have high program / erase counts to prolong the life of the block.
[0019] In a number of unclaimed embodiments, in the absence of a sanitization command from host 102, the garbage collection component 114 can be configured to perform garbage collection on memory 110 as a background operation. For example, performing garbage collection during idle time (e.g., when controller 108 is not executing host commands), can prevent such operations from negatively effecting latency. As described further herein, in a number of embodiments, the component 114 is configured to, responsive to a sanitization command, perform a deterministic garbage collection operation. For instance, responsive to controller 108 receiving the sanitization command, the component 114 can identify those blocks containing invalid data (e.g., invalid pages), relocate valid data (e.g., valid pages) contained in those blocks to different blocks, and physically erase the identified blocks to result in physical erasure of invalid data without losing the valid data stored on the memory 110. In a number of embodiments, performing a deterministic garbage collection operation includes performing a complete garbage collection operation, which can refer to a garbage collection operation that is executed until no blocks of the memory (e.g., 110) contain both valid pages and invalid pages (e.g., all the physical blocks have either been physically erased or contain only valid data).
[0020] The mapping component 115 does include a logical to physical address map (e.g., table) as well as indicators regarding page status (e.g., valid, invalid, erased, etc.). The address map and / or page status can be updated in various manners. For example, the mapping can be updated by controller 108 as valid data is relocated as part of garbage collection and / or wear leveling. Additionally, the address mapping and / or page status can be updated based on trimming commands from host 102 (e.g., responsive to a flushing of trimming queue 103).
[0021] The components 112, 114, 115 can be discrete components such as an application specific integrated circuit (ASIC), or the components may reflect functionally provided by circuitry within the controller 108 that does not necessarily have a discrete physical form separate from other portions of the controller 108. Although illustrated as components within the controller 108 in Figure 1, the components 112, 114, and 115 can be external to the controller 108 or can have a number of components located within the controller 108 and a number of components located external to the controller 108. Additionally, components 112, 114, and 115 are not limited to circuitry (e.g., hardware) implementations (e.g., the can be implemented in hardware, firmware, and / or software).
[0022] In operation, data can be written to and / or read from memory 110 as a page of data, for example. As such, a page of data can be referred to as a data transfer size of the memory system. Data can be sent to / from a host (e.g., host 102) in data segments referred to as sectors (e.g., host sectors). As such, a sector of data can be referred to as a data transfer size of the host.
[0023] Figure 2 illustrates a diagram of a portion of a memory 210 having a number of physical blocks 216-0 (BLOCK 0), 216-1 (BLOCK 1), . . ., 216-B (BLOCK B) in accordance with a number of embodiments of the present disclosure. Memory 210 can be, for example, a NAND flash memory. However, embodiments of the present disclosure are not limited to a particular type of memory or memory. For example, memory 210 can be a DRAM array, an RRAM array, or a PCRAM array, among other types of memory. Further, although not shown in Figure 2, memory 210 can be located on a particular semiconductor die along with various peripheral circuitry associated with the operation thereof.
[0024] The blocks 216-0 (BLOCK 0), 216-1 (BLOCK 1), . . ., 216-B (BLOCK B) can be referred to collectively as blocks 216. The blocks 216 can comprise single level cells (SLCs) and / or multilevel cells (MLCs). As an example, the number of physical blocks 216 in memory 210 may be 128 blocks, 512 blocks, or 1,024 blocks, but embodiments are not limited to a particular number of physical blocks in memory 210.
[0025] Each block 216 can include memory cells that are erased together as a unit. As shown in Figure 2, each physical block 216 can comprise a number of physical rows 220-0, 220-1, . . ., 220-R of memory cells that can each be coupled to a respective access line (e.g., word line). The number of rows in each physical block can be 32, but embodiments are not limited to a particular number of rows 220 per physical block.
[0026] As one of ordinary skill in the art will appreciate, each row 220 can comprise a number of physical pages of cells. A physical page of cells can refer to a number of memory cells that are programmed and / or read together or as a functional group. In the embodiment shown in Figure 2, each row 220 can comprise one physical page of cells. However, embodiments of the present disclosure are not so limited. For instance, each row 220 can comprise multiple physical pages of cells (e.g., an even page associated with cells coupled to even-numbered bit lines, and an odd page associated with cells coupled to odd numbered bit lines). Additionally, for embodiments including multilevel cells, a physical page can store multiple logical pages of data with each cell in a physical page contributing a bit toward a logical lower page, a bit toward a logical upper page, and one or more bits toward a respective number of logical intermediate pages.
[0027] In the example shown in Figure 2, a physical page corresponding to a row 220 can store a number of sectors 222-1, 222-2, . . ., 222-S of data (e.g., an amount of data corresponding to a host sector, such as 512 bytes). The sectors 222 may comprise user data as well as overhead data, such as error correction code (ECC) data and LBA data. It is noted that other configurations for the physical blocks 216, rows 220, and sectors 222 are possible. For example, rows 220 can each store data corresponding to a single sector which can include, for example, more or less than 512 bytes of data.
[0028] Figure 3A illustrates a timing diagram associated with performing a garbage collection operation. The garbage collection operation described in Figure 3A can be a non-deterministic garbage collection operation that can be performed (e.g., as a background operation) by a controller 308, which can be a controller such as controller 108 described in Figure 1. In this example, at a time t 1 , a host 302 provides a number of logical addresses corresponding to invalid data to controller 308. As an example, arrow 380-1 can represent a trimming command. .
[0029] At time t 2 , the controller 308 can update its page mapping responsive to the logical addresses received from the host 302 to reflect those logical pages no longer corresponding to valid data (e.g., those logical pages to be marked as invalid) and mark those pages as such (e.g., as indicated by arrow 380-2). Accordingly, the updated mappings and page status can be accounted for (e.g., by controller 308) when garbage collection occurs. However, since the garbage collection is performed as a background operation, it is performed at some non-deterministic time t N in the future (e.g., as indicated by arrow 380-N). As such, the data corresponding to the logical addresses received from host 102, which may be sensitive data targeted for erasure, is not be physically removed from memory 310 until some later time when the block(s) in which the invalid data resides is erased. Additionally, due to the nature of logical block addressing, other copies of data targeted for deletion (e.g., previous copies) may exist on memory 310 even after the data corresponding to the current mapping is physically erased.
[0030] Figure 3B illustrates a timing diagram associated with directed sanitization of a memory 310 in accordance with a number of embodiments of the present disclosure. In this example, at a time t 1 , a host 302 provides a number of logical addresses (e.g., LBAs) corresponding to invalid data to controller 308. As an example, arrow 380-1 can represent a trimming command sent in association with a forced flush of a trimming queue initiated by the host 302. At time t 2 , a host-initiated sanitization command 380-2 is sent to controller 308. Although shown as occurring at separate times in Figure 3B, the forced flush of the trimming queue may be provided in parallel with the sanitization command in association with a directed sanitization operation.
[0031] Responsive to the sanitization command 380-2, the controller 308 can initiate a deterministic garbage collection operation. The deterministic garbage collection operation can be a complete garbage collection operation as opposed to a partial garbage collection operation. A partial garbage collection operation can refer to a garbage collection operation in which some blocks containing invalid pages are erased (e.g., subsequent to relocating any valid pages in the blocks). A complete garbage collection operation can refer to a garbage collection operation that results in no physical block containing invalid pages (e.g., all physical blocks previously containing invalid data have been physically erased and any valid pages previously stored in blocks containing both valid pages and invalid pages have been relocated to different physical blocks), such that all blocks of the memory 310 either contain only valid pages or a combination of valid pages and physically erased cells.
[0032] In the example shown in Figure 3B, arrow 380-3 represents relocation of all valid pages contained in a block storing both valid and invalid pages to a different (e.g., free) block, and arrow 380-4 represents physical erasure of all blocks containing invalid pages. The garbage collection performed in response to the sanitization command 380-2 is deterministic in that it is performed on demand (e.g., by host 302) and can guarantee that all data corresponding to the invalidated LBAs from host 302 is physically erased from memory 310 between time t 3 and t 4 , without losing valid data stored in memory 310. Also, unlike the garbage collection operation described in Figure 3A, which is performed in the background in a non-deterministic manner by controller 308, execution of the deterministic garbage collection operation shown in Figure 3B occurs responsive to the sanitization command 380-2..
[0033] Additionally, although not shown in Figure 3B, the controller 308 can be configured to report a completion status of the deterministic garbage collection operation to host 302. As an example, the completion status may simply indicate a pass / fail of the garbage collection operation. However, the completion status may also, or instead, indicate a completion amount (e.g., percentage) associated with the deterministic garbage collection operation. The host 302 may poll the memory system (e.g., via controller 308) for the completion status, and / or the controller 308 may send the completion status unsolicited.
[0034] Figure 4A illustrates block status of a memory 410 prior to directed sanitization, and Figure 4B illustrates block status of the memory 410 shown in Figure 4A subsequent to directed sanitization in accordance with a number of embodiments of the present disclosure. In Figures 4A and 4B, the memory 410 is shown as including two physical blocks 430 and 432 for purposes of illustrating the example; however, embodiments are not limited to a particular number of blocks. Although embodiments described in Figure 4 involve deterministic executions of garbage collection operations on blocks of NAND memory cells, embodiments are not so limited.
[0035] In Figures 4A and 4B, the designator "V" (e.g., Vi to V 5 ) represents valid data (e.g., a valid page), and the designator "I" (e.g., I 1 to I 4 ) represents invalid data (e.g., an invalid page) stored in a corresponding block. The designator "FREE" shown in Figures 4A and 4B represents a physically erased page.
[0036] In this example, each block 430 and 432 of memory 410 comprises nine pages; however, one of ordinary skill in the art will appreciate that a block can comprise more or fewer than nine pages. As shown in Figure 4A, prior to execution of a deterministic garbage collection, block 430 contains both valid and invalid data. For instance, pages 431-1 (I 1 ), 431-2 (I 2 ), 431-3 (I 3 ), and 431-4 (I 4 ) are invalid pages, and pages 431-5 (V 1 ), 431-6 (V 2 ), 431-7 (V 3 ), 431-8 (V 4 ), and 431-9 (V 5 ) are valid pages of the block 430. In Figure 4A, block 432 represents a physically erased block (e.g., a block containing only unprogrammed free pages). Accordingly, all pages 433-1 to 433-9 of block 432 are designated "FREE" as shown in Figure 4A.
[0037] As shown in Figure 4B, upon a successful completion of the deterministic garbage collection operation, none of the blocks 430 and 432 of memory 410 contain both valid and invalid pages. The garbage collection operation involves physically erasing all blocks containing invalid pages, and for those blocks containing both valid and invalid pages, relocating the valid pages to a different (e.g., free) physical block prior to erasing the block from which the valid pages were relocated. For instance, in this example, subsequent to the garbage collection operation, block 430 is in a physically erased state (e.g., all pages 431-1 to 431-9 have been physically erased such that their status is "FREE"). Also, the valid pages of block 430 (e.g., pages 431-5 to 431-9) have been relocated to physical pages (e.g., pages 433-1 to 433-5) of block 432, such that no valid pages were lost as a result of the deterministic garbage collection operation.
[0038] Figure 5 is a flow diagram illustrating a method 550 for directed sanitization of memory in accordance with a number of embodiments of the present disclosure. At step 552, the method 550 includes receiving a directed sanitization command from a host (e.g., host 102). At step 554, the method 550 includes obtaining, from the host, updates regarding addresses (e.g., LBAs) corresponding to invalid data, and updating a logical to physical address map responsive to the updates received from the host. The address updates can be provided as command parameters of the directed sanitization command, for example. At step 554, the method 550 can also include identifying, from the updating of the logical to physical address map, physical addresses (e.g., physical pages) corresponding to logical addresses received from the host. As an example, the invalid LBAs received from the host can correspond to a file targeted for deletion, which may comprise sensitive information.
[0039] At step 556, the method 550 includes determining whether blocks containing invalid pages targeted for erasure also contain valid data. If it is determined that any of the identified physical blocks contain valid data, the valid pages are relocated to different (e.g., free) physical blocks prior to physical erasure of the identified blocks, as shown at 558. If it is determined that the identified physical blocks do not contain valid data, the identified blocks are physically erased, as shown at 559.
[0040] At step 560, a determination is made regarding whether the garbage collection operation is completed (e.g., successful) or not (e.g., failed). At step 562, a completion status (e.g., PASS) is provided to the host responsive to successful completion of the deterministic garbage collection operation. At step 564, a completion status (e.g., FAIL) is provided to the host responsive to unsuccessful completion of the deterministic garbage collection operation.
[0041] Although specific embodiments have been illustrated and described herein, those of ordinary skill in the art will appreciate that an arrangement calculated to achieve the same results can be substituted for the specific embodiments shown. It is to be understood that the above description has been made in an illustrative fashion, and not a restrictive one. The invention is defined by the appended independent claims, advantageous embodiments being covered by the dependent claims.
Claims
1. A method for directed sanitization of memory, comprising: receiving, from a host (102, 302) external to a memory (110, 210, 310, 410) that is a solid state drive, SSD: logical block addresses, LBAs, associated with a file targeted for deletion; and a sanitization command (380-2); and responsive to receiving the sanitization command (380-2), initiating performing a deterministic garbage collection operation on the memory (110, 210, 310, 410); wherein performing the deterministic garbage collection operation results in physical erasure of all invalid data stored on the memory (110, 210, 310, 410) corresponding to the LBAs received from the host (102, 302) without losing valid data stored on the memory (110, 210, 310, 410); wherein the memory (110, 210, 310, 410) is coupled to a controller (108, 308) of the solid state drive, and wherein receiving the sanitization command (380-2) further comprises receiving a host-initiated sanitization command (380-2) at the controller (108, 308) from the host (102, 302); and wherein the method includes, prior to initiating performing the deterministic garbage collection operation, obtaining, from the host (102, 302), updates regarding addresses corresponding to invalid data.
2. The method of claim 1, wherein the method includes updating a logical to physical address map responsive to the updates received from the host (102, 302).
3. The method of claim 2, wherein initiating performing the deterministic garbage collection operation includes performing the deterministic garbage collection operation by: identifying, from the updating of the logical to physical address map, a physical address corresponding to a logical address update received from the host (102, 302), wherein the physical address corresponds to a physical block (216, 430, 432) of the memory (110, 210, 310, 410); responsive to the physical block (216, 430, 432) containing both valid data and invalid data, relocating the valid data to a different physical block (216, 430, 432) of the memory (110, 210, 310, 410); and responsive to the physical block (216, 430, 432) containing invalid data but not valid data, physically erasing the physical block (216, 430, 432).
4. The method claim 1, wherein in the absence of the sanitization command (380-2), the method includes initiating performing garbage collection on the memory (110, 210, 310, 410) as a background operation in a non-deterministic manner.
5. The method of claim 1, wherein the method includes providing, to the host (102, 302), a completion status responsive to receiving a status request command from the host (102, 302), wherein the completion status indicates whether the deterministic garbage collection operation completed with success or failed to complete.
6. The method of claim 1, wherein the method includes polling, by the host (102, 302), a completion status of the deterministic garbage collection operation performed on the memory (110, 210, 310, 410) and indicating at least one of: whether the deterministic garbage collection operation completed with success or failed to complete; and a degree of a completion of the sanitization command (380-2).
7. An apparatus for directed sanitization of memory, comprising: a memory (110, 210, 310, 410) comprising a plurality of blocks (216, 430, 432); and a controller (108, 308) coupled to the memory (110, 210, 310, 410) and configured to: receive, from a host (102, 302) via a host interface (106) comprising at least one of a serial advanced technology attachment, SATA, peripheral component interconnect express, PCIe, or a universal serial bus, USB, or combinations thereof: logical block addresses, LBAs, associated with a file targeted for deletion; and a sanitization command; initiate performing a deterministic garbage collection operation on the memory (110, 210, 310, 410) responsive to receiving the sanitization command (380-2), wherein the deterministic garbage collection operation results in physical erasure of all invalid data stored on the memory (110, 210, 310, 410); and prior to initiating performing the deterministic garbage collection operation, update a logical to physical address mapping based on the LBAs associated with the file targeted for deletion such that data corresponding to the LBAs associated with the file targeted for deletion is included in the physical erasure of all invalid data stored on the memory (110, 210, 310, 410).
8. The apparatus of claim 7, wherein the LBAs associated with the file targeted for deletion reside in a trimming queue (103) of the host (102, 302), and wherein the host (102, 302) is configured to provide the LBAs associated with the file targeted for deletion to the controller (108, 308) in association with a forced flush of the trimming queue (103).
9. The apparatus of claim 7, wherein the memory (110, 210, 310, 410) comprises a number of NAND Flash memory devices in which a physical block (216, 430, 432) is a unit of erasure and is configured to store a plurality of pages of data.
10. The apparatus of claim 7, wherein a forced flush of a trimming queue (103) of the host (102, 302) including the LBAs associated with the file targeted for deletion is initiated in association with the sanitization command (380-2) such that a LBA to physical block address table used by the controller (108, 308) is updated prior to initiation of the deterministic garbage collection operation.
11. The apparatus of claim 7, wherein the controller (108, 308) is configured to provide, subsequent to initiating performing the deterministic garbage collection operation, a completion status of the sanitization command (380-2) to the host (102, 302).
12. The apparatus of claim 11, wherein the host (102, 302) is configured to poll the controller (108, 308) to obtain the completion status.
