A logging method and device

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

Active Publication Date: 2021-03-12
HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD
View PDF18 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention aims to solve the problems described above

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
  • A logging method and device
  • A logging method and device

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 device. It involves the field of log management; solves the problem of low system processing capacity. The method includes: assigning a cache queue group to a log file writing task, the cache queue group comprising at least two cache queues; selecting at least one cache queue in the cache queue group as a current cache queue; using the current cache queue The log data in is written to the log file in the disk, and at the same time, the cache queues in the cache queue group except the current cache queue obtain the log data to be written. The technical scheme provided by the invention is suitable for a high-concurrency log reading and 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/18G06F16/172
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