KR100469406B1 - Performance testing method using task of cpu - Google Patents

Performance testing method using task of cpu Download PDF

Info

Publication number
KR100469406B1
KR100469406B1 KR10-2000-0077766A KR20000077766A KR100469406B1 KR 100469406 B1 KR100469406 B1 KR 100469406B1 KR 20000077766 A KR20000077766 A KR 20000077766A KR 100469406 B1 KR100469406 B1 KR 100469406B1
Authority
KR
South Korea
Prior art keywords
task
received
event
message
count value
Prior art date
Application number
KR10-2000-0077766A
Other languages
Korean (ko)
Other versions
KR20020048566A (en
Inventor
이철규
Original Assignee
엘지전자 주식회사
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR10-2000-0077766A priority Critical patent/KR100469406B1/en
Publication of KR20020048566A publication Critical patent/KR20020048566A/en
Application granted granted Critical
Publication of KR100469406B1 publication Critical patent/KR100469406B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3447Performance evaluation by modeling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Evolutionary Biology (AREA)
  • Computer Hardware Design (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Quality & Reliability (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

본 발명은 시스템을 구축하거나 개발 시 타스크를 이용하여 중앙처리장치의 성능을 체크하는 기술에 관한 것이다. 이러한 본 발명은 루트 타스크에서 메시지 큐,파티션 및 일련의 타스크를 생성하고, 첫 번째 타스크에 소정 주기로 정보 이벤트를 소정 횟수에 걸쳐 전송한 후 엑시트 이벤트를 전송하는 제1과정과; 상기 루트 타스크가 메시지 큐에 수신된 메시지에서 비율을 계산하여 출력하고, 엑시트 이벤트가 수신될 때 종료 메시지를 출력하고 종료하는 제2과정과; 상기 다수의 타스크가 수신 이벤트 수신 시마다 카운트값을 증가시키고 수신되는 정보 이벤트를 다음 타스크에 전달하며, 상기 루트 타스크의 파티션으로부터 버퍼를 할당받아 현재의 카운트값과 자신의 타스크 이름을 메시지 큐에 전달하고 카운트값을 리세트시키는 제3과정에 의해 달성된다.The present invention relates to a technique for checking the performance of a central processing unit using tasks when building or developing a system. The present invention includes a first step of generating a message queue, a partition and a series of tasks in the root task, and transmits an exit event after transmitting the information event a predetermined number of times to the first task at a predetermined cycle; A second step of the route task calculating and outputting a ratio from a message received in a message queue, and outputting and terminating a termination message when an exit event is received; The plurality of tasks increase the count value each time a received event is received, deliver the received information event to the next task, allocate a buffer from the partition of the root task, and transmit the current count value and its task name to the message queue. This is accomplished by a third process of resetting the count value.

Description

타스크를 이용한 중앙처리장치의 성능 측정 방법{PERFORMANCE TESTING METHOD USING TASK OF CPU}PERFORMANCE TESTING METHOD USING TASK OF CPU

본 발명은 시스템 구축이나 개발을 위해 중앙처리장치의 성능을 체크하는 기술(CPU Performance Check Mechanism)에 관한 것으로, 특히 시스템 운용자나 개발자가 MMI(MMI: Man Machine Interface)를 이용하여 중앙처리장치의 성능을 알아 볼 수 있도록한 타스크를 이용한 중앙처리장치의 성능 측정 방법에 관한 것이다.The present invention relates to a technology for checking the performance of a central processing unit (CPU Performance Check Mechanism) for system construction or development, in particular the system operator or developer using the MMI (MMI: Man Machine Interface) The present invention relates to a method of measuring the performance of a central processing unit using tasks.

종래 기술에 있어서는 시스템에 대한 전반적인 모니터링 기능을 지원하기 위하여 메뉴 디렉토리(Menu Directory)를 두었는데, 이 디렉토리는 시스템의 각 모듈에 인터페이스가 가능하다. 따라서, 이와 같은 디렉토리를 통해 시스템에 대한 초기화 상태나 일반적인 구성요소 등의 정보를 획득하고, 이렇게 획득한 정보를 MMI를 통해 운용자나 개발자에게 제공하도록 되어 있었다.In the prior art, a menu directory is provided to support the overall monitoring function of the system, which can interface to each module of the system. Therefore, through such a directory, information such as an initialization state or general components of a system is obtained, and the information thus obtained is provided to an operator or a developer through an MMI.

이와 같이 종래의 중앙처리장치에 대한 성능 측정 기술에 있어서는 MMI를 이용하여 시스템에 대한 일반적인 구성요소나 초기화 상태에 관한 정보를 모니터링할 수 있게 되어 있으나, 중앙처리장치의 사용 상태를 알아 볼 수 없게 되어 있어 시스템 상태를 적절하게 유지하거나 시스템을 개발하는데 어려움이 있었다.As such, in the conventional performance measurement technology for the central processing unit, it is possible to monitor the information on the general component or initialization state of the system by using the MMI, but it is not possible to find out the use state of the central processing unit. There was a difficulty in maintaining the system state properly or developing the system.

따라서, 본 발명의 목적은 시스템 내에 타스크(Task)를 생성하고, 생성된 타스크의 사용 빈도를 조사하여 중앙처리장치의 사용빈도를 유추하는 타스크를 이용한 중앙처리장치의 성능 측정 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for measuring the performance of a central processing unit using a task that induces the frequency of use of the central processing unit by generating a task in the system and examining the frequency of use of the generated task.

도 1은 본 발명에서 중앙처리장치의 성능 측정을 위한 타스크 구조도.1 is a task structure diagram for measuring the performance of the central processing unit in the present invention.

***도면의 주요 부분에 대한 부호의 설명****** Description of the symbols for the main parts of the drawings ***

1 : 메시지 큐 2 : 메시지 큐1: message queue 2: message queue

T0-T3 : 타스크T0-T3: task

본 발명에 의한 타스크를 이용한 중앙처리장치의 성능 측정 방법은, 시스템 내의 루트 타스크에서 메시지 큐,파티션 및 다수의 타스크를 생성하여, 첫 번째 타스크에 소정 주기로 정보 이벤트를 소정 횟수에 걸쳐 전송한 후 엑시트 이벤트를 전송하는 제1과정과; 상기 루트 타스크가 메시지 큐에 수신된 메시지에서 비율을 계산하여 출력함과 아울러 메시지에 사용된 버퍼를 파티션에 반환하고, 엑시트 이벤트가 수신될 때 종료 메시지를 출력한 후 상기 메시지 큐와 파티션을 삭제하고 종료하는 제2과정과; 상기 다수의 타스크가 수신 이벤트 수신 시마다 카운트값을 증가시키고 수신되는 정보 이벤트를 다음 타스크에 전달하며, 상기 루트 타스크의 파티션으로부터 버퍼를 할당받아 현재의 카운트값과 자신의 타스크 이름을 메시지 큐에 전달하고 카운트값을 리세트시키는 제3과정으로 이루어지는 것으로, 이와 같이 이루어진 본 발명의 작용을 첨부한 도 1을 참조하여 상세히 설명하면 다음과 같다.In the method for measuring performance of a CPU using a task according to the present invention, a message queue, a partition, and a plurality of tasks are generated from a root task in a system, and the information task is transmitted to the first task at predetermined intervals over a predetermined number of times and then exits. A first step of transmitting an event; The root task calculates and outputs a ratio from the message received in the message queue, returns the buffer used for the message to the partition, outputs an end message when an exit event is received, and then deletes the message queue and partition. Terminating a second process; The plurality of tasks increase the count value each time a received event is received, deliver the received information event to the next task, allocate a buffer from the partition of the root task, and transmit the current count value and its task name to the message queue. A third process of resetting the count value will be described in detail with reference to FIG. 1 attached to the operation of the present invention.

일반적으로, 하나의 시스템은 여러 가지 기능들로 이루어지는데, 이러한 기능들은 크고 작은 모듈들로 구분할 수 있으며, 그 중에서 프로세스 의미를 부여한 것을 타스크라 할 수 있다.In general, a system consists of several functions, which can be divided into large and small modules, and among them, a task is given a process meaning.

다시 말해서, 타스크는 적어도 하나 이상의 기능을 수행할 수 있는 프로그램과 연관되어 있다. 이는 곧 타스크의 수행은 중앙처리장치와 관련된 것이라고 볼 수 있다. 즉, 대부분의 타스크는 중앙처리장치를 이용하여 수행되고 있다. 따라서, 시스템 내에 타스크를 생성하여 그 생성된 타스크의 사용 빈도를 조사함으로써 중앙처리장치의 사용 상태를 유추할 수 있게 된다.In other words, a task is associated with a program that can perform at least one or more functions. This means that the task performance is related to the central processing unit. That is, most tasks are performed using a central processing unit. Therefore, it is possible to infer the use state of the central processing unit by generating a task in the system and examining the frequency of use of the generated task.

루트 타스크(T0)에서는 메시지 큐(Message Queue)(1)와 파티션(Partition)(2)을 생성함과 아울러, 제1-3 타스크(T1-T3)를 생성한다. 또한, 상기 루트 타스크(T0)는 상기 제1타스크(T1)에 소정 주기(예: 50-100 Tick)로 정보 이벤트(Info)를 전송하고 그때마다 카운트값을 증가시켜 그 증가된 카운트값이 소정 값(예: 10)에 도달되면 엑시트 이벤트(Exit)를 전송한다.In the root task T0, a message queue 1 and a partition 2 are created, and the first to third tasks T1 to T3 are generated. In addition, the root task T0 transmits the information event Info to the first task T1 at a predetermined period (for example, 50-100 ticks) and increases the count value at each time, thereby increasing the count value. When the value is reached (eg 10), an exit event is sent.

상기 메시지 큐(1)에서는 상기 3개의 타스크(T1-T3)로부터 메시지가 수신되기를 기다린다. 상기 루트 타스크(T0)는 그 메시지 큐(1)에 수신된 메시지에서 비율을 계산하여 그 계산 결과를 출력하고 메시지에 사용된 버퍼를 파티션(2)에 반환한다.The message queue 1 waits for a message to be received from the three tasks T1-T3. The root task T0 calculates a ratio in the message received in the message queue 1, outputs the result of the calculation and returns the buffer used for the message to the partition 2.

이후, 상기 루트 타스크(T0)는 수신 이벤트를 체크하여 엑시트 이벤트(Exit)가 수신된 것으로 판명되면, 종료 메시지를 출력한 후 상기 메시지 큐(1)와 파티션(2)을 삭제하고 종료 처리한다.Thereafter, the root task T0 checks a reception event and if it is determined that an exit event Exit has been received, outputs a termination message, deletes the message queue 1 and the partition 2, and terminates the message.

제1타스크(T1) 및 제2타스크(T2)에서는 매 1틱 주기마다 자신에게 틱 이벤트(Tick)를 전달한다. 또한, 수신 이벤트가 수신되면 카운트값을 하나 증가시키고, 정보 이벤트(Info)가 수신되면 그 정보 이벤트(Info)를 다음 타스크에 전달한다.The first task T1 and the second task T2 transmit a tick event to themselves every one tick period. In addition, when the reception event is received, the count value is increased by one, and when the information event Info is received, the information event Info is transmitted to the next task.

또한, 상기 제1타스크(T1) 및 제2타스크(T2)에서는 상기 루트 타스크(T0)의 파티션(2)으로부터 버퍼를 할당받아 현재의 카운트값과 자신의 타스크 이름을 메시지 큐(1)에 전달하고 카운트값을 "0"으로 리세트시킨다.Also, in the first task T1 and the second task T2, a buffer is allocated from the partition 2 of the root task T0 and the current count value and its task name are transmitted to the message queue 1. And reset the count value to "0".

이후, 엑시트 이벤트(Exit)가 수신되면, 그 이벤트(Exit)를 다음 타스크에전달한 후 종료 처리한다.After that, when an exit event (Exit) is received, the event (Exit) is delivered to the next task and then terminated.

제3타스크(T3) 역시 매 1틱 주기마다 자신에게 틱 이벤트(Tick)를 전달한다. 또한, 수신 이벤트가 수신되면 카운트값을 하나 증가시키고, 정보 이벤트(Info)가 수신되면 상기 루트 타스크(T0)의 파티션(2)으로부터 버퍼를 할당받아 현재의 카운트값과 자신의 타스크 이름을 메시지 큐(1)에 전달하고 카운트값을 "0"으로 리세트시킨다.The third task T3 also transmits a tick event to itself every one tick period. In addition, when a reception event is received, a count value is increased by one. When an information event Info is received, a buffer is allocated from the partition 2 of the root task T0, and the current count value and its own task name are assigned to the message queue. It passes to (1) and resets a count value to "0".

이후, 엑시트 이벤트(Exit)가 수신되면, 그 이벤트(Exit)를 루트 타스크(T0)에 전달한 후 종료 처리한다.Then, when the exit event (Exit) is received, the event (Exit) is delivered to the root task (T0) and terminates.

이상에서 상세히 설명한 바와 같이 본 발명은, 시스템 내에 타스크를 생성하고, 생성된 타스크의 사용 빈도를 근거로 중앙처리장치의 사용빈도를 유추 함으로써, 시스템의 상태를 최적의 조건으로 유지하거나 시스템 개발에 기여할 수 있는 효과가 있다.As described in detail above, the present invention generates a task in the system and infers the frequency of use of the central processing unit based on the frequency of use of the generated task, thereby maintaining the state of the system in an optimal condition or contributing to system development. It can be effective.

Claims (3)

시스템 내의 루트 타스크에서 메시지 큐,파티션 및 일련의 타스크를 생성하고, 첫 번째 타스크에 소정 주기로 정보 이벤트를 소정 횟수에 걸쳐 전송한 후 엑시트 이벤트를 전송하는 제1과정과; 상기 루트 타스크가 메시지 큐에 수신된 메시지에서 비율을 계산하여 출력하고, 엑시트 이벤트가 수신될 때 종료 메시지를 출력하고 종료하는 제2과정과; 상기 일련의 타스크가 수신 이벤트 수신 시마다 카운트값을 증가시키고 수신되는 정보 이벤트를 다음 타스크에 전달하며, 상기 루트 타스크의 파티션으로부터 버퍼를 할당받아 현재의 카운트값과 자신의 타스크 이름을 메시지 큐에 전달하고 카운트값을 리세트시키는 제3과정으로 이루어지는 것을 특징으로 하는 타스크를 이용한 중앙처리장치의 성능 측정 방법.Creating a message queue, a partition, and a series of tasks in a root task in the system, and transmitting an exit event after transmitting the information event a predetermined number of times to the first task at a predetermined cycle; A second step of the route task calculating and outputting a ratio from a message received in a message queue, and outputting and terminating a termination message when an exit event is received; The task increases the count value each time the received event is received, delivers the received information event to the next task, allocates a buffer from the partition of the root task, and sends the current count value and its task name to the message queue. And a third step of resetting the count value. 제1항에 있어서, 제1과정의 타스크는 상기 루트 타스크와 폐루프 형태로 연결되는 것을 특징으로 하는 타스크를 이용한 중앙처리장치의 성능 측정 방법.The method of claim 1, wherein the task of the first process is connected to the root task in the form of a closed loop. 제1항에 있어서, 제2과정은 종료 메시지를 출력한 후 메시지 큐와 파티션을 삭제하는 단계를 포함하여 이루어지는 것을 특징으로 하는 타스크를 이용한 중앙처리장치의 성능 측정 방법.2. The method of claim 1, wherein the second process includes deleting a message queue and a partition after outputting an end message.
KR10-2000-0077766A 2000-12-18 2000-12-18 Performance testing method using task of cpu KR100469406B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2000-0077766A KR100469406B1 (en) 2000-12-18 2000-12-18 Performance testing method using task of cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2000-0077766A KR100469406B1 (en) 2000-12-18 2000-12-18 Performance testing method using task of cpu

Publications (2)

Publication Number Publication Date
KR20020048566A KR20020048566A (en) 2002-06-24
KR100469406B1 true KR100469406B1 (en) 2005-01-31

Family

ID=27682778

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2000-0077766A KR100469406B1 (en) 2000-12-18 2000-12-18 Performance testing method using task of cpu

Country Status (1)

Country Link
KR (1) KR100469406B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101988898B1 (en) * 2017-12-26 2019-06-13 국방과학연구소 Task Dead Rock Recovery Method through the Task Status Checking

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63269239A (en) * 1987-04-28 1988-11-07 Mitsubishi Electric Corp Processor load measuring system
JPH1011333A (en) * 1996-06-24 1998-01-16 Nippon Denki Ido Tsushin Kk Measuring instrument for cpu use rate by task
JPH1069405A (en) * 1996-08-28 1998-03-10 Nec Software Ltd Task unit cpu use rate measurement system
US5797115A (en) * 1995-08-24 1998-08-18 Fuller; Billy Measuring direct and indirect usage of a central processing unit
JPH11327927A (en) * 1998-05-15 1999-11-30 Nec Corp Cpu using rate measurement system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63269239A (en) * 1987-04-28 1988-11-07 Mitsubishi Electric Corp Processor load measuring system
US5797115A (en) * 1995-08-24 1998-08-18 Fuller; Billy Measuring direct and indirect usage of a central processing unit
JPH1011333A (en) * 1996-06-24 1998-01-16 Nippon Denki Ido Tsushin Kk Measuring instrument for cpu use rate by task
JPH1069405A (en) * 1996-08-28 1998-03-10 Nec Software Ltd Task unit cpu use rate measurement system
JPH11327927A (en) * 1998-05-15 1999-11-30 Nec Corp Cpu using rate measurement system

Also Published As

Publication number Publication date
KR20020048566A (en) 2002-06-24

Similar Documents

Publication Publication Date Title
JP2018524693A (en) Scalable distributed workload testing
KR100881419B1 (en) Application component communication apparatus of Software Communication ArchitectureSCA-based system, and method thereof
US8719367B2 (en) Data processing apparatus, distributed processing system, data processing method and data processing program
EP0225603A2 (en) Distributed processing system and method
CN109753432A (en) A kind of interface performance test method, apparatus, server and system
CN106792488A (en) Bluetooth scan method, apparatus and system
US20170163505A1 (en) Application centric network experience monitoring
KR100249797B1 (en) The communication event tracking of rpc-based distributed programs
CN114510476A (en) Telemetry data multi-path parallel processing system and method based on CCSDS source package system
KR100469406B1 (en) Performance testing method using task of cpu
CN107294911B (en) Data packet monitoring method and device, remote procedure call system and equipment
CN109788036B (en) Distributed computing method and device based on cloud network and cloud server with distributed computing method and device
CN114095084A (en) Optical cable data display method, device, equipment and storage medium
US7831866B2 (en) Link failure detection in a parallel computer
Murshed et al. Scheduling and allocation of time-triggered and event-triggered services for multi-core processors with networks-on-a-chip
CN105955745B (en) A kind of flow chart emulation debugging method and device
KR100557077B1 (en) Interprocessor communication performance test method and apparatus
KR20070106232A (en) Power plant simulation system and driving method thereof
CN115811350B (en) Query scheduling method and device for satellite system and storage medium
JPS592943B2 (en) Multiprocessor system failure handling method
JP4973307B2 (en) Packet load test equipment
Micallef et al. Communicating Generators in JavaScript
CN111385159B (en) Server side pressure testing method and device, storage medium and computer equipment
KR870010448A (en) Distributed processing system and method
CN115623070B (en) IDL message processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20091231

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee