Progress starting method, kernel and progress

A process startup and process technology, applied in the process field, can solve problems such as large impact, lack of mechanism, and large causes, and achieve the effect of good versatility, no impact on system performance, and simple process

Active Publication Date: 2012-06-20
NEW H3C TECH CO LTD
View PDF3 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The disadvantage of the above upgrade process is that the impact of the process upgrade is too great, which may cause greater turbulence
[0007] In practical applications, BGP can use non-stop routing (NSR, Non-Stopping Routing) technology to realize the process upgrade of TCP connection without interruption, but the im...

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
  • Progress starting method, kernel and progress
  • Progress starting method, kernel and progress
  • Progress starting method, kernel and progress

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0043] figure 1 The flowchart of the process upgrade method provided by the embodiment of the present invention, such as figure 1 As shown, the specific steps are as follows:

[0044] Step 100: Add three system call interfaces on the kernel in advance: keep connection interface, acquire handle interface and release interface.

[0045] For example: the connection interface can be int holdFd (int fd), the handle interface can be int getFd (int key); the release interface can be int putFd (int key).

[0046] Step 101: before the old process exits, the old process invokes the keep connection interface, and sends the FD corresponding to each communication connection to be kept to the kernel, and for each FD, the kernel increases the reference count of the file object corresponding to the FD, and Assign a unique index to the FD, perform ...

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 progress starting method, a kernel and a progress. The progress starting method comprises the following steps: before quitting the progress, the kernel receives a connection keeping request carrying file descriptor (FD), sent by the progress; for each FD carried in the connection keeping request, the kernel increases a reference count of a file object corresponding to the FD, puts the file object in a cache, and returns the position information of the cache to the progress, so that the progress puts a corresponding relation between the position information of the cache and communication connection identification information pointed by the FD in a pre-set storage area; and, in the process of starting the progress, the kernel receives an FD obtaining request carrying the position information of the cache, sent by the progress, reads various file objects from the cache, distributes the FDs to various file objects, and returns the FDs to the progress. According to the progress starting method, the kernel and the progress disclosed by the invention, uninterrupted communication connection in the process of upgrading or restarting the progress is realized; furthermore, the processing complexity is reduced.

Description

technical field [0001] The invention relates to the technical field of processes, in particular to a process starting method, a kernel and a process. Background technique [0002] On operating systems using Unix / Linux-style kernels, a large number of system services run in user mode in Daemon mode. Process upgrades instead of complete machine restarts can provide better service capabilities. [0003] Processes and processes and kernels communicate in various ways, such as: processes on the same machine can communicate through inter-process communication (IPC, Inter process Communication), and processes on different machines can communicate through transmission control protocol (TCP). , Transmission Control Protocol) / User Datagram Protocol (UDP, User Datagram Protocol) and other mechanisms to communicate, and the process and the kernel can communicate through the netlink socket. Under the full refinement of the Unix / Linux kernel, these communication entities are abstracted ...

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/48G06F9/46
CPCG06F9/48G06F9/4843
Inventor 魏巍
Owner NEW H3C TECH 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