CN116126788A - File management method based on Loongson 2k1000 and domestic channel operating system - Google Patents

File management method based on Loongson 2k1000 and domestic channel operating system Download PDF

Info

Publication number
CN116126788A
CN116126788A CN202310103741.1A CN202310103741A CN116126788A CN 116126788 A CN116126788 A CN 116126788A CN 202310103741 A CN202310103741 A CN 202310103741A CN 116126788 A CN116126788 A CN 116126788A
Authority
CN
China
Prior art keywords
rtc
file
file management
time
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310103741.1A
Other languages
Chinese (zh)
Inventor
李越
熊崴
梁磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
707th Research Institute of CSIC
Original Assignee
707th Research Institute of CSIC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 707th Research Institute of CSIC filed Critical 707th Research Institute of CSIC
Priority to CN202310103741.1A priority Critical patent/CN116126788A/en
Publication of CN116126788A publication Critical patent/CN116126788A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1727Details of free space management performed by the file system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to a file management method based on Loongson 2K1000 and a domestic channel operating system, which is based on the domestic Loongson 2K1000 and a channel operating system software and hardware platform, creates a file management task for generating a new storage catalog and a storage file after starting up, and monitors a hard disk space in real time to clean early data files in time. When creating the catalogue and the file, a real-time clock module (RTC) inside the Loongson is utilized to generate a date and time character string which is added into the name, so that the user can conveniently search and automatically clean the name. And performing file system operations such as directory and file creation, file reading and writing, residual hard disk space inquiry, directory and file deletion and the like by using the basic file IO in the file operating system. And the information storage flow is designed by utilizing a message queue mechanism of the channel operating system, so that the reliable receiving and storage of data are ensured.

Description

