Abstract:
A computer implemented method, apparatus, and computer usable code for identifying processor utilization. A current event is detected. A number of elapsed cycles for a processor since a previous event are identified in response to detecting the current event. An elapsed time using the number of elapsed cycles and a current frequency of the processor is calculated, wherein the elapsed time is used to identify the processor utilization.
Abstract:
Ein Prozess erstellt ein Muster auf der Grundlage eines Ereignisses. Der Prozess erkennt, mithilfe eines Zuteilungsmonitors, einen nächsten zugeteilten überwachten Thread, der durch einen aktuellen Prozessor zugeteilt wird. Der Prozess stellt eine Prozessoraffinität des nächsten zugeteilten überwachten Threads so ein, dass der nächste zugeteilte überwachte Thread nur auf dem aktuellen Prozessor läuft, ohne zu einem anderen Prozessor migrieren zu können. Der Prozess ruft außerdem, mithilfe eines Threads, von dem ein Muster genommen wurde, der auf dem aktuellen Prozessor läuft, eine Aufrufliste eines nächsten zugeteilten überwachten Threads ab, nachdem die Prozessoraffinität des nächsten zugeteilten überwachten Threads auf den Prozessor eingestellt wurde. Der Prozess stellt die Prozessoraffinität des nächsten zugeteilten überwachten Threads wieder her, nachdem die Aufrufliste des nächsten zugeteilten überwachten Threads abgerufen wurde.
Abstract:
Ein Prozess erstellt ein Muster auf der Grundlage eines Ereignisses. Der Prozess erkennt, mithilfe eines Zuteilungsmonitors, einen nächsten zugeteilten überwachten Thread, der durch einen aktuellen Prozessor zugeteilt wird. Der Prozess stellt eine Prozessoraffinität des nächsten zugeteilten überwachten Threads so ein, dass der nächste zugeteilte überwachte Thread nur auf dem aktuellen Prozessor läuft, ohne zu einem anderen Prozessor migrieren zu können. Der Prozess ruft außerdem, mithilfe eines Threads, von dem ein Muster genommen wurde, der auf dem aktuellen Prozessor läuft, eine Aufrufliste eines nächsten zugeteilten überwachten Threads ab, nachdem die Prozessoraffinität des nächsten zugeteilten überwachten Threads auf den Prozessor eingestellt wurde. Der Prozess stellt die Prozessoraffinität des nächsten zugeteilten überwachten Threads wieder her, nachdem die Aufrufliste des nächsten zugeteilten überwachten Threads abgerufen wurde.
Abstract:
Ein Aktivitätsaufzeichnungssystem für eine parallele Softwareumgebung, die Software-Threads in einem Computersystem ausführt, wobei das Aktivitätsaufzeichnungssystem aufweist: einen Thread-Zustandsanzeiger zum Aufzeichnen einer Anzeige eines Synchronisierungszustandes eines Software-Thread, in dem der Software-Thread aufhört, in einem Prozessor des Computersystems ausgeführt zu werden, wobei die Anzeige einer Kennzeichnung des Software-Thread zugeordnet ist; einen Zeit-Profiler zum Erkennen, dass ein Prozessor des Computersystems inaktiv ist, und Aufzeichnen einer Anzeige, dass der Prozessor inaktiv ist; einen Zuteilungsüberwacher zum Erkennen der Zuteilung des Software-Thread zum Prozessor und als Reaktion auf die Anzeige, dass der Prozessor inaktiv ist, und die Anzeige des Synchronisierungszustands des Software-Thread Erzeugen eines Datensatzes, der die Inaktivität des Prozessors dem Software-Thread und dem angezeigten Synchronisierungszustand zuschreibt.
Abstract:
An activity recording system for a concurrent software environment executing software threads in a computer system, the activity recording system comprising: a thread state indicator for recording an indication of a synchronisation state of a software thread in which the software thread ceases to execute in a processor of the computer system, the indication being associated with an identification of the software thread; a time profiler for identifying a processor of the computer system being idle and recording an indication that the processor is idle; a dispatch monitor for identifying the dispatch of the software thread to the processor and, responsive to the indication that the processor is idle and the indication of a synchronisation state of the software thread, generating a record attributing the idleness of the processor to the software thread and the indicated synchronisation state.
Abstract:
A process generates a sample based on an event. The process identifies, with a dispatch monitor, a next dispatched monitored thread that is dispatched by a current processor. The process sets a processor affinity of the next dispatched monitored thread such that the next dispatched monitored thread runs only on the current processor without being able to migrate to a different processor. The process also retrieves, with a sampled thread that runs on the current processor, a next dispatched monitored thread call stack after the processor affinity of the next dispatched monitored thread has been set to the processor. The process restores the processor affinity of the next dispatched monitored thread after the next dispatched monitored thread call stack has been obtained.