Spaceborne solid state disk garbage collection method, device, storage medium and equipment

By monitoring and controlling the capacity and progress of solid-state drives in real time, the performance problems caused by the uncertainty of garbage collection in spaceborne scenarios were solved, achieving high-performance and efficient garbage collection and ensuring the successful completion of remote sensing missions.

CN121455839BActive Publication Date: 2026-04-07BANKER FUTURE TECH (BEIJING) CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-22
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing garbage collection methods cannot meet the high performance, high reliability, and high efficiency requirements of solid-state drives in spaceborne scenarios, especially in remote sensing satellites where there is insufficient idle time for background autonomous garbage collection during high-load read and write periods.

Method used

By obtaining the directly writable capacity and the capacity to be reclaimed of the solid-state drive, it is determined whether the capacity requirement is met, and historical data is deleted when necessary. The garbage collection operation is controlled, the progress is monitored in real time, and telemetry information is sent when the timeout occurs to ensure that the recycling is completed before the next task.

Benefits of technology

It achieves high performance, high reliability, and high efficiency of solid-state drives in space-based scenarios, avoiding mission failures due to performance degradation and ensuring that the payload completes the mission in the shortest possible time and in the best condition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121455839B_ABST
    Figure CN121455839B_ABST
Patent Text Reader

Abstract

The application discloses a garbage collection method and device of a satellite-borne solid state disk, a storage medium and equipment, and relates to the technical field of satellite remote sensing. The method comprises the following steps: acquiring the directly writable capacity, the to-be-recovered capacity and the capacity management threshold of the solid state disk of the satellite payload after the execution of the current task, and determining whether the solid state disk meets the capacity requirement; if the capacity requirement is not met, data is deleted, and the to-be-recovered capacity is re-acquired; according to the re-acquired to-be-recovered capacity, the garbage collection operation of the solid state disk is controlled to be executed by the satellite payload, and it is determined whether the garbage collection operation of the solid state disk is overdue; if the garbage collection operation is overdue, first telemetry information is sent to a ground terminal, wherein the ground terminal is used to determine whether the garbage collection operation is overdue and affects the execution of the next task according to the first telemetry information; if the garbage collection operation is overdue and affects the execution of the next task, it is determined that the garbage collection operation of the solid state disk is executed before the execution of the next task. The application controls the satellite-borne solid state disk to execute the garbage collection deterministically.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of satellite remote sensing technology, and in particular to a method, apparatus, storage medium and device for garbage collection of a spaceborne solid-state drive. Background Technology

[0002] Solid-state drives (SSDs) are gradually becoming the mainstream configuration for most low-Earth orbit commercial satellites, especially remote sensing satellites, due to their high performance, large capacity, and small size. Because of the physical characteristics of NAND flash memory in SSDs, data cannot be directly overwritten and written; it must be erased first and then written. When erasing and writing occur simultaneously, it can lead to decreased write performance and increased latency. The garbage collection mechanism of SSDs is a key means to optimize and mitigate this performance degradation.

[0003] In typical scenarios, application writes to SSDs are often random and intermittent. Existing garbage collection methods reduce the perceptible performance loss by optimizing background garbage collection timing and efficiency, which can meet most needs. However, users and the operating system cannot directly intervene in garbage collection. In spaceborne scenarios, especially remote sensing, the high-load read / write periods of SSDs are fixed, and sufficient idle time onboard cannot be guaranteed for autonomous background garbage collection. Therefore, the current unpredictable garbage collection methods are insufficient to meet the high performance, high reliability, and high efficiency requirements of SSDs in spaceborne environments. Summary of the Invention

[0004] In view of this, this application provides a garbage collection method, apparatus, storage medium and device for a spaceborne solid-state drive, the main purpose of which is to control the spaceborne solid-state drive to perform garbage collection deterministically, thereby meeting the high performance, high reliability and high efficiency requirements of solid-state drives in spaceborne scenarios.

[0005] According to a first aspect of this application, a garbage collection method for a spaceborne solid-state drive is provided, applied to a satellite platform, the method comprising:

[0006] After the mission is completed, obtain the directly writable capacity and the capacity to be reclaimed of the solid-state drive of the satellite payload, and determine the capacity management threshold of the solid-state drive;

[0007] Based on the directly writable capacity, the capacity to be recycled, and the capacity management threshold, determine whether the solid-state drive meets the capacity requirements;

[0008] If the solid-state drive does not meet the capacity requirements, then based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold, the first target historical data is selected for deletion, and the capacity to be reclaimed is reacquired.

[0009] Based on the reacquired capacity to be recycled, the satellite payload is controlled to perform garbage collection operations on the solid-state drive, and the garbage collection progress is obtained;

[0010] Based on the garbage collection progress, determine whether the garbage collection operation of the solid-state drive has timed out;

[0011] If the garbage collection operation of the solid-state drive times out, the first telemetry information is sent to the ground terminal. The ground terminal is used to determine, based on the first telemetry information, whether the garbage collection operation timeout will affect the execution of the next task. If it will affect the execution of the next task, the garbage collection operation of the solid-state drive will be performed before the execution of the next task.

[0012] According to a second aspect of this application, another method for real-time satellite intelligence monitoring is provided, applied to a ground terminal, the method comprising:

[0013] The system receives first telemetry information from a satellite platform. The satellite platform determines whether the solid-state drive (SSD) meets capacity requirements based on its directly writable capacity, unclaimed capacity, and capacity management threshold after the mission. If the SSD does not meet capacity requirements, it selects and deletes first target historical data based on the directly writable capacity, unclaimed capacity, and capacity management threshold, and reacquires the unclaimed capacity. Based on the reacquired unclaimed capacity, it controls the satellite payload to perform garbage collection on the SSD and acquires the garbage collection progress. Based on the garbage collection progress, it determines whether the garbage collection operation has timed out. If the garbage collection operation times out, it sends first telemetry information to the ground terminal.

