Data writing method and device

A data writing and data block technology, applied in the field of communication, can solve the problems of reducing the efficiency of data writing by node devices and consuming a lot of time, and achieve the effect of speeding up and improving efficiency.

Pending Publication Date: 2021-11-26
NEW H3C TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the disk is less occupied, the node device can quickly find free data blocks from the disk and complete the writing. If the disk is more occupied, th

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
  • Data writing method and device
  • Data writing method and device
  • Data writing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. Embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification.

[0046] This application provides a data writing method, which is applied to node devices, such as figure 1 shown, including:

[0047] S100. If the remaining space of the disk is less than a preset ratio, determine an idle data block in an idle state according to a bitmap corresponding to the disk.

[0048] The structure of the distributed file system 1, such as figure 2 As shown, several node devices and switching devices may be included, and the clients communicate and connect to the distributed file system through a network or a direct...

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 provides a data writing method and device, and relates to the technical field of communication. The data writing method is applied to node equipment and comprises the steps: if the residual space of a disk is smaller than a preset proportion, determining idle data blocks in an idle state according to a bit map corresponding to the disk; creating a residual space linked list of the disk, wherein indexes of bits of the free data blocks are recorded in the residual space linked list; determining a target data block from the residual space linked list corresponding to the target disk according to a write-in request sent by the client; and writing the to-be-written data carried in the write-in request into the target data block. Through the method, the writing efficiency of the node equipment can be improved.

Description

technical field [0001] This description relates to the field of communication technologies, and in particular to a data writing method and device. Background technique [0002] With the development of high-definition video, image processing, video surveillance and other technologies, the data that users need to store is becoming larger and larger, and the user's requirements for data read and write performance are also increasing simultaneously. [0003] In a node device suitable for a file system, the smallest operable unit of a disk is a data block, and the occupancy of each data block can be correspondingly marked in the form of a bit (bit) bitmap. For example, when a certain bit in the bitmap is When marked as "0", it indicates that the data block corresponding to this bit is in an idle state; when a certain bit in the bitmap is marked as "1", it indicates that the data block corresponding to this bit is occupied state. When the disk is less occupied, the node device c...

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
IPC IPC(8): G06F16/16G06F16/172G06F3/06
CPCG06F16/16G06F16/172G06F3/0604G06F3/0622G06F3/0676
Inventor 刘浩
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products