Log recording method and apparatus

A recording method and technology of a recording device, applied in the field of log management

Active Publication Date: 2017-07-14
HAIER YOUJIA INTELLIGENT TECH BEIJING CO LTD
View PDF18 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention aims

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
  • Log recording method and apparatus
  • Log recording method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. 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. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0033] Regardless of whether it is a single-threaded or multi-threaded log file writing method, there is a problem of low system processing efficiency. In order to so...

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 log recording method and apparatus, relates to the field of log management, and solves the problem of poor system processing capability. The method comprises the steps of writing a task allocation cache queue group into a log file, wherein the cache queue group comprises at least two cache queues; selecting at least one cache queue in the cache queue group as a current cache queue; and writing log data in the current cache queue into the log file in a disk, and obtaining to-be-written log data by the cache queues, except the current cache queue, in the cache queue group. The technical scheme provided by the log recording method and apparatus is suitable for a high-concurrent log reading/writing environment, and realizes efficient and parallel log data cache writing.

Description

technical field [0001] The invention relates to the field of log management, in particular to a log recording method and device. Background technique [0002] In daily development, log records are essential. Writing logs to the same file can only be written by a single thread. Usually, a simple lock (lock) is used to ensure that only one thread writes to the same log file at the current moment, thereby ensuring the correctness of the log output. But the disadvantage of this method is also obvious, that is, the efficiency of the system will be very poor in the case of high concurrency. It is easy to cause system performance bottlenecks and reduce system processing capabilities. [0003] Even if the multi-threaded processing method is used to avoid the decline of system processing capacity, when multi-threaded log records are written, because the log records need to interact with disk I / O, the time for a single thread to occupy the lock will be prolonged, resulting in a larg...

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): G06F17/30
CPCG06F16/172G06F16/1815
Inventor 唐永将
Owner HAIER YOUJIA INTELLIGENT TECH BEIJING 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