[0014] Based on the first telemetry information, determine whether the timeout of the garbage collection operation will affect the execution of the next task;

[0015] If it affects the execution of the next task, then the garbage collection operation of the solid-state drive is determined to be performed before the execution of the next task.

[0016] According to a third aspect of this application, a garbage collection device for a spaceborne solid-state drive is provided, applied to a satellite platform, the device comprising:

[0017] The acquisition unit is used to acquire the directly writable capacity and the capacity to be reclaimed of the solid-state drive of the satellite payload after the execution of this mission, and to determine the capacity management threshold of the solid-state drive.

[0018] The determination unit is used to determine whether the solid-state drive meets the capacity requirements based on the directly writable capacity, the capacity to be recycled, and the capacity management threshold.

[0019] The deletion unit is used to select a first target historical data for deletion based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold if the solid-state drive does not meet the capacity requirements, and then reacquire the capacity to be reclaimed.

[0020] The control unit is used to control the satellite payload to perform garbage collection operations on the solid-state drive based on the reacquired capacity to be recycled, and to obtain the garbage collection progress.

[0021] The determination unit is also used to determine whether the garbage collection operation of the solid-state drive has timed out based on the garbage collection progress;

[0022] The sending unit is configured to send first telemetry information to the ground terminal if the garbage collection operation of the solid-state drive times out, wherein the ground terminal is configured to determine, based on the first telemetry information, whether the garbage collection operation timeout affects the execution of the next task; if it affects the execution of the next task, it determines to perform the garbage collection operation of the solid-state drive before the execution of the next task.

[0023] According to a fourth aspect of this application, another waste disposal device for a spaceborne solid-state drive is provided for use in a ground terminal, the device comprising:

[0024] The receiving unit is used to receive first telemetry information fed back by the satellite platform. The satellite platform is used to determine whether the solid-state drive (SSD) meets the capacity requirements based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold after the current mission. If the SSD does not meet the capacity requirements, it selects first target historical data for deletion based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold, and reacquires the capacity to be reclaimed. Based on the reacquired capacity to be reclaimed, it controls the satellite payload to perform garbage collection operations on the SSD and acquires the garbage collection progress. Based on the garbage collection progress, it determines whether the garbage collection operation on the SSD has timed out. If the garbage collection operation on the SSD has timed out, it sends the first telemetry information to the ground terminal.

[0025] The determination unit is used to determine, based on the first telemetry information, whether the timeout of the garbage collection operation will affect the execution of the next task;

[0026] A determining unit is configured to determine, if it affects the execution of the next task, to perform a garbage collection operation on the solid-state drive before the execution of the next task.

[0027] According to a fifth aspect of this application, a storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described garbage collection method for a satellite-borne solid-state drive applied to a satellite platform.

[0028] According to a sixth aspect of this application, another storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the above-described garbage collection method for a spaceborne solid-state drive applied to a ground terminal.

[0029] According to a seventh aspect of this application, an electronic device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the program to implement the above-described garbage collection method for a satellite-borne solid-state drive applied to a satellite platform.

[0030] According to the eighth aspect of this application, an electronic device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the program to implement the above-described garbage collection method for a spaceborne solid-state drive applied to a ground terminal.

[0031] By employing the above technical solutions, this application provides a method, apparatus, storage medium, and device for garbage collection of a spaceborne solid-state drive (SSD). Compared with existing technologies, this application grants the satellite platform and ground terminal the right to directly control the SSD's main program to perform garbage collection in real time, as well as the right to obtain information such as the SSD's directly writable capacity, the capacity to be collected, and the garbage collection progress. Furthermore, in spaceborne scenarios, before and after continuous high-load missions, it controls the SSD to deterministically perform garbage collection, thus meeting the high-performance, high-reliability, and high-efficiency requirements of SSDs in spaceborne environments. This deterministic garbage collection mechanism ensures high performance of the payload during mission completion, avoids mission failure due to SSD performance degradation, and enables the payload to complete the mission in the shortest time and in the best condition, reducing the overall satellite load.

[0032] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0033] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0034] Figure 1 A schematic flowchart of a garbage collection method for a spaceborne solid-state drive provided in an embodiment of this application is shown.

[0035] Figure 2A schematic flowchart of another garbage collection method for a spaceborne solid-state drive provided in an embodiment of this application is shown;

[0036] Figure 3 This illustration shows a structural schematic diagram of a waste collection device for a spaceborne solid-state drive provided in an embodiment of this application;

[0037] Figure 4 A schematic diagram of the structure of another spaceborne solid-state drive garbage collection device provided in an embodiment of this application is shown. Detailed Implementation

[0038] The present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the embodiments of the present application can be combined with each other.

[0039] The current unpredictable waste recycling method makes it difficult to meet the high performance, high reliability and high efficiency requirements of solid-state drives in space-based scenarios.

[0040] To address the aforementioned problems, this invention provides a garbage collection method for a spaceborne solid-state drive, applicable to a satellite platform, such as... Figure 1 As shown, the method includes:

[0041] Step 101: Obtain the directly writable capacity and the capacity to be reclaimed of the solid-state drive of the satellite payload after the execution of this mission, and determine the capacity management threshold of the solid-state drive.

[0042] The capacity management threshold can be determined based on the total capacity of the solid-state drives, the maximum capacity required for a single mission, and the planned capacity for temporarily storing historical data. Satellite payloads include optical cameras, radar, infrared detectors, multispectral imagers, hyperspectral imagers, and microwave radiometers. Missions primarily refer to satellite remote sensing tasks, such as InSAR image acquisition.