File management method based on Loongson 2k1000 and domestic channel operating system
Technical Field
The invention belongs to the technical field of embedded computer application software, and particularly relates to a file management method based on Loongson 2k1000 and a domestic channel operating system.
Background
The inertial navigation device is installed on a surface vessel, and the single voyage time can be as long as several months, during which a large amount of test data needs to be stored for post simulation and problem tracing. Because of long navigation time and large data volume, the number of generated files is huge, and a directory structure and a naming mechanism with reasonable design are needed, the user can conveniently search and manage test data files. In addition, the hard disk capacity for storing test data is limited, and automatic cleaning of early data is required when the storage space is insufficient.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a file management method based on Loongson 2k1000 and a domestic channel operating system, which can design an information storage flow by utilizing a message queue mechanism of the channel operating system and ensure reliable receiving and storage of data.
The invention solves the technical problems by adopting the following technical scheme:
a file management method based on Loongson 2k1000 and domestic channel operation system comprises RTC time keeping method, storage directory and file name construction method, data storage method and file management method,
the RTC time keeping method comprises the following steps:
step 1.1, setting a structure of RTC information data;
wherein, RTC information data structure includes: millisecond value, second, minute, time, day, month, year, RTC valid flag and UTC valid count;
step 1.2, initializing an RTC;
initializing an RTC information data structure to 0 minutes and 0 seconds in 1 month and 1 day of 2000, and clearing 0 by an RTC valid flag and UTC valid count;
step 1.3, correcting the RTC through an RMC message of the guard receiver;
and step 1.4, reading RTC information data after RTC correction.
Furthermore, the step 1.3 comprises the steps of:
step 1.3.1, subtracting the UTC time of the RMC message of the previous frame of the guard receiver from the UTC time of the RMC message of the current guard receiver, if the difference is 1s, adding 1 to the UTC effective count, otherwise clearing 0 to the UTC effective count;
step 1.3.2, when the UTC effective count is more than or equal to 5, if the current value of the RTC effective mark is 0, carrying out steps 1.3.3 to 1.3.5;
step 1.3.3, setting the RTC valid flag to 1;
step 1.3.4, correcting the RTC_INFO structure body by utilizing UTC date and time;
step 1.3.5, calling the RTC driver to write the date and time in the RTC_INFO into the RTC.
Furthermore, the step 1.4 comprises the steps of:
step 1.4.1, calling an RTC driver to read the current date and time into an RTC_INFO structure body;
step 1.4.2, generating a date character string by using the RTC date, wherein the format is YYYMMDD, and the number of data bits is not enough to be 0;
step 1.4.3, generating a time character string by using the RTC time, wherein the format is HMMSS, and the data bit number is less than 0.
Moreover, the storage directory and file name construction method includes the steps of:
step 2.1, constructing a data type directory, wherein the data type directory is a primary directory, and the format is as follows: the data type name, the first-level catalogue stores all the voyage data files of the same data type;
step 2.2, constructing a voyage catalog, wherein the voyage catalog is a secondary catalog, and the format is as follows: the data type name_date_time, the secondary catalog is created according to the date and time of the RTC and the effectiveness thereof after each time of starting up, and is used for storing the data file of the voyage;
and 2.3, generating a storage file under the constructed voyage list.
Moreover, the data storage method includes the steps of:
step 3.1, judging whether the current message queue has data, if so, performing step 3.2, otherwise, performing step 3.3;
step 3.2, taking out one data from the head of the team, reserving the data as a message, and storing the message into a corresponding data type file;
and 3.3, ending the processing of the current message queue, and switching to the processing of the next message queue.
Moreover, the file management method includes: the method comprises the steps of constructing a file management task running mechanism, constructing a catalog creation function and a file cleaning function.
Moreover, the construction file management task running mechanism comprises the following steps:
step 4.1.1, the function of setting file management tasks comprises: creating a catalog and cleaning a file;
step 4.1.2, setting the priority of the file management task;
step 4.1.3, setting the running period of the file management task;
the starting time of the operation is T0, and if the time consumption of the task operation is not more than 1s, the next time of the task operation is T0+1s; and the starting time of the operation is T0, and if the time consumption of the task operation exceeds 1s, the next task operation is started immediately after the task is ended.
Moreover, the build catalog creation function includes the steps of:
step 4.2.1, inquiring an RTC valid flag, if the RTC valid flag is valid, performing step 4.2.2, otherwise, ending;
step 4.2.2, entering each data type catalog, judging whether the voyage catalog is created or not, ending if the voyage catalog is created, otherwise, carrying out step 4.2.3;
and 4.2.3, reading the date and time of the RTC information data, creating a voyage directory and a first data file of the voyage directory, and creating a flag 1 in the voyage directory.
Moreover, the file cleaning function includes the steps of:
step 4.3.1, inquiring the residual space of the current hard disk, if the residual space of the current hard disk is smaller than the warning value, performing step 4.3.2, otherwise, ending;
step 4.3.2, traversing all the navigation directory names under the current data type directory, and deleting the navigation directory with the smallest character string comparison result;
and 4.3.3, judging whether other data type catalogues are not cleaned, returning to 4.3.2 if the other data type catalogues are not cleaned, and ending if the other data type catalogues are not cleaned.
The invention has the advantages and positive effects that:
the invention is based on a domestic Loongson 2K1000 and a software and hardware platform of a channel operating system, creates a file management task for generating a new storage catalog and a storage file after starting up, monitors the hard disk space in real time and cleans early data files in time. When creating the catalogue and the file, a real-time clock module (RTC) inside the Loongson is utilized to generate a date and time character string which is added into the name, so that the user can conveniently search and automatically clean the name. And performing file system operations such as directory and file creation, file reading and writing, residual hard disk space inquiry, directory and file deletion and the like by using the basic file IO in the file operating system. And the information storage flow is designed by utilizing a message queue mechanism of the channel operating system, so that the reliable receiving and storage of data are ensured.
Drawings
FIG. 1 is a schematic diagram of a storage directory structure according to the present invention;
FIG. 2 is a flow chart of the data storage according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
A file management method based on Loongson 2k1000 and domestic channel operation system comprises RTC time keeping method, storage directory and file name construction method, data storage method and file management method,
the RTC time keeping method comprises the following steps:
step 1.1, setting the structure of RTC information data.
The definition of the RTC information data structure is as follows:
Figure BDA0004074052670000031
step 1.2, initializing an RTC.
The RTC information data structure is initialized to 1 month, 1 day, 0 hour, 0 minutes, 0 seconds, 2000, and the RTC valid flag and UTC valid count are cleared 0.
Step 1.3, RTC correction is carried out through RMC message pairs of the guard receiver, and in order to ensure the reliability of guard information, the validity of UTC time is judged by adopting the following criteria after each frame of message is received:
step 1.3.1, subtracting the UTC time of the RMC message of the previous frame of the guard receiver from the UTC time of the RMC message of the current guard receiver, if the difference is 1s, adding 1 to the UTC effective count, otherwise clearing 0 to the UTC effective count;
step 1.3.2, when the UTC effective count is more than or equal to 5, if the current value of the RTC effective mark is 0, carrying out steps 1.3.3 to 1.3.5;
step 1.3.3, setting the RTC valid flag to 1;
step 1.3.4, correcting the RTC_INFO structure body by utilizing UTC date and time;
step 1.3.5, calling the RTC driver to write the date and time in the RTC_INFO into the RTC.
Once the RTC is calibrated once (i.e., RTC valid flag 1), the RTC module can be self-timed out of external information, after which reading the date and time information of the RTC module can be used to generate a new memory directory and memory file name string.
Step 1.4, reading RTC information data after RTC correction;
step 1.4.1, calling an RTC driver to read the current date and time into an RTC_INFO structure body;
step 1.4.2, generating a date character string by using the RTC date, wherein the format is YYYMMDD, and the number of data bits is not enough to be 0;
step 1.4.3, generating a time character string by using the RTC time, wherein the format is HMMSS, and the data bit number is less than 0.
As shown in fig. 1, the storage directory and file name construction method includes the steps of:
step 2.1, constructing a data type directory, wherein the data type directory is a primary directory, and the format is as follows: a data type name (e.g. "pulse100Hz", "atti1000Hz", etc.), a primary directory stores all voyage data files of the same data type;
step 2.2, constructing a voyage catalog, wherein the voyage catalog is a secondary catalog, and the format is as follows: the data type name is date-time ("puls100 Hz-20220815-150130"), and the secondary catalog is created according to the date and time of the RTC and the validity thereof after each start-up and is used for storing the data file of the voyage;
step 2.3, automatically generating a storage file according to the following strategies under the constructed navigation times directory:
when creating the voyage catalog (in this embodiment, "pulse100 hz_20220815_150130"), the first storage file of this voyage is directly created in the format: data type name_date_time_bin (this embodiment is "pulse100hz_20220815_150130. Bin");
if the current file (in this embodiment, "puls 100hz_20220815_150130. Bin") stores more than 12 hours, the current stored file is closed, and a new stored file is regenerated according to the RTC date and time under the current voyage directory (in this embodiment, "puls 100 hz_20220815_150130") in the format of: data type name_date_time. (this embodiment is "pulse100Hz_20220816_030130. Bin").
The test data is stored by using a message queue mechanism of the channel operating system, and a first-in first-out (FIFO) message queue is established for each data type, wherein the length of the queue is the maximum number of data packets which can be received within 1 second. The task generating the message adds the message to the tail of the message queue of the corresponding data type in real time, the data storage task queries the message queue of each storage data type sequentially every 10ms, the processing flow is as shown in the following figure 2, and the data storage method comprises the following steps:
step 3.1, judging whether the current message queue has data, if so, performing step 3.2, otherwise, performing step 3.3;
step 3.2, taking out one data from the head of the team, reserving the data as a message, and storing the message into a corresponding data type file;
and 3.3, ending the processing of the current message queue, and switching to the processing of the next message queue.
Moreover, the file management method includes: the method comprises the steps of constructing a file management task running mechanism, constructing a catalog creation function and a file cleaning function.
The construction of the file management task operation mechanism comprises the following steps:
step 4.1.1, the function of setting file management tasks comprises: creating a catalog and cleaning a file;
step 4.1.2, setting the priority of the file management task;
step 4.1.3, setting the running period of the file management task;
the starting time of the operation is T0, and if the time consumption of the task operation is not more than 1s, the next time of the task operation is T0+1s; and the starting time of the operation is T0, and if the time consumption of the task operation exceeds 1s, the next task operation is started immediately after the task is ended.
Moreover, the build catalog creation function includes the steps of:
step 4.2.1, inquiring an RTC valid flag, if the RTC valid flag is valid, performing step 4.2.2, otherwise, ending;
step 4.2.2, entering each data type catalog, judging whether the voyage catalog is created or not, ending if the voyage catalog is created, otherwise, carrying out step 4.2.3;
and 4.2.3, reading the date and time of the RTC information data, creating a voyage directory and a first data file of the voyage directory, and creating a flag 1 in the voyage directory.
Moreover, the file cleaning function includes the steps of:
step 4.3.1, inquiring the current hard disk residual space, if the current hard disk residual space is smaller than the warning value (2 GBytes in the embodiment), performing step 4.3.2, otherwise, ending;
step 4.3.2, traversing all the navigation directory names under the current data type directory, and deleting the navigation directory with the smallest character string comparison result;
and 4.3.3, judging whether other data type catalogues are not cleaned, returning to 4.3.2 if the other data type catalogues are not cleaned, and ending if the other data type catalogues are not cleaned.
According to the file management method based on the Loongson 2k1000 and the domestic road operating system, the effect of the invention is proved through testing.
The operation environment of the invention is as follows:
hardware environment:
a processor: loongson 2k1000
The main frequency: 1000Mhz
Core number: 2
Memory: 2GBytes
Network card: gigabit ethernet x 2
Hard disk: NVME solid state 512GBytes
Software environment:
operating system: deltaOS 6.2
Local file system: FAT32
FTP server: system self-contained FTP service assembly
Upper computer environment:
network card: gigabit Ethernet
Operating system: WIN7
FTP client: filezilla
Software and hardware resource configuration and initialization:
(1) Initializing a system clock: sysClkRate is set to 1000;
(2) RTC initialization: after starting up, initializing the RTC information data structure to 0 minutes and 0 seconds at 1 month and 1 day of 2000, and clearing the RTC effective mark and UTC effective count to 0
(3) Message queue initialization:
the message queue type is FIFO
The message size is set to store the data message length
The number of messages is set to be the maximum number of data packets which can be received within 1 second
(4) Data storage task initialization:
task priority: 105
Task type: floating point task
Task stack: 200000
(5) Initializing a file management task:
task priority: 107
Task type: floating point task
Task stack: 200000.
the operation scheme is as follows:
(1) Data storage task operation scheme
a) The operation of tasks is controlled by binary signal quantity, and the operation period is 10ms;
b) After the task acquires the CPU control right and enters an operation state, acquiring the number of messages in each message queue in a non-blocking mode;
c) If the message queue has data, each message is written into the corresponding storage file in sequence;
d) If the current file is full of the stored data for 12 hours, the current file is closed, and a new stored file is regenerated by using the RTC date and time.
(2) File management task operation scheme
a) Acquiring a current sysClkTick value T0;
b) If the navigation time directory is not created, turning to c), otherwise turning to d);
c) If the RTC valid flag is 1, creating a current voyage storage directory according to the RTC date and time, otherwise, turning to d);
d) Executing file cleaning operation according to the current residual hard disk space;
e) Acquiring a current sysClkTick value T1;
f) If (T1-T0) <1000, then turning to g), otherwise turning to h);
g) Waiting (1000- (T1-T0)) Ticks;
h) Returning to a).
(3) Message queue operation function
The DeltaOS operating system provides a message queue library (msgqlib. H), the functions and functions used in the present invention are shown in the following table:
message queue function Function
msgQCreate Creating message queues
msgQSend Sending messages to the end of queue of message queues
msgQNumMsgs Obtaining the number of unread messages in a message queue
msgQReceive Removing a message from the head of a message queue
(4) Standard file IO function
The DeltaOS operating system provides a standard file IO library (stdio. H), and functions used in the invention are shown in the following table:
Figure BDA0004074052670000061
(5) File transmission scheme
The stored data is transmitted by adopting an FTP service component of the operating system, a common Windows computer is connected with the inertial navigation device through a network cable, and after the FTP service is connected by utilizing a Filezilla client, a user can perform basic file operations such as inquiring, downloading, modifying, deleting and the like on the data files in the hard disk.
The invention has continuously and stably operated for 3 months in the scientific research test of a certain surface ship, the recorded data is not less than 100GB during the period, and the designed catalog storage structure and naming mode are convenient for the user to inquire and manage files; when the space of the hard disk is insufficient, early files can be automatically cleaned, and the real-time performance and reliability of other tasks can be ensured while the file management function is met.
It should be emphasized that the examples described herein are illustrative rather than limiting, and therefore the invention includes, but is not limited to, the examples described in the detailed description, as other embodiments derived from the technical solutions of the invention by a person skilled in the art are equally within the scope of the invention.

