Measuring resource usage using a register based elapsed time function

    公开(公告)号:GB2451344A

    公开(公告)日:2009-01-28

    申请号:GB0813536

    申请日:2008-07-24

    Applicant: IBM

    Inventor: GREINER DAN F

    Abstract: A method of measuring the usage of a resource such as processor time using a register based extract CPU timer instruction run in a non privileged state and does not use any operating system resources. The instruction (616) contains an opcode, a first base field (B1), a first offset value (D1), a second base field (B2), a second offset field (D2) and a third register field (R3). In one embodiment an expected value for a resource is placed in a first register. A timer is then started which decrements the value. When the instruction is executed a current value for the timer is determined (606) and a first operand (602) representing the amount of time allocated to the task is retrieved from storage on the basis of an address constructed form the first base and offset fields. The current value of the timer is then subtracted from retrieved value and stored in a fourth register which records the elapsed time since last dispatch (608). A second operand (612) is then retrieved on the basis of an address constructed from the second base and offset field and stored in a fifth register and represents the accumulated task time (614). The third register is used to fetch a third operand (618) and store information used to adjust the time for purposes of billing a user for the time used (620).

    Computer program for move data facility with user selectable storage access keys

    公开(公告)号:GB2438297A

    公开(公告)日:2007-11-21

    申请号:GB0709076

    申请日:2006-12-20

    Applicant: IBM

    Inventor: GREINER DAN F

    Abstract: Flexible control of storage access keys is facilitated by allowing storage access keys to be specified in user registers, the keys in the user registers overriding storage access keys in system registers. A source access key to control access to a source operand is selected from one of a source user register 608, which is intended to be updated by users, and a system register such as a program status word (PSW) 604, which is not intended to be updated by users. Similarly, a target access key to control access to a target operand is selected from one of a target user register (also intended to be updated) and the system register, the selection being independent of the selection of the source access key. The source and target access keys are used to control access to the source and target operands in carrying out the moving of data from a source address space to a target address space. The access key selection 600 is performed on the basis of a control value 610 of an operand access control 608. The source and target user registers may be the same register. The claims are specifically directed to a computer program.

    Compare, swap and store facility with no external serialization

    公开(公告)号:GB2437758A

    公开(公告)日:2007-11-07

    申请号:GB0625699

    申请日:2006-12-21

    Applicant: IBM

    Abstract: A compare, swap and store facility is provided that does not require external serialization. A compare and swap operation is performed using an interlocked update operation. If the comparison indicates equality, a store operation is performed. The compare, swap and store operations are performed as a single unit of operation.

    instruções para realizar uma operação em dois operandos e subsequentemente armazenar o valor original do operando

    公开(公告)号:BRPI1103258A2

    公开(公告)日:2016-01-12

    申请号:BRPI1103258

    申请日:2011-06-22

    Applicant: IBM

    Abstract: instruções para realizar uma operação em dois operando e subsequentemente armazenar o valor original do operando. uma instrução aritmética / lógica é executada com operandos de memória interligados, quando executados obtêm um segundo operando a partir de uma localização na memória, e salva uma cópia temporária do segundo operando, a execução realiza uma operação aritmética ou lógica baseada no segundo operando e um terceiro operando e armazena o resultado na localização de memória do segundo operando, e, posteriormente, armazena a cópia temporária em um primeiro registro.

    Computer program for calculating the (accumulated) processing time for tasks

    公开(公告)号:GB2440216A

    公开(公告)日:2008-01-23

    申请号:GB0709372

    申请日:2007-05-16

    Applicant: IBM

    Inventor: GREINER DAN F

    Abstract: Disclosed is a computer program that, when run, can determine the resource usage (for example, processor time) of tasks (or job, process, subroutine). The determination is performed on behalf of the user application such that is does not require calls to the Operating System (OS). When a task is started, a privileged instruction (i.e. one unavailable to the user application) stores the value of a CPU timer. When the user application wishes to know the amount of execution time, it executes a non-privileged instruction which calculates the elapsed time and reports it in a single uninterruptible operation. This is achieved by subtracting the start time from the end time such that the difference is equivalent to the execution time. The invention can also be used to determine the running time of a task that is switched in and out of execution. For each time slice that the task is running, the time taken is added into an accumulation value to give the time taken so far.

    Method of calculating the accumulated processing time for tasks

    公开(公告)号:GB2438230A

    公开(公告)日:2007-11-21

    申请号:GB0625722

    申请日:2006-12-21

    Applicant: IBM

    Inventor: GREINER DAN F

    Abstract: A method for determining the amount of processing time that a task (or job, process, subroutine) uses. This is carried out using an instruction that calculates the elapsed time, and reports it as a single uninterruptible operation. When called, the instruction stores the timer value (task start), and when the task completes, it retrieves this and subtracts it from the current timer value (task end). The invention can also be used to determine the running time of a task that is switched in and out of execution. For each time slice that the task is running, the time taken is added into an accumulation value to give the time taken so far.

    Computer program for compare, swap and store facility with no external serialization

    公开(公告)号:GB2437760A

    公开(公告)日:2007-11-07

    申请号:GB0710783

    申请日:2006-12-21

    Applicant: IBM

    Abstract: For a multi processor system, a compare, swap and store facility is provided that does not require external serialization or lock. A compare and swap operation is performed using an interlocked update operation. If the comparison indicates equality, a store operation is performed. The compare, swap and store operations are performed as a single unit of operation and are not interrupted. The interlocked update operation may comprise a block concurrent interlocked update operation.

Patent Agency Ranking