[0043] This invention provides two deterministic solid-state drive garbage collection methods: one method performs garbage collection before the task is executed, and the other method performs garbage collection after the task is executed. This embodiment, namely... Figure 1 The corresponding garbage collection method is performed after the mission is completed. Specifically, the satellite platform will periodically send telemetry request commands to the satellite payload. After receiving the telemetry request command, the satellite payload will feed back to the satellite platform in the form of telemetry returns, such as the unwritable capacity, directly writable capacity, garbage collection status and progress of the solid-state drive. In this way, the satellite platform can obtain information such as the directly writable capacity and unwritable capacity of the onboard solid-state drive.

[0044] Step 102: Based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold, determine whether the solid-state drive meets the capacity requirements.

[0045] In this embodiment of the invention, the directly writable capacity S_available and the capacity to be reclaimed S_recycle0 are summed to obtain the total capacity. Then, it is determined whether this total capacity is greater than the capacity management threshold S_threshold. If the total capacity is greater than the capacity management threshold S_threshold (i.e., S_available + S_recycle0 > S_threshold), the solid-state drive (SSD) is determined to meet the capacity requirements, and the satellite payload is directly controlled to perform garbage collection on the SSD. If the total capacity is less than or equal to the capacity management threshold S_threshold (i.e., S_available + S_recycle0), the total capacity is determined to meet the capacity requirements. If S_threshold is set, then the solid-state drive does not meet the capacity requirement.

[0046] Step 103: If the solid-state drive does not meet the capacity requirements, then based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold, select the first target historical data for deletion, and reacquire the capacity to be reclaimed.

[0047] The historical data of the first target has been recorded to the ground terminal.

[0048] In this embodiment of the invention, when the solid-state drive (SSD) does not meet the capacity requirements, historical data needs to be deleted to ensure that the SSD has sufficient space. Specifically, step 103 includes: determining the amount of data to be deleted based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold; selecting the first target historical data for deletion based on the amount of data to be deleted and the generation time of the historical data; controlling the satellite payload to perform a garbage block notification operation on the SSD, and re-acquiring the capacity to be reclaimed after a first preset time interval.

[0049] The first preset duration can be set according to the actual garbage block synchronization efficiency, and the embodiments of the present invention do not impose specific limitations on it.

[0050] Specifically, in S_available+S_recycle0 In the case of S_threshold, based on the generation time of the historical data, the first target historical data S_remove1 is selected for deletion, resulting in S_available + S_recycle0 + S_remove1. S_threshold. Then, the satellite payload is controlled to perform a TRIM operation on the solid-state drive, and after waiting for the first preset time, the capacity to be recycled, S_recycle1, is retrieved again.

[0051] Step 104: Based on the reacquired capacity to be recycled, control the satellite payload to perform garbage collection operation on the solid-state drive and obtain the garbage collection progress.

[0052] In this embodiment of the invention, after reacquiring the capacity to be recycled, S_recycle1, the satellite payload is controlled to perform solid-state drive (SSD) garbage collection based on the capacity S_recycle1. During the garbage collection operation, the garbage collection progress is monitored periodically, and the satellite platform can obtain the garbage collection progress of the onboard SSD through telemetry information. Based on this, the method includes: receiving second telemetry information fed back by the satellite payload; and determining the garbage collection progress based on the second telemetry information. This embodiment of the invention adds relevant parameters of the onboard SSD to the payload's telemetry information.

[0053] Step 105: Based on the garbage collection progress, determine whether the garbage collection operation of the solid-state drive has timed out.

[0054] In this embodiment of the invention, after the satellite platform obtains the garbage collection progress of the onboard solid-state drive, it determines whether the solid-state drive has completed the garbage collection operation based on the garbage collection progress. If the solid-state drive has completed the garbage collection operation, it sends a power-down command to the satellite payload; if the solid-state drive has not completed the garbage collection operation, it determines whether the garbage collection operation of the solid-state drive has timed out.

[0055] Specifically, if the satellite platform determines that the onboard solid-state drive has completed garbage collection based on the feedback garbage collection progress, it will directly send a power-off command to the satellite payload; if the satellite platform determines that the onboard solid-state drive has not completed garbage collection based on the feedback garbage collection progress, it will further determine whether the garbage collection progress of the onboard solid-state drive has timed out. If the garbage collection progress has not timed out, it will continue to monitor the garbage collection progress of the onboard solid-state drive.

[0056] Step 106: If the garbage collection operation of the solid-state drive times out, send the first telemetry information to the ground terminal.

[0057] The ground terminal is used to determine, based on the first telemetry information, whether a timeout in the garbage collection operation will affect the execution of the next task; if it does affect the execution of the next task, it determines to perform the garbage collection operation on the solid-state drive before the next task is executed. The first telemetry information includes the direct write capacity of the solid-state drive, the garbage collection progress, etc.

[0058] In this embodiment of the invention, if the garbage collection operation of the solid-state drive times out, the satellite platform will send information such as the current directly writable capacity and garbage collection progress of the onboard solid-state drive to the ground terminal through the first telemetry information, so that the ground terminal can formulate a garbage collection strategy before the next mission execution based on the first telemetry information.