Claims (9)

1. A file management method based on Loongson 2k1000 and a domestic road operating system is characterized in that: including RTC timekeeping methods, storage directory and file name construction methods, data storage methods and file management methods,
the RTC time keeping method comprises the following steps:
step 1.1, setting a structure of RTC information data;
wherein, RTC information data structure includes: millisecond value, second, minute, time, day, month, year, RTC valid flag and UTC valid count;
step 1.2, initializing an RTC;
initializing an RTC information data structure to 0 minutes and 0 seconds in 1 month and 1 day of 2000, and clearing 0 by an RTC valid flag and UTC valid count;
step 1.3, correcting the RTC through an RMC message of the guard receiver;
and step 1.4, reading RTC information data after RTC correction.
2. The file management method based on Loongson 2k1000 and domestic road operating system according to claim 1, wherein the file management method is characterized by comprising the following steps: the step 1.3 comprises the following steps:
step 1.3.1, subtracting the UTC time of the RMC message of the previous frame of the guard receiver from the UTC time of the RMC message of the current guard receiver, if the difference is 1s, adding 1 to the UTC effective count, otherwise clearing 0 to the UTC effective count;
step 1.3.2, when the UTC effective count is more than or equal to 5, if the current value of the RTC effective mark is 0, carrying out steps 1.3.3 to 1.3.5;
step 1.3.3, setting the RTC valid flag to 1;
step 1.3.4, correcting the RTC_INFO structure body by utilizing UTC date and time;
step 1.3.5, calling the RTC driver to write the date and time in the RTC_INFO into the RTC.
3. The file management method based on Loongson 2k1000 and domestic road operating system according to claim 1, wherein the file management method is characterized by comprising the following steps: the step 1.4 comprises the following steps:
step 1.4.1, calling an RTC driver to read the current date and time into an RTC_INFO structure body;
step 1.4.2, generating a date character string by using the RTC date, wherein the format is YYYMMDD, and the number of data bits is not enough to be 0;
step 1.4.3, generating a time character string by using the RTC time, wherein the format is HMMSS, and the data bit number is less than 0.
4. The file management method based on Loongson 2k1000 and domestic road operating system according to claim 1, wherein the file management method is characterized by comprising the following steps: the method for constructing the storage directory and the file name comprises the following steps:
step 2.1, constructing a data type directory, wherein the data type directory is a primary directory, and the format is as follows: the data type name, the first-level catalogue stores all the voyage data files of the same data type;
step 2.2, constructing a voyage catalog, wherein the voyage catalog is a secondary catalog, and the format is as follows: the data type name_date_time, the secondary catalog is created according to the date and time of the RTC and the effectiveness thereof after each time of starting up, and is used for storing the data file of the voyage;
and 2.3, generating a storage file under the constructed voyage list.
5. The file management method based on Loongson 2k1000 and domestic road operating system according to claim 1, wherein the file management method is characterized by comprising the following steps: the data storage method comprises the following steps:
step 3.1, judging whether the current message queue has data, if so, performing step 3.2, otherwise, performing step 3.3;
step 3.2, taking out one data from the head of the team, reserving the data as a message, and storing the message into a corresponding data type file;
and 3.3, ending the processing of the current message queue, and switching to the processing of the next message queue.
6. The file management method based on Loongson 2k1000 and domestic road operating system according to claim 1, wherein the file management method is characterized by comprising the following steps: the file management method comprises the following steps: the method comprises the steps of constructing a file management task running mechanism, constructing a catalog creation function and a file cleaning function.
7. The file management method based on Loongson 2k1000 and domestic road operating system according to claim 6, wherein the file management method is characterized by comprising the following steps: the construction of the file management task operation mechanism comprises the following steps:
step 4.1.1, the function of setting file management tasks comprises: creating a catalog and cleaning a file;
step 4.1.2, setting the priority of the file management task;
step 4.1.3, setting the running period of the file management task;
the starting time of the operation is T0, and if the time consumption of the task operation is not more than 1s, the next time of the task operation is T0+1s; and the starting time of the operation is T0, and if the time consumption of the task operation exceeds 1s, the next task operation is started immediately after the task is ended.
8. The file management method based on Loongson 2k1000 and domestic road operating system according to claim 1, wherein the file management method is characterized by comprising the following steps: the build catalog creation function includes the steps of:
step 4.2.1, inquiring an RTC valid flag, if the RTC valid flag is valid, performing step 4.2.2, otherwise, ending;
step 4.2.2, entering each data type catalog, judging whether the voyage catalog is created or not, ending if the voyage catalog is created, otherwise, carrying out step 4.2.3;
and 4.2.3, reading the date and time of the RTC information data, creating a voyage directory and a first data file of the voyage directory, and creating a flag 1 in the voyage directory.
9. The file management method based on Loongson 2k1000 and domestic road operating system according to claim 1, wherein the file management method is characterized by comprising the following steps: the file cleaning function comprises the following steps:
step 4.3.1, inquiring the residual space of the current hard disk, if the residual space of the current hard disk is smaller than the warning value, performing step 4.3.2, otherwise, ending;
step 4.3.2, traversing all the navigation directory names under the current data type directory, and deleting the navigation directory with the smallest character string comparison result;
and 4.3.3, judging whether other data type catalogues are not cleaned, returning to 4.3.2 if the other data type catalogues are not cleaned, and ending if the other data type catalogues are not cleaned.
CN202310103741.1A 2023-02-13 2023-02-13 File management method based on Loongson 2k1000 and domestic channel operating system Pending CN116126788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310103741.1A CN116126788A (en) 2023-02-13 2023-02-13 File management method based on Loongson 2k1000 and domestic channel operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310103741.1A CN116126788A (en) 2023-02-13 2023-02-13 File management method based on Loongson 2k1000 and domestic channel operating system

