Unlock instant, AI-driven research and patent intelligence for your innovation.

RAID5 data writing method and device for multi-core processor

A multi-core processor, data writing technology, applied in machine execution devices, electrical digital data processing, instruments, etc., can solve problems such as the inability to fully utilize the performance advantages of high-performance multi-core processors

Active Publication Date: 2010-09-22
UNITED INFORMATION TECH +1
View PDF0 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A single thread can only run in a single CPU, so it cannot take advantage of the performance advantages of high-performance multi-core processors

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
  • RAID5 data writing method and device for multi-core processor
  • RAID5 data writing method and device for multi-core processor
  • RAID5 data writing method and device for multi-core processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further elaborated below in conjunction with the accompanying drawings.

[0031] figure 2 The RAID5 write data process for multi-core processor under the Linux operating system that the embodiment of the present invention proposes is shown, comprises the steps:

[0032] Step S201: When creating or activating a raid5 disk array, obtain the number of CPUs in the multi-core processor. This step is optional.

[0033] Step S202: Create more than one md_raid5 processing thread according to the number of CPUs, and assign each md_raid5 processing thread to a CPU of the multi-core processor. The total number of processing threads is less than or equal to the number of CPUs.

[0034] Assuming that the number of multi-core processor CPUs is n, and n is a natural number, you can create 2 to n md_raid5 processing threads, and run 0 to 1 md_raid5 process...

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 an RAID5 data writing method for a multi-core processor, which comprises the following steps of: creating more than one md raid5 processing thread, and assigning each md raid5 processing thread to one CPU of the multicore processor respectively; receiving request data and adding the request data into a data linked list to be processed; and performing parallel processing on the data to be processed in the data linked list by a plurality of md raid5 processing threads. The invention also discloses an RAID5 data writing device. In the scheme, the more than one md raid5 processing thread is created and each md raid5 processing thread is assigned to one CPU of the multi-core processor respectively, so that a plurality of CPUs can write in the data parallelly and the performance advantages of the high-performance multi-core processor can be exerted.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a disk array storage technology, in particular to a RAID5 data writing method and device for a multi-core processor. Background technique [0002] Redundant Array of Independent Disk (RAID) technology combines multiple separate physical hard disks into a logical hard disk in a specific way, thereby improving the read-write performance and data security of the hard disk. According to different combinations, it can be divided into different RAID levels. Commonly used RAID levels are: 0, 1, 2, 3, 4, 5, 6, 01, 10, etc. [0003] RAID 5 uses the check digit of the data to ensure data security, but it does not store the check digit of the data on a single hard disk, but stores the check digit of the data segment alternately on each hard disk. The storage structure of Raid5 data in the disk is as follows: figure 1 shown. figure 1 shows a disk array composed of four disks, each 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06G06F9/312G06F9/38
Inventor 金振成
Owner UNITED INFORMATION TECH