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

Equipment and method for preventing buffer overflow

A kind of equipment and cache technology, which is applied in the direction of instruments, electrical digital data processing, calculation, etc., and can solve the problem of buffer space overflow

Active Publication Date: 2014-09-17
BC P INC CHINA NAT PETROLEUM CORP +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this approach can still overflow the cache space in the case of rapid growth of temporary files

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
  • Equipment and method for preventing buffer overflow
  • Equipment and method for preventing buffer overflow

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[0024] Usually, the operating system allocates a buffer of a predetermined size in the local file system as a storage space for the application program to store its intermediate data, which is called a local buffer here. The device and method for preventing buffer overflow of the present invention can be implemented as a background program of a computer system, which monitors the access and use of the local buffer. When a write operation to a temporary file in the local buffer is detected, a threshold of the remaining space of the local buffer is calculated based on the size of the temporary file, and when it is determined that the actual remaining space of the local buffer is smaller than the threshold of the remaining space , migrate the temporary files in the local buffer to the predetermined target directory in the network file system, and establish a link...

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 equipment and a method for preventing buffer overflow. The equipment comprises: a migration determining module used to calculate a threshold of a free space in a local buffer area and calculate a actual free space in the current local buffer area, wherein the threshold of the free space is compared with the actual free space, and if the threshold of free space is greater than the actual free space, then the need to carry out temporary files migration is determined; a file migration module, by which the temporary files are migrated to a predetermined target directory, and soft links linking to the migrated temporary files are established in the directory of the local buffer area; and a buffer monitoring module which monitors operation on temporary files in the local buffer area by application tasks, when an writing operation upon the temporary files in the local buffer area is detected the migration determining module is controlled to determine whether to carry out temporary file migration or not, if the need to carry out temporary file migration is determined, then the file migration module is controlled to carry out temporary file migration.

Description

technical field [0001] The present application relates to a device and method for preventing buffer overflow, in particular to a device and method for preventing buffer overflow in a UNIX or Linux system by predicting possible buffer system overflow and migrating temporary files to a network file system. Background technique [0002] In various industries, computers are used for data processing and calculation, and in many cases, the amount of data used for processing and calculation is quite large. For example, in geophysical exploration, it is necessary to collect a large amount of raw data in the field, and then use professional processing software to calculate these raw data according to the address characteristics of different regions. Due to the large amount of data to be processed and the large amount of calculation, especially when processing 3D seismic data, a large amount of intermediate data will be generated. In the UNIX or Linux system environment, the specifie...

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 Patents(China)
IPC IPC(8): G06F11/00
Inventor 汤成兵严飞邓亚力田伟
Owner BC P INC CHINA NAT PETROLEUM CORP
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