Publications (1)

Publication Number Publication Date
CN116126788A true CN116126788A (en) 2023-05-16

Family

ID=86309854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310103741.1A Pending CN116126788A (en) 2023-02-13 2023-02-13 File management method based on Loongson 2k1000 and domestic channel operating system

Country Status (1)

Country Link
CN (1) CN116126788A (en)

Similar Documents

Publication Publication Date Title
CN109960686B (en) Log processing method and device for database
CN109491859B (en) Collection method for container logs in Kubernetes cluster
JP5301154B2 (en) Multi-format time-based timeline random access for file recording and playback
US7827299B2 (en) Transitioning between historical and real time data streams in the processing of data change messages
US8250033B1 (en) Replication of a data set using differential snapshots
US20090113435A1 (en) Integrated backup with calendar
US11210229B2 (en) Method, device and computer program product for data writing
US20070239949A1 (en) Method and apparatus for reclaiming space in memory
CN103092700A (en) Internal memory cleaning method and cleaning device and terminal device
JPH11275177A (en) System for log recording in transmitting device
US20170371581A1 (en) Opportunistic Handling of Freed Data in Data De-Duplication
US9785641B2 (en) Reducing a backup time of a backup of data files
US20090204648A1 (en) Tracking metadata for files to automate selective backup of applications and their associated data
CN106991177B (en) Lossless acquisition method and system for real-time logs in distributed environment
CN113076220A (en) Data processing method and device, electronic equipment and computer readable medium
US6483901B1 (en) Non-volatile memory platform for digital answering systems
CN116126788A (en) File management method based on Loongson 2k1000 and domestic channel operating system
CN111858393B (en) Memory page management method, memory page management device, medium and electronic equipment
US6871291B2 (en) Method for recording power failure time of a computer system
CN111143236A (en) Memory mapping implementation queue and data reading and writing method thereof
CN115328696A (en) Data backup method in database
CN112181311B (en) Cyclic recording method, equipment and storage medium
CN112181277B (en) Data storage space management method and device, storage medium and electronic equipment
CN115658382A (en) Incremental object backup recovery method and system for object storage and storage medium
CN114443339A (en) Error log recording method based on double-timestamp circular queue

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination