Quality Properties - Performance tactics

        For the performance of certain tactical collection system, I used the fixed-priority scheduling policy, each submitted request for the allocation of a specific business priority, according to the priority order for form submission for review. This strategy can guarantee to provide better services for enterprises higher priority request, however, for some lower-priority requests, may have to wait a long time to get service because it has a lot earlier than the priority high request. All my priority policy design is round-robin scheduling policy, it sort request, then the time allowed, the allocation of resources to the next request for the sort of. A special form of rotary loop is executed, running in a loop, the resource allocation is performed every a fixed time.
Target: the system for a certain time to generate a response time limit is reached, the event may be a message arrives, when the timer expires, the system state changes.

Two factors affect response time:
1. resource consumption: the resource comprises a CPU, data storage, network communication bandwidth, and memory; refers to the actual resource consumption takes time;
  resource consumption comprising: for each event must go through the process sequence
2. lockout time: due to resource contention, computing resources are unavailable or unable to handle events leading to long, this is the time your computer may wait.
Three categories:
1. Resource Demand - Analysis of factors affecting the performance of resources
  event stream is the source of demand;
  needs two characteristics:
  the time between an event stream 1. The resource interval
  resources consumed 2. Each request
  needs resources tactics :
  1. reduce the processing resources required for an event stream.
    1. improve computational efficiency
    2. reduce computation cost
  2. Reducing the number of processed events
  3. Control the use of resources
    1. The execution time limit
    Limit the queue size
2. Resource Management - application efficient resource
  1. introducing concurrency
  2. maintain multiple copies of data or calculation
  3. To increase the available resources
3. resource arbitration - resolve resource contention with
  1. FIFO
  2. fixed priority
  3. dynamic priority: rotation, the earliest time limit priority
  4. static invocation

In the application, data query, each query results can create a new table to store the results, the next time you query the keyword, can be found directly from the table to the keyword named

Guess you like

Origin www.cnblogs.com/yishaui/p/12417864.html