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

Thread distribution method and system of distributed type file system

A technology of distributed file and allocation method, applied in the direction of resource allocation, program control design, multi-program device, etc., can solve the problems of system performance degradation, low system processing efficiency, insufficient utilization of resources, etc.

Inactive Publication Date: 2016-03-23
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, multi-threaded messages in a distributed file system are usually distributed using a hash algorithm based on file descriptors. This algorithm has a flaw, that is, it is easy for all read and write request tasks to be sent to one or several threads. Forwarding, especially when the file descriptors are not continuous, in extreme cases, all files will be allocated to one thread, while other threads are always idle, so that all read and write request tasks are backlogged into a thread team, resulting in many Requests cannot be processed for a long time, resulting in low system processing efficiency; at the same time, all read and write request tasks are backlogged in a thread team, making system resources not fully utilized, which can easily lead to a sharp decline in the performance of the entire system

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
  • Thread distribution method and system of distributed type file system
  • Thread distribution method and system of distributed type file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0046] The core of the present invention is to provide a thread allocation method and system of a distributed file system, so as to achieve the purpose of balancing the number of requests processed by each thread in a multi-thread pool, thereby ensuring the processing efficiency and performance stability of the system.

[0047] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be f...

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 thread distribution method and system of a distributed type file system. The method includes the steps of obtaining a reading-writing request carrying a file descriptor; judging whether a thread corresponding to the file descriptor exits or not; if yes, considering that the request is not the first reading-writing request corresponding to the file descriptor and a corresponding thread has already been distributed for the request, and distributing the reading-writing request to the corresponding thread; if not, considering that the request is the first reading-writing request corresponding to the file descriptor, distributing an appropriate thread for the request from a multi-thread pool, and distributing the reading-writing request to the thread with the fewest management files in a balance chain table. It can be seen that the aims of balancing the numbers of requests processed by all the threads in the multi-thread pool and ensuring the high processing efficiency and performance stability of the system are achieved.

Description

technical field [0001] The invention relates to the technical field of thread allocation, in particular to a thread allocation method and system of a distributed file system. Background technique [0002] At present, multi-threaded messages in a distributed file system are usually distributed using a hash algorithm based on file descriptors. This algorithm has a flaw, that is, it is easy for all read and write request tasks to be sent to one or several threads. Forwarding, especially when the file descriptors are not continuous, in extreme cases, all files will be allocated to one thread, while other threads are always idle, so that all read and write request tasks are backlogged into a thread team, resulting in many Requests cannot be processed for a long time, resulting in low system processing efficiency; at the same time, all read and write request tasks are backlogged into a thread team, which makes system resources not fully utilized and easily leads to a sharp decline...

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): G06F9/50
CPCG06F9/5083G06F9/5022G06F2209/5018
Inventor 吕强
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
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