[0059] For scenarios involving garbage collection after remote sensing mission execution, the following specific embodiment illustrates the instruction sequence required by the satellite platform and its corresponding execution time. Assuming the satellite payload needs to execute its mission at time T0, and the power-on time for the satellite payload is Ts, the satellite platform will send a power-on command to the satellite payload between T0 and Ts. After the satellite payload is powered on, the satellite platform will send a command to the satellite payload to start executing the payload mission at time T0. Assuming the execution time of the payload mission is ΔT1, the satellite platform will send a command to the satellite payload to stop executing the payload mission at time T0 + ΔT1. After the satellite payload completes its mission, the satellite platform can, after a 10-second interval, send a command to the satellite payload at time T0 + ΔT1 + 10 to execute payload SSD space management, i.e., execute garbage collection. Assuming the garbage collection time is ΔTx, after the onboard SSD completes garbage collection, the satellite platform will send a power-off command to the satellite payload at time T0 + ΔT1 + 10 + ΔTx.

[0060] This invention provides a garbage collection method for a spaceborne solid-state drive (SSD). By granting the satellite platform and ground terminal the right to directly control the SSD's main program to perform garbage collection in real time, and the right to obtain information such as the SSD's directly writable capacity, the capacity to be collected, and the garbage collection progress, this method allows for deterministic garbage collection of the SSD in spaceborne scenarios before and after continuous high-load missions. This meets the high-performance, high-reliability, and high-efficiency requirements of SSDs in spaceborne environments. This deterministic garbage collection mechanism ensures high performance of the payload during mission completion, avoids mission failure due to SSD performance degradation, and enables the payload to complete the mission in the shortest time and in the best condition, reducing the overall pressure on the satellite.

[0061] Furthermore, this embodiment of the invention provides another method for garbage collection of spaceborne solid-state drives, applied to ground terminals, such as... Figure 2 As shown, the method includes:

[0062] Step 201: Receive the first telemetry information fed back by the satellite platform.

[0063] The satellite platform is configured to determine whether the solid-state drive (SSD) meets the capacity requirements based on its directly writable capacity, unclaimed capacity, and capacity management threshold after the mission. If the SSD does not meet the capacity requirements, it selects a first target historical data for deletion based on the directly writable capacity, unclaimed capacity, and capacity management threshold, and reacquires the unclaimed capacity. Based on the reacquired unclaimed capacity, it controls the satellite payload to perform garbage collection operations on the SSD and acquires the garbage collection progress. Based on the garbage collection progress, it determines whether the garbage collection operation on the SSD has timed out. If the garbage collection operation on the SSD has timed out, it sends first telemetry information to the ground terminal.

[0064] In an embodiment of the present invention, for a scenario where garbage collection is performed after the task is executed, if the satellite platform determines that the garbage collection operation of the solid-state drive has timed out, it sends back first telemetry information to the ground terminal. The first telemetry information includes the directly writable capacity of the solid-state drive, the garbage collection progress, etc.

[0065] In some embodiments, the first telemetry information includes, in addition to information such as the current directly writable capacity of the solid-state drive (SSD) and garbage collection progress, the number of P / E cycles, the rate of decrease in erase speed, the average number of erases per block over a period of time, the number of currently uncollected blocks, and the degree of fragmentation of each block. The ground terminal can use neural network algorithms based on the above information to analyze the reasons for garbage collection timeouts on the spaceborne SSD. Specific reasons for timeouts may include errors in SSD space management task distribution, interruption of execution, large collection capacity with low efficiency, insufficient performance of the main control chip, wear and tear of storage units, lack of TRIM instruction support, or TRIM instruction not being enabled.

[0066] When analyzing the causes of garbage collection timeouts in solid-state drives (SSDs), we can determine the ranges of information such as the number of P / E cycles, the rate of decrease in erase speed, the average number of erases per block, the number of currently uncollected blocks, and the fragmentation level of each block. This allows us to determine the corresponding encoding vector for each piece of information. For example, if the erase speed decrease rate is below 20%, the corresponding encoding vector is 100; if it's between 20% and 40%, the vector is 010; and if it's above 40%, the vector is 001. By determining the encoding vector for each piece of information, we can then concatenate all the encoding vectors horizontally to obtain the cause feature vector corresponding to the first telemetry information. This cause feature vector is then input into a preset timeout cause analysis model for analysis, which outputs the timeout cause of the onboard SSD. Specifically, the preset timeout cause analysis model can be a multilayer perceptron. After determining the timeout cause of the onboard SSD, appropriate solutions can be adopted to resolve the timeout problem.

[0067] Step 202: Based on the first telemetry information, determine whether the timeout of the garbage collection operation will affect the execution of the next task.

[0068] In this embodiment of the invention, after determining that the solid-state drive (SSD) garbage collection has timed out, the ground terminal will determine whether the garbage collection operation will affect the execution of the next task based on the received first telemetry information. Specifically, based on the task type corresponding to the next task, the upper limit of the storage capacity required by the next task is estimated, and it is determined whether the directly writable capacity in the first telemetry information is greater than the upper limit of the storage capacity. If the directly writable capacity is greater than the upper limit of the storage capacity, it is determined that the garbage collection operation timeout does not affect the execution of the next task; if the directly writable capacity is less than or equal to the upper limit of the storage capacity, it is determined that the garbage collection operation affects the execution of the next task.

[0069] Step 203: If it affects the execution of the next task, determine to perform the garbage collection operation of the solid-state drive before the execution of the next task.

[0070] In this embodiment of the invention, when it is determined that the execution of the next task will be affected, this embodiment adopts a garbage collection strategy for the solid-state drive before the execution of the next task, thereby executing the corresponding task instruction sequence. The method for this process includes: determining the start time of the next task based on its requirements; calculating the garbage collection duration before the execution of the next task based on the directly writable capacity in the first telemetry information, the reacquired capacity to be reclaimed, and the upper limit of the storage capacity required by the next task; formulating a task instruction sequence based on the garbage collection duration and the start time of the next task; and uploading the task instruction sequence via the satellite-to-ground telemetry and control link so that the satellite platform executes the task instruction sequence.

