HIỆU SUẤTHiệu suất là về thời gian. Sự kiện (ngắt, tin nhắn, yêu cầu từ người dùng, hoặc thông qua thời gian) xảy ra, và hệ thống phải đáp ứng cho họ. Có một loạt các characterizations của sự kiện đến và phản ứng, nhưng về cơ bản hiệu suất là có liên quan với bao lâu nó mất hệ thống để đáp ứng khi một sự kiện xảy ra.Một trong những điều mà làm cho hiệu suất phức tạp là một số sự kiện và mô hình xuất hiện. Sự kiện có thể đến từ yêu cầu người dùng, từ các hệ thống khác, hoặc từ bên trong hệ thống. Một hệ thống dựa trên Web dịch vụ tài chính được sự kiện từ người sử dụng (có thể đánh số trong hàng chục hoặc hàng trăm nghìn). Một hệ thống điều khiển động cơ được yêu cầu của nó từ các đoạn văn của thời gian và phải kiểm soát cả hai việc bắn thử đánh lửa khi một hình trụ là ở vị trí chính xác và hỗn hợp của nhiên liệu để tối đa hóa quyền lực và giảm thiểu ô nhiễm.Cho trang Web dựa trên hệ thống tài chính, các phản ứng có thể là số lượng các giao dịch có thể được xử lý trong một phút. Đối với hệ thống điều khiển động cơ, các phản ứng có thể là các biến thể trong thời gian bắn. Trong mỗi trường hợp, các mô hình của sự kiện đến và các mô hình của phản ứng có thể được định nghĩa, và đặc tính này tạo thành ngôn ngữ đó để xây dựng tình huống chung hiệu suất.Một kịch bản thực hiện bắt đầu với một yêu cầu cho một số dịch vụ đến hệ thống. Đáp ứng các yêu cầu đòi hỏi tài nguyên để được tiêu thụ. Trong khi điều này xảy ra hệ thống có thể đồng thời phục vụ các yêu cầu khác.An arrival pattern for events may be characterized as either periodic or stochastic. For example, a periodic event may arrive every 10 milliseconds. Periodic event arrival is most often seen in real-time systems. Stochastic arrival means that events arrive according to some probabilistic distribution. Events can also arrive sporadically, that is, according to a pattern not capturable by either periodic or stochastic characterizations.Multiple users or other loading factors can be modeled by varying the arrival pattern for events. In other words, from the point of view of system performance, it does not matter whether one user submits 20 requests in a period of time or whether two users each submit 10. What matters is the arrival pattern at the server and dependencies within the requests.The response of the system to a stimulus can be characterized by latency (the time between the arrival of the stimulus and the system's response to it), deadlines in processing (in the engine controller, for example, the fuel should ignite when the cylinder is in a particular position, thus introducing a processing deadline), the throughput of the system (e.g., the number of transactions the system can process in a second), the jitter of the response (the variation in latency), the number of events not processed because the system was too busy to respond, and the data that was lost because the system was too busy.Notice that this formulation does not consider whether the system is networked or standalone. Nor does it (yet) consider the configuration of the system or the consumption of resources. These issues are dependent on architectural solutions, which we will discuss in Chapter 5.
đang được dịch, vui lòng đợi..
