Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for reducing disk fragments

A disk fragmentation and disk technology, which is applied in the field of reducing disk fragmentation by using disk pre-allocation technology, can solve problems such as affecting the service life of the disk, cannot be subdivided, and cannot fully utilize the space information of the disk. Affect and solve the effect of the sharp drop in the writing speed

Inactive Publication Date: 2013-05-29
WUXI GANGWAN NETWORK TECH
View PDF2 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the process of multi-channel video recording, NVR will frequently generate and delete files, resulting in a large number of disk fragments and affecting the service life of the disk; traditional NVR uses the way of packaging video files, and a lot of video files will be generated on the disk, while When the disk is full, the method of deleting video files will be used, so that many disk fragments will be generated after repeated cycles, and the disk space will be reduced; traditional NVR can only choose which disks will be used as storage areas, and cannot be subdivided into certain disks. blocks, and cannot be subdivided into a certain channel assigned to a certain block of a certain disk as storage space, and cannot make full use of the space information of the disk.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for reducing disk fragments

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0015] A method for reducing disk fragmentation by disk pre-allocation technology in an NVR, comprising the steps of:

[0016] Step 1. Divide the hard disk into file blocks of a fixed size according to user configuration, initialize the file and write the file name and corresponding information into the database;

[0017] Step 2. Keep the linked list of the file usage status in the memory, and read it from the database every time the initialization is started;

[0018] Step 3. When a video needs to be recorded, find a suitable file from the file link list and start recording video data; when a certain video needs to be recorded, the recording thread queries the currently unused file from the file link list and marks it The file is in the state of writing and starts to record (it is locked by means of critical sections during access to the file linked list to ensure that only one thread can access it at the same time). If there is no unused file in the linked list, select the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for reducing disk fragments. The method comprises: a certain amount of files are allocated to a disk in advance when a network video recorder (NVR) is used for the first time, file information is written in a database, when video recording is needed, a present available file is searched in the database, and then data are written in the present available file; according to the method for reducing the disk fragments through disk pre-allocation technology, integrity and consistency of the data are kept by modifying database records of corresponding camera information of file names in video files without modifying file information in a file allocation table (FAT).

Description

technical field [0001] The invention relates to a method for reducing disk fragments, in particular to a method for reducing disk fragments by using disk pre-allocation technology. Background technique [0002] In the process of multi-channel video recording, NVR will frequently generate and delete files, resulting in a large number of disk fragments and affecting the service life of the disk; traditional NVR uses the way of packaging video files, and a lot of video files will be generated on the disk, while When the disk is full, the method of deleting video files will be used, so that many disk fragments will be generated after repeated cycles, and the disk space will be reduced; traditional NVR can only choose which disks will be used as storage areas, and cannot be subdivided into certain disks. block, and it cannot be subdivided into a certain channel assigned to a certain block of a certain disk as storage space, and the space information of the disk cannot be fully ut...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 施长华
Owner WUXI GANGWAN NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products