CN106886464A - A kind of method and system for improving server process concurrent services capability - Google Patents
A kind of method and system for improving server process concurrent services capability Download PDFInfo
- Publication number
- CN106886464A CN106886464A CN201510940270.5A CN201510940270A CN106886464A CN 106886464 A CN106886464 A CN 106886464A CN 201510940270 A CN201510940270 A CN 201510940270A CN 106886464 A CN106886464 A CN 106886464A
- Authority
- CN
- China
- Prior art keywords
- data
- server
- function
- processing server
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of method and system for improving server process concurrent services capability, the method includes:Processing server sends request of data to data server;Data server returns to an object;Processing server is according to the object registration function for returning;Function waits the return value of data server, while processing server processes other requests;Data server exports return value to function;Function is to processing server output valve;The output valve of processing server receiver function.Technical solution of the present invention can give full play to the disposal ability of CPU, coordinate high-speed CPU and at a slow speed the collaboration step between I/O equipment, it is to avoid the invalid wait of server and unnecessary expense, effectively improve the operational efficiency of server.
Description
Technical field
It is more particularly to a kind of to improve server process voice and packet data concurrent service the present invention relates to IT (information technology) field
The method and system of ability.
Background technology
With the development and the reinforcement of social communication of IT technologies, the mankind are completely into the information age.Enterprise
Industry and the personal information data for generating flood tide, and process on the internet, on LAN daily number with
The information datas of hundred million meters, countless server is being processed and computing.The operational capability of server, increasingly
Valuable source and basis as development.The expansion of the IT business scale such as telecommunications, internet, electric power, IDC
The innovation of big and new business, the operational capability to server is persistently lifted, it is desirable to which server deposit is enough
Operational capability tackles the rapid growth of possible amount of calculation.Meanwhile, cloud computing, big data, social activity, shifting
The focuses such as dynamic internet constantly propose requirement higher to the operational capability of server, have promoted server operation
The General Promotion of ability.
In order to solve big data quantity process task, high concurrent request, basic scheme concentrates on following several:
1) CPU concurrent computation abilities are improved
Why server can simultaneously process multiple requests, be that operating system is set more by the fluid systems that perform
Meter allows multiple tasks in turn using system resource, and these resources include CPU, internal memory and I/O.
Here I/O refers mainly to magnetic disc i/o and network I/O.Specifically, exactly take multi-process & multithreadings,
Process switching is reduced, is reduced using unnecessary lock, consideration process priority and is paid close attention to CPU usage
Method improves the utilization rate of system resource.The shortcoming of this method is:When subprocess is created by parent process
Afterwards, the establishment of process is called using fork () system, it is necessary to expend certain expense, if this expense too frequency
It is numerous, performance may be influenceed.
2) optimization system is called
System calls the switching for being related to process from User space to kernel state, causes certain internal memory to exchange, this
It is context switching to a certain extent, so the expense that system is called has been generally acknowledged that costly.Reduce
Unnecessary system is called, and is also the one side of server performance optimization.The shortcoming of this method is:
When process needs to operate hardware adaptor, it is necessary to be switched to kernel state, at this moment it needs to possess
More power manipulate whole computer.
3) random memory is reduced
, it is necessary to substantial amounts of internal memory in the course of work of server so that the distribution and release work of internal memory are particularly
It is important.Can be by improving Data Structure and Algorithm duplication degree come the appropriate internal memory for reducing intermediate temporary variable point
With and the data duplication time, and server also using respective strategy to improve efficiency in itself.
Meanwhile, the service efficiency of internal memory can also be improved using shared drive.Shared drive refers in multiprocessor
Computer system in, can by different central processing units (CPU) access Large Copacity internal memory, it is also possible to
Shared by different processes, be very fast process communication mode.The shortcoming of this method is:Clothes can be influenceed
The travelling speed of business device.
4) persistently connection is used
Persistently connection is also connected for long, and itself is a kind of common mode of TCP communication, i.e., in a TCP
Many divided datas are persistently sent in connection without disconnecting.From in terms of performance perspective, the behaviour of TCP connections is set up
It is in itself a no small expense, in the case of permission, connection number of times is fewer, is more conducive to performance
Lifting.The shortcoming of this method is:If the Connection Time is long, resource inefficiencies may be caused to occupy, tieed up
A large amount of idle process are held, server performance is influenceed.
5) I/O models are improved
I/O operation is divided into many types, such as internal memory I/O, network I/O, magnetic disc i/o according to the difference of equipment.
For network I/O and magnetic disc i/o, their speed is many slowly, in order to improve the speed of network i/O, needs
Want core system to call to complete, this causes that CPU has to waste the precious time wait I/O at a slow speed
Operation.Change various I/O models, allow high-speed CPU and I/O equipment preferably co-ordination at a slow speed, can
Effectively improve server efficiency.
The shortcoming of this method is:Treatment different size, different types of file are, it is necessary to different I/O
Model matches.
6) hardware environment is improved
Hardware environment is improved, improves the hardware configuration of server, lift the disposal ability of website.The method is same
When also bring along the rising of cost.
In order to improve the operational capability of server, while avoiding the shortcoming of the above method, it is necessary to improve server
Concurrency policies, allowing I/O operation and CPU to calculate overlap of trying one's best is carried out, it is to avoid the server substantial amounts of free time is even
Connect, for active connection provides enough computing capabilitys, unnecessary expense is reduced, to improve the fortune of server
Calculation ability.
The content of the invention
The present invention provides a kind of method and system for improving server process concurrent services capability, can fully send out
The disposal ability of CPU is waved, coordinates high-speed CPU and at a slow speed the collaboration step between I/O equipment, it is to avoid clothes
The invalid wait of business device and unnecessary expense, reduce persistently connection, reduce what server handling ability was upgraded
Cost, effectively improves the operational efficiency of server.
Technical scheme provides a kind of method for improving server process concurrent services capability, including
Following steps:
Processing server sends request of data to data server;
Data server returns to an object;
Processing server is according to the object registration function for returning;
Function waits the return value of data server, while processing server processes other requests;
Data server exports return value to function;
Function is to processing server output valve;
The output valve of processing server receiver function.
Further, a processing server correspondence is no less than a data server;
One data server correspondence is no less than a processing server.
Further, the data server according to the request of data of processing server come design object, it is described
Object is associated with request of data.
Further, the function of the processing server registration is associated with request of data.
Further, processing server possesses and is submitted to no less than a data to no less than a data server
The operational capability of request;
Data server possesses basis and produces and return not no less than a request of data for processing server
Less than an operational capability for object;
Processing server possesses according to the object returned no less than a request of data to register no less than one
The operational capability of individual function.
Further, the function is further included to processing server output valve:
The function receives the return value of data server as input value;
The function produces output valve according to the input value;
The output valve of the processing server receiver function as the request of data return value.
Further, the data that the output valve alignment processing server of the function is asked.
Technical scheme additionally provides a kind of system for improving server process concurrent services capability, bag
Include:Processing server and data server, wherein,
Processing server is used to send request of data, according to the object registration function for returning, and receiver function
Return value as request of data return value;
Data server is used for according to request of data returning an object value, and the return value that output data is asked.
Further, the return value of the request of data of the data server output is used as the defeated of the function
Enter.
Further, the function produces the output valve of function according to the return value of data processor;
The output valve of the function as the request of data of processing server return value.
Technical solution of the present invention devises work of the special object and function to adjust between I/O equipment and CPU
Make step, can give full play to the disposal ability of CPU, coordinate high-speed CPU and at a slow speed between I/O equipment
Collaboration step, it is to avoid the invalid wait of server and unnecessary expense, reduce persistently connection, reduce clothes
The cost of business device disposal ability upgrading, effectively improves the operational efficiency of server.
Other features and advantages of the present invention will illustrate in the following description, also, partly from explanation
Become apparent in book, or understood by implementing the present invention.The purpose of the present invention and other advantages can
Realize and obtain by specifically noted structure in the specification, claims and accompanying drawing write
.
Below by drawings and Examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, with this hair
Bright embodiment is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of raising server process concurrent services capability in the embodiment of the present invention one;
Fig. 2 is the system construction drawing of raising server process concurrent services capability in the embodiment of the present invention one.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein
Preferred embodiment is merely to illustrate and explain the present invention, and is not intended to limit the present invention.
Fig. 1 is the method flow diagram of raising server process concurrent services capability in the embodiment of the present invention one.Such as
Shown in Fig. 1, the flow is comprised the following steps:
Step 101, processing server send request of data to data server.
One processing server correspondence is no less than a data server;
One data server correspondence is no less than a processing server;
Processing server possesses to the fortune submitted to no less than data server no less than a request of data
Calculation ability.
Step 102, data server return to an object.
The data server according to the request of data of processing server come design object, the object and data
Request is associated;
Data server possesses basis and produces and return not no less than a request of data for processing server
Less than an operational capability for object.
Step 103, processing server are according to the object registration function for returning.
The function of the processing server registration is associated with request of data;
Processing server possesses according to the object returned no less than a request of data to register no less than one
The operational capability of individual function.
Step 104, function wait the return value of data server, while processing server processes other requests.
Step 105, data server export return value to function.
Step 106, function are to processing server output valve.
The function receives the return value of data server as input value;
The function produces output valve according to the input value;
The output valve of the processing server receiver function as the request of data return value.
Step 107, the output valve of processing server receiver function.
The data that the output valve alignment processing server of the function is asked.
In order to realize the flow of above-mentioned code server deployment, the present embodiment additionally provides a kind of raising server
The system for processing concurrent services capability, Fig. 2 is raising server process voice and packet data concurrent service in the embodiment of the present invention one
The system construction drawing of ability.As shown in Fig. 2 the system includes:Processing server 201 and data server
202, wherein,
Processing server is used to send request of data, according to the object registration function for returning, and receiver function
Return value as request of data return value;
Data server is used for according to request of data returning an object value, and the return value that output data is asked.
Further, the return value of the request of data of the data server output is used as the defeated of the function
Enter;
The function produces the output valve of function according to the return value of data processor;
The output valve of the function as the request of data of processing server return value.
Technical solution of the present invention employs work of the special object and function to adjust between I/O equipment and CPU
Make step, can give full play to the disposal ability of CPU, coordinate high-speed CPU and at a slow speed between I/O equipment
Collaboration step, it is to avoid the invalid wait of server and unnecessary expense, reduce persistently connection, reduce clothes
The cost of business device disposal ability upgrading, effectively improves the operational efficiency of server.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot
Close the form of the embodiment in terms of software and hardware.And, the present invention can be used and wherein wrapped at one or more
Containing computer usable program code computer-usable storage medium (including but not limited to magnetic disk storage and
Optical memory etc.) on implement computer program product form.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions realize flow chart and
/ or block diagram in each flow and/or the flow in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions to all-purpose computer, special-purpose computer, insertion can be provided
The processor of formula processor or other programmable data processing devices is producing a machine so that by calculating
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device of the function of being specified in individual flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set
In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this to the present invention
The spirit and scope of invention.So, if these modifications of the invention and modification belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. it is a kind of improve server process concurrent services capability method, it is characterised in that including following step
Suddenly:
Processing server sends request of data to data server;
Data server returns to an object;
Processing server is according to the object registration function for returning;
Function waits the return value of data server, while processing server processes other requests;
Data server exports return value to function;
Function is to processing server output valve;
The output valve of processing server receiver function.
2. method according to claim 1, it is characterised in that further include:
One processing server correspondence is no less than a data server;
One data server correspondence is no less than a processing server.
3. method according to claim 1, it is characterised in that the data server is according to treatment
The request of data of server carrys out design object, and the object is associated with request of data.
4. method according to claim 1, it is characterised in that further include:
The function of the processing server registration is associated with request of data.
5. method according to claim 1, it is characterised in that further include:
Processing server possesses to the fortune submitted to no less than data server no less than a request of data
Calculation ability;
Data server possesses basis and produces and return not no less than a request of data for processing server
Less than an operational capability for object;
Processing server possesses according to the object returned no less than a request of data to register no less than one
The operational capability of individual function.
6. method according to claim 1, it is characterised in that the function is defeated to processing server
Go out value, further include:
The function receives the return value of data server as input value;
The function produces output valve according to the input value;
The output valve of the processing server receiver function as the request of data return value.
7. the method according to claim 1 or 6, it is characterised in that further include:
The data that the output valve alignment processing server of the function is asked.
8. it is a kind of improve server process concurrent services capability system, it is characterised in that including:Treatment
Server and data server, wherein,
Processing server is used to send request of data, according to the object registration function for returning, and receiver function
Return value as request of data return value;
Data server is used for according to request of data returning an object value, and the return value that output data is asked.
9. system according to claim 8, it is characterised in that the number of the data server output
According to request return value as the function input.
10. the system according to claim 8 and 9, it is characterised in that further include:
The function produces the output valve of function according to the return value of data processor;
The output valve of the function as the request of data of processing server return value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510940270.5A CN106886464A (en) | 2015-12-16 | 2015-12-16 | A kind of method and system for improving server process concurrent services capability |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510940270.5A CN106886464A (en) | 2015-12-16 | 2015-12-16 | A kind of method and system for improving server process concurrent services capability |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106886464A true CN106886464A (en) | 2017-06-23 |
Family
ID=59175183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510940270.5A Pending CN106886464A (en) | 2015-12-16 | 2015-12-16 | A kind of method and system for improving server process concurrent services capability |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106886464A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080320146A1 (en) * | 2007-06-21 | 2008-12-25 | Microsoft Corporation | Establishing interaction between a process and a server process |
CN102761545A (en) * | 2012-06-30 | 2012-10-31 | 华为技术有限公司 | Service processing method, service processor and service processing system |
WO2013091195A1 (en) * | 2011-12-21 | 2013-06-27 | 华为技术有限公司 | Transaction processing method, device and system in distributed system |
CN104133724A (en) * | 2014-04-03 | 2014-11-05 | 腾讯科技(深圳)有限公司 | Concurrent task scheduling method and concurrent task scheduling device |
CN104932932A (en) * | 2014-03-20 | 2015-09-23 | 腾讯科技(深圳)有限公司 | Asynchronous business processing method, device and system |
-
2015
- 2015-12-16 CN CN201510940270.5A patent/CN106886464A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080320146A1 (en) * | 2007-06-21 | 2008-12-25 | Microsoft Corporation | Establishing interaction between a process and a server process |
WO2013091195A1 (en) * | 2011-12-21 | 2013-06-27 | 华为技术有限公司 | Transaction processing method, device and system in distributed system |
CN102761545A (en) * | 2012-06-30 | 2012-10-31 | 华为技术有限公司 | Service processing method, service processor and service processing system |
CN104932932A (en) * | 2014-03-20 | 2015-09-23 | 腾讯科技(深圳)有限公司 | Asynchronous business processing method, device and system |
CN104133724A (en) * | 2014-04-03 | 2014-11-05 | 腾讯科技(深圳)有限公司 | Concurrent task scheduling method and concurrent task scheduling device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110262901B (en) | Data processing method and data processing system | |
Peng et al. | An energy-and cost-aware computation offloading method for workflow applications in mobile edge computing | |
US20220276899A1 (en) | Resource scheduling method, device, and storage medium | |
WO2019047441A1 (en) | Communication optimization method and system | |
CN107463434A (en) | Distributed task processing method and device | |
CN106933669A (en) | For the apparatus and method of data processing | |
CN110427256A (en) | Job scheduling optimization method, equipment, storage medium and device priority-based | |
CN103595780A (en) | Cloud computing resource scheduling method based on repeat removing | |
CN109840154A (en) | A kind of computation migration method that task based access control relies under mobile cloud environment | |
CN109471872A (en) | Handle the method and device of high concurrent inquiry request | |
CN109067834A (en) | Discrete particle cluster dispatching algorithm based on oscillatory type inertia weight | |
CN106251071A (en) | A kind of cloud workflow implementing method supporting multiple engine | |
CN111352896B (en) | Artificial intelligence accelerator, equipment, chip and data processing method | |
CN102917014A (en) | Resource scheduling method and device | |
CN109271247A (en) | Memory Optimize Method, device, computer installation and storage medium | |
CN103077068A (en) | Realizing method for shared memory based high-performance simulation system | |
CN109960579A (en) | A kind of method and device of adjustment business container | |
Liu et al. | KubFBS: A fine‐grained and balance‐aware scheduling system for deep learning tasks based on kubernetes | |
CN107766137A (en) | A kind of task processing method and device | |
CN109388482A (en) | Dispatching method, device and the storage medium of task | |
CN108062311A (en) | A kind of method and system of access service device web data | |
Almhanna et al. | Reducing waiting and idle time for a group of jobs in the grid computing | |
CN106462360B (en) | A kind of resource regulating method and relevant apparatus | |
Zhang et al. | A locally distributed mobile computing framework for DNN based android applications | |
CN106886464A (en) | A kind of method and system for improving server process concurrent services capability |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170623 |
|
WD01 | Invention patent application deemed withdrawn after publication |