[0071] When calculating the garbage collection time before the next task execution, if the directly writable capacity is less than or equal to the storage capacity limit, it is determined whether the sum of the directly writable capacity and the reacquired capacity to be reclaimed is greater than the storage capacity limit; if the sum of the directly writable capacity and the reacquired capacity to be reclaimed is greater than the storage capacity limit, the garbage collection time before the next task execution is estimated based on the reacquired capacity to be reclaimed and the garbage collection rate of the solid-state drive; if the sum of the directly writable capacity and the reacquired capacity to be reclaimed is less than or equal to the storage capacity limit, the second target historical data to be deleted is determined based on the directly writable capacity, the reacquired capacity to be reclaimed, and the storage capacity limit, and the capacity to be reclaimed is acquired again; the garbage collection time before the next task execution is estimated based on the reacquired capacity to be reclaimed again and the garbage collection rate of the solid-state drive.

[0072] When formulating the task instruction sequence based on the garbage collection duration and the start time of the next task, a second preset duration is determined to be the interval between adjacent instruction executions; the execution time of the stop garbage collection instruction is determined according to the second preset duration and the start time of the next task; the execution time of the start garbage collection instruction is determined according to the execution time of the stop garbage collection instruction and the second preset duration; the execution time of the data deletion instruction and the satellite payload power-on instruction are determined sequentially according to the execution time of the start garbage collection instruction and the second preset duration.

[0073] Based on the start time of the next task, the end time of the next task is determined; based on the end time of the next task and the second preset duration, the execution times of other instructions and the execution time of the satellite payload power-down instruction are determined sequentially; based on the execution time of the satellite payload power-on instruction, the execution time of the data deletion instruction, the execution time of the start garbage collection instruction, the execution time of the stop garbage collection instruction, the start time of the next task, the end time of the next task, the execution time of other instructions, and the execution time of the satellite payload power-down instruction, a task instruction sequence is formulated.

[0074] The second preset duration can be set according to actual business needs, and this embodiment of the invention does not impose specific limitations on it.

[0075] Specifically, the start time of the next mission can be determined based on the requirements of the satellite system or the payload provider. This is done when the directly writable capacity S_available is less than or equal to the upper limit of the storage capacity S_task, i.e., within the range of S_available... In the case of S_task, further determine whether the sum of the directly writable capacity S_available and the reacquired capacity to be reclaimed S_recycle1 is greater than the storage capacity limit S_task. If S_available + S_recycle1 S_task, based on the newly acquired reclaimable capacity S_recycle1 and the solid-state drive's garbage collection rate, estimates the garbage collection time ΔT before the next task execution; if S_available + S_recycle1 If S_task is selected, then the second target historical data S_remove2 is selected and deleted, making S_available + S_recycle1 + S_remove2. The system first calculates `S_task`, then retrieves the remaining capacity `S_recycle2`, where `S_recycle2 = S_recycle1 + S_remove2`. Based on this re-obtained capacity `S_recycle2` and the SSD's garbage collection rate, it estimates the garbage collection time `ΔT` before the next task execution. Furthermore, it defines a task instruction sequence, assuming the next task's execution time is `T1`, ensuring the garbage collection instructions execute no later than `T1 - ΔT`, and stopping garbage collection at time `T1`.

[0076] For scenarios involving garbage collection before remote sensing mission execution, the following specific embodiment illustrates the instruction sequence required by the ground terminal and its corresponding execution time. Assuming the satellite payload needs to execute its next mission at time T1, and the second preset duration is 10 seconds, the ground terminal specifies the following instructions: to stop garbage collection at time T1-10, to start garbage collection at time T1-10-ΔT, and to execute data deletion at time T1-10-ΔT-10. Assuming the satellite payload's power-on duration is Ts, the ground terminal specifies the power-on instruction at time T1-10-ΔT-10-Ts. Assuming the next mission's execution duration is ΔT1, the ground terminal specifies the instruction for the satellite payload to execute the next mission at time T1, to stop the main mission at time T1+ΔT1, and to execute other necessary tasks at time T1+ΔT1+10, and to power down the payload at time T1+ΔT1+10+ΔT2. This generates a sequence of mission instructions, which is then uploaded to the satellite platform via the space-to-ground telemetry and control link. The satellite platform then controls the satellite payload to execute the instructions in the sequence of mission instructions at the appropriate time.

[0077] This invention provides a garbage collection method for a spaceborne solid-state drive (SSD). By granting the satellite platform and ground terminal the right to directly control the SSD's main program to perform garbage collection in real time, and the right to obtain information such as the SSD's directly writable capacity, the capacity to be collected, and the garbage collection progress, this method allows for deterministic garbage collection of the SSD in spaceborne scenarios before and after continuous high-load missions. This meets the high-performance, high-reliability, and high-efficiency requirements of SSDs in spaceborne environments. This deterministic garbage collection mechanism ensures high performance of the payload during mission completion, avoids mission failure due to SSD performance degradation, and enables the payload to complete the mission in the shortest time and in the best condition, reducing the overall pressure on the satellite.

[0078] Furthermore, as Figure 1 The specific implementation of the method shown in this embodiment provides a garbage collection device for a spaceborne solid-state drive, applied to a satellite platform, such as... Figure 3 As shown, the device includes: an acquisition unit 31, a determination unit 32, a deletion unit 33, a control unit 34, and a sending unit 35.

[0079] The acquisition unit 31 can be used to acquire the directly writable capacity and the capacity to be reclaimed of the solid-state drive of the satellite payload after the execution of this mission, and to determine the capacity management threshold of the solid-state drive.

[0080] The determination unit 32 can be used to determine whether the solid-state drive meets the capacity requirements based on the directly writable capacity, the capacity to be recycled, and the capacity management threshold.

[0081] The deletion unit 33 can be used to select a first target historical data for deletion based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold if the solid-state drive does not meet the capacity requirements, and then reacquire the capacity to be reclaimed.

[0082] The control unit 34 can be used to control the satellite payload to perform garbage collection operations on the solid-state drive based on the reacquired capacity to be recycled, and to obtain the garbage collection progress.

[0083] The determination unit 32 can also be used to determine whether the garbage collection operation of the solid-state drive has timed out based on the garbage collection progress.

[0084] The sending unit 35 can be used to send first telemetry information to the ground terminal if the garbage collection operation of the solid-state drive times out. The ground terminal is used to determine whether the garbage collection operation timeout affects the execution of the next task based on the first telemetry information. If it affects the execution of the next task, the ground terminal determines to perform the garbage collection operation of the solid-state drive before the execution of the next task.

[0085] In some embodiments, the determination unit 32 may be specifically used to sum the directly writable capacity and the capacity to be recycled to obtain a total capacity; determine whether the total capacity is greater than the capacity management threshold; if the total capacity is greater than the capacity management threshold, determine that the solid-state drive meets the capacity requirements and directly control the satellite payload to perform garbage collection operations on the solid-state drive; if the total capacity is less than or equal to the capacity management threshold, determine that the solid-state drive does not meet the capacity requirements.

[0086] In some embodiments, the deletion unit 33 may be specifically used to determine the amount of data to be deleted based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold; select the first target historical data for deletion based on the amount of data to be deleted and the generation time of the historical data; control the satellite payload to perform the garbage block notification operation of the solid-state drive, and reacquire the capacity to be reclaimed after an interval of a first preset time.

[0087] In some embodiments, the acquisition unit 31 may be specifically used to receive second telemetry information fed back by the satellite payload; and to determine the waste recycling progress based on the second telemetry information.

[0088] In some embodiments, the determination unit 32 can also be specifically used to determine whether the solid-state drive has completed the garbage collection operation based on the garbage collection progress; if the solid-state drive has completed the garbage collection operation, a power-down command is sent to the satellite payload; if the solid-state drive has not completed the garbage collection operation, it is determined whether the garbage collection operation of the solid-state drive has timed out.

[0089] It should be noted that other corresponding descriptions of the functional units involved in the garbage collection device for a spaceborne solid-state drive provided in this embodiment can be found in [reference needed]. Figure 1 The corresponding descriptions in [the document] will not be repeated here.

[0090] Based on the above, Figure 1 Accordingly, this embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements the above-described method. Figure 1 The garbage collection method for the onboard solid-state drive is shown.

[0091] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause an electronic device (such as personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of this application.

[0092] Based on the above, Figure 1 The method shown, and Figure 3 To achieve the above objectives, the present application also provides an electronic device, specifically a personal computer, tablet computer, server, or other network device, as shown in the virtual device embodiment. This device includes a storage medium and a processor; the storage medium stores a computer program; the processor executes the computer program to achieve the above-described objectives. Figure 1 The garbage collection method for the onboard solid-state drive is shown.

[0093] Optionally, the aforementioned physical devices may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.

[0094] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.

[0095] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.

[0096] Furthermore, as Figure 2 The specific implementation of the method shown in this embodiment provides a garbage collection device for a spaceborne solid-state drive, applied to a ground terminal, such as... Figure 4 As shown, the device includes a receiving unit 41, a determining unit 42, and a determining unit 43.

[0097] The receiving unit 41 can be used to receive first telemetry information fed back by the satellite platform. The satellite platform is used to determine whether the solid-state drive (SSD) meets the capacity requirements based on the directly writable capacity, the capacity to be recycled, and the capacity management threshold of the SSD after the current mission. If the SSD does not meet the capacity requirements, it selects first target historical data for deletion based on the directly writable capacity, the capacity to be recycled, and the capacity management threshold, and reacquires the capacity to be recycled. Based on the reacquired capacity to be recycled, it controls the satellite payload to perform garbage collection operations on the SSD and acquires the garbage collection progress. Based on the garbage collection progress, it determines whether the garbage collection operation on the SSD has timed out. If the garbage collection operation on the SSD has timed out, it sends the first telemetry information to the ground terminal.

[0098] The determination unit 42 can be used to determine, based on the first telemetry information, whether the timeout of the garbage collection operation will affect the execution of the next task.

[0099] The determining unit 43 can be used to determine, if it affects the execution of the next task, to perform a garbage collection operation on the solid-state drive before the execution of the next task.

[0100] In some embodiments, the determination unit 42 includes an estimation module, a determination module, and a determination module.

[0101] The estimation module can be used to estimate the upper limit of storage capacity required for the next task based on the task type corresponding to the next task.

[0102] The determination module can be used to determine whether the directly writable capacity in the first telemetry information is greater than the upper limit of the storage capacity.

[0103] The determining module can be used to determine that if the directly writable capacity is greater than the upper limit of the storage capacity, the timeout of the garbage collection operation will not affect the execution of the next task.

[0104] The determining module can also be used to determine that the garbage collection operation affects the next task execution if the directly writable capacity is less than or equal to the upper limit of the storage capacity.

[0105] In some embodiments, the apparatus includes: a calculation unit, a formulation unit, and an injection unit.

[0106] The determining unit 43 can also be used to determine the start time of the execution of the next task based on the requirements of the next task.

[0107] The computing unit can be used to calculate the garbage collection time before the next task is executed, based on the directly writable capacity in the first telemetry information, the reacquired capacity to be reclaimed, and the upper limit of the storage capacity required for the next task.

[0108] The formulation unit can be used to formulate a sequence of task instructions based on the garbage collection duration and the start time of the next task.

[0109] The uploading unit can be used to upload the mission instruction sequence based on the satellite-to-ground telemetry and control link, so that the satellite platform can execute the mission instruction sequence.

[0110] The computing unit can be specifically configured to: if the directly writable capacity is less than or equal to the upper limit of the storage capacity, determine whether the sum of the directly writable capacity and the reacquired capacity to be reclaimed is greater than the upper limit of the storage capacity; if the sum of the directly writable capacity and the reacquired capacity to be reclaimed is greater than the upper limit of the storage capacity, estimate the garbage collection time before the next task execution based on the reacquired capacity to be reclaimed and the garbage collection rate of the solid-state drive; if the sum of the directly writable capacity and the reacquired capacity to be reclaimed is less than or equal to the upper limit of the storage capacity, determine the second target historical data to be deleted based on the directly writable capacity, the reacquired capacity to be reclaimed, and the upper limit of the storage capacity, and acquire the capacity to be reclaimed again; and estimate the garbage collection time before the next task execution based on the reacquired capacity to be reclaimed again and the garbage collection rate of the solid-state drive.

[0111] The formulation unit can be specifically used to determine a second preset time interval required for the execution of adjacent instructions; determine the execution time of the stop garbage collection instruction based on the second preset time interval and the start time of the next task; determine the execution time of the start garbage collection instruction based on the execution time of the stop garbage collection instruction and the second preset time interval; sequentially determine the execution time of the data deletion instruction and the satellite payload power-on instruction based on the execution time of the start garbage collection instruction and the second preset time interval; determine the end time of the next task based on the start time of the next task; sequentially determine the execution time of other instructions and the satellite payload power-off instruction based on the end time of the next task and the second preset time interval; and formulate a task instruction sequence based on the execution time of the satellite payload power-on instruction, the execution time of the data deletion instruction, the execution time of the start garbage collection instruction, the execution time of the stop garbage collection instruction, the start time of the next task, the end time of the next task, the execution time of other instructions, and the execution time of the satellite payload power-off instruction.

[0112] It should be noted that other corresponding descriptions of the functional units involved in the garbage collection device for a spaceborne solid-state drive provided in this embodiment can be found in [reference needed]. Figure 2 The corresponding descriptions in [the document] will not be repeated here.

[0113] Based on the above, Figure 2 Accordingly, this embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements the above-described method. Figure 2 The garbage collection method for the onboard solid-state drive is shown.

[0114] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause an electronic device (such as personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of this application.

[0115] Based on the above, Figure 2 The method shown, and Figure 4 To achieve the above objectives, the present application also provides an electronic device, specifically a personal computer, tablet computer, server, or other network device, as shown in the virtual device embodiment. This device includes a storage medium and a processor; the storage medium stores a computer program; the processor executes the computer program to achieve the above-described objectives. Figure 2 The garbage collection method for the onboard solid-state drive is shown.

[0116] Optionally, the aforementioned physical devices may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.

[0117] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.

[0118] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.

[0119] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platform, or it can be implemented by hardware.

[0120] This invention, by granting satellite platforms and ground terminals the right to directly control the solid-state drive (SSD) main program to perform garbage collection in real time, and the right to obtain information such as the SSD's directly writable capacity, uncollected capacity, and garbage collection progress, and by controlling the SSD to deterministically perform garbage collection before and after continuous high-load missions in spaceborne scenarios, can meet the high-performance, high-reliability, and high-efficiency requirements of SSDs in spaceborne scenarios. This deterministic garbage collection mechanism of this invention can ensure the payload's high performance during mission completion, avoid mission failure due to SSD performance degradation, and enable the payload to complete the mission in the shortest time and in the best condition, reducing the overall satellite load.

[0121] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application. Those skilled in the art will understand that the modules in the apparatus of the embodiment can be distributed within the apparatus of the embodiment as described, or can be modified to be located in one or more apparatuses different from this embodiment. The modules of the above-described embodiment can be combined into one module, or further divided into multiple sub-modules.

[0122] The serial numbers in this application are for descriptive purposes only and do not represent the superiority or inferiority of any particular implementation scenario. The above disclosures are merely a few specific implementation scenarios of this application; however, this application is not limited thereto, and any variations conceived by those skilled in the art should fall within the protection scope of this application.

Claims

1. A method for garbage collection of a spaceborne solid-state drive, characterized in that, Applied to a satellite platform, the method includes: After the mission is completed, obtain the directly writable capacity and the capacity to be reclaimed of the solid-state drive of the satellite payload, and determine the capacity management threshold of the solid-state drive; Based on the directly writable capacity, the capacity to be recycled, and the capacity management threshold, determine whether the solid-state drive meets the capacity requirements; If the solid-state drive does not meet the capacity requirements, then based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold, the first target historical data is selected for deletion, and the capacity to be reclaimed is reacquired. Based on the reacquired capacity to be recycled, the satellite payload is controlled to perform garbage collection operations on the solid-state drive, and the garbage collection progress is obtained; Based on the garbage collection progress, determine whether the garbage collection operation of the solid-state drive has timed out; If the garbage collection operation of the solid-state drive times out, the first telemetry information is sent to the ground terminal. The ground terminal is used to determine, based on the first telemetry information, whether the garbage collection operation timeout will affect the execution of the next task. If it will affect the execution of the next task, the garbage collection operation of the solid-state drive will be performed before the execution of the next task.

2. The method according to claim 1, characterized in that, The step of determining whether the solid-state drive meets the capacity requirements based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold includes: The total capacity is obtained by summing the directly writable capacity with the capacity to be recycled. Determine whether the total capacity is greater than the capacity management threshold; If the total capacity is greater than the capacity management threshold, then the solid-state drive is determined to meet the capacity requirements, and the satellite payload is directly controlled to perform garbage collection operations on the solid-state drive. If the total capacity is less than or equal to the capacity management threshold, then the solid-state drive is determined not to meet the capacity requirements.

3. The method according to claim 1, characterized in that, The step of determining whether the garbage collection operation of the solid-state drive has timed out based on the garbage collection progress includes: Based on the garbage collection progress, it is determined whether the solid-state drive has completed the garbage collection operation; If the solid-state drive has completed garbage collection, a power-down command is sent to the satellite payload; If the solid-state drive has not completed the garbage collection operation, it is determined whether the garbage collection operation of the solid-state drive has timed out.

4. A method for garbage collection of a spaceborne solid-state drive, characterized in that, Applied to a ground terminal, the method includes: The system receives first telemetry information from a satellite platform. The satellite platform determines whether the solid-state drive (SSD) meets capacity requirements based on its directly writable capacity, unclaimed capacity, and capacity management threshold after the mission. If the SSD does not meet capacity requirements, it selects and deletes first target historical data based on the directly writable capacity, unclaimed capacity, and capacity management threshold, and reacquires the unclaimed capacity. Based on the reacquired unclaimed capacity, it controls the satellite payload to perform garbage collection on the SSD and acquires the garbage collection progress. Based on the garbage collection progress, it determines whether the garbage collection operation has timed out. If the garbage collection operation times out, it sends first telemetry information to the ground terminal. Based on the first telemetry information, determine whether the timeout of the garbage collection operation will affect the execution of the next task; If it affects the execution of the next task, then the garbage collection operation of the solid-state drive is determined to be performed before the execution of the next task.

5. The method according to claim 4, characterized in that, The step of determining whether the garbage collection operation timeout will affect the execution of the next task based on the first telemetry information includes: Based on the task type corresponding to the next task, estimate the upper limit of the storage capacity required for the next task; Determine whether the directly writable capacity in the first telemetry information is greater than the upper limit of the storage capacity; If the directly writable capacity is greater than the storage capacity limit, then the garbage collection operation timeout will not affect the execution of the next task. If the directly writable capacity is less than or equal to the upper limit of the storage capacity, then it is determined that the garbage collection operation affects the execution of the next task.

6. The method according to claim 5, characterized in that, After determining that the garbage collection operation of the solid-state drive will be performed before the next task is executed, the method further includes: Based on the requirements of the next task, determine the start time for the execution of the next task; Based on the directly writable capacity in the first telemetry information, the reacquired capacity to be reclaimed, and the upper limit of storage capacity required for the next task, calculate the garbage collection time before the next task is executed. Based on the garbage collection duration and the start time of the next task, a task instruction sequence is formulated; Based on the satellite-to-ground telemetry and control link, the mission instruction sequence is uploaded so that the satellite platform can execute the mission instruction sequence.

7. A waste recycling device for a spaceborne solid-state drive, characterized in that, Applied to a satellite platform, the device includes: The acquisition unit is used to acquire the directly writable capacity and the capacity to be reclaimed of the solid-state drive of the satellite payload after the execution of this mission, and to determine the capacity management threshold of the solid-state drive. The determination unit is used to determine whether the solid-state drive meets the capacity requirements based on the directly writable capacity, the capacity to be recycled, and the capacity management threshold. The deletion unit is used to select a first target historical data for deletion based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold if the solid-state drive does not meet the capacity requirements, and then reacquire the capacity to be reclaimed. The control unit is used to control the satellite payload to perform garbage collection operations on the solid-state drive based on the reacquired capacity to be recycled, and to obtain the garbage collection progress. The determination unit is also used to determine whether the garbage collection operation of the solid-state drive has timed out based on the garbage collection progress; The sending unit is configured to send first telemetry information to the ground terminal if the garbage collection operation of the solid-state drive times out, wherein the ground terminal is configured to determine, based on the first telemetry information, whether the garbage collection operation timeout affects the execution of the next task; if it affects the execution of the next task, it determines to perform the garbage collection operation of the solid-state drive before the execution of the next task.

8. A waste recycling device for a spaceborne solid-state drive, characterized in that, The device, used in ground terminals, includes: The receiving unit is used to receive first telemetry information fed back by the satellite platform. The satellite platform is used to determine whether the solid-state drive (SSD) meets the capacity requirements based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold after the current mission. If the SSD does not meet the capacity requirements, it selects first target historical data for deletion based on the directly writable capacity, the capacity to be reclaimed, and the capacity management threshold, and reacquires the capacity to be reclaimed. Based on the reacquired capacity to be reclaimed, it controls the satellite payload to perform garbage collection operations on the SSD and acquires the garbage collection progress. Based on the garbage collection progress, it determines whether the garbage collection operation on the SSD has timed out. If the garbage collection operation on the SSD has timed out, it sends the first telemetry information to the ground terminal. The determination unit is used to determine, based on the first telemetry information, whether the timeout of the garbage collection operation will affect the execution of the next task; A determining unit is configured to determine, if it affects the execution of the next task, to perform a garbage collection operation on the solid-state drive before the execution of the next task.

9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 2 to 3 and / or 5 to 6.

10. An electronic device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 2 to 3 and / or 5 to 6.

Citation Information

Patent Citations

  • Solid state disk dynamic garbage collection method and solid state disk

    CN115687174A

  • Solid state disk space active recovery method, device and equipment and readable storage medium

    CN119226183A