Measuring lock spin utilization


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris BigAdmin RSS Measuring lock spin utilization
# 1  
Old 11-19-2008
Measuring lock spin utilization

This script processes output from the lockstat command andcomputes CPU utilization due to busy-waiting for kernel locks.For more information see:http://blogs.sun.com/sistare/entry/m...in_utilization

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Ubuntu

Measuring the correctness of ndelay() function.

I wrote this kernel module to test the correctness of ndelay() function. Kernel mdoule: #include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/time.h> #include <linux/delay.h> static int __init initialize(void) { ktime_t start, end; s64... (1 Reply)
Discussion started by: BHASKAR JUPUDI
1 Replies

2. Red Hat

CPU Utilization and Memory Utilization of Services and Applications

Hi, i am new to linux/RHEL 6.0 and i have two questions. 1) How to get the CPU utilization and Memory Utilization of all Services running currently? 2) How to get the CPU utilization and Memory Utilization of all Applications running currently? Please help me to find the script. ... (2 Replies)
Discussion started by: nossam
2 Replies

3. Red Hat

Custom-Spin doesnt boot to GUI when /etc/skel is changed

Heyas So i have my custom Fedora with AwesomeWM spin with alots of customizations using the kickstart method for a liveimage. A few weeks (2-3 months) ago, i've done some changes i cannot remember. Those changes made the image from bootable to gui, to not booting to gui any more. Just... (3 Replies)
Discussion started by: sea
3 Replies

4. UNIX for Advanced & Expert Users

Testing privileges -lock lockfile /var/lock/subsys/..- Permission denied

Hi all, I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...). I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message. Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies

5. Red Hat

Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length

Hello all, If anyone has time, I have a few questions: How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too. 1. How to lock the account after a few (like 3) invalid password attempts? 2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies

6. Programming

Measuring memory used by a program?

I have a Java program. I want to measure the total memory used by the program, especially the peak memory. Is there a way to do it? I have tried utilities like time (which returns 0) and top (which is not very useful) as the program does not run for long. Can anyone suggest a way to do this?... (5 Replies)
Discussion started by: spathical
5 Replies

7. IP Networking

measuring traffic with iptables

i have a wireless network that is connected to internet over nat.there is ap that is connected to another ap in bridge mode, on ap is used for clients, and the other is connected to the machine that is doing masquerading. so i want to measure traffic of my clients and i thought about doing it with... (0 Replies)
Discussion started by: mdfk
0 Replies

8. UNIX for Dummies Questions & Answers

how to lock keyboard without using lock command

how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device? thanks (7 Replies)
Discussion started by: dianayun
7 Replies
Login or Register to Ask a Question
pthread_spin_lock(3C)					   Standard C Library Functions 				     pthread_spin_lock(3C)

NAME
pthread_spin_lock, pthread_spin_trylock - lock a spin lock object SYNOPSIS
cc -mt [ flag... ] file... [ library... ] #include <pthread.h> int pthread_spin_lock(pthread_spinlock_t *lock); #include <pthread.h> int pthread_spin_trylock(pthread_spinlock_t *lock); DESCRIPTION
The pthread_spin_lock() function locks the spin lock referenced by lock. The calling thread acquires the lock if it is not held by another thread. Otherwise, the thread spins (that is, does not return from the pthread_spin_lock call()) until the lock becomes available. The results are undefined if the calling thread holds the lock at the time the call is made. The pthread_spin_trylock() function locks the spin lock referenced by lock if it is not held by any thread. Otherwise, the function fails. The results are undefined if either of these functions is called with an uninitialized spin lock. RETURN VALUES
Upon successful completion, these functions returns 0. Otherwise, an error number is returned to indicate the error. ERRORS
The pthread_spin_trylock() function will fail if: EBUSY A thread currently holds the lock. These functions may fail if: EINVAL The value specified by lock does not refer to an initialized spin lock object. The pthread_spin_lock() function may fail if: EDEADLK The calling thread already holds the lock. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
pthread_spin_destroy(3C), pthread_spin_unlock(3C), attributes(5), standards(5) SunOS 5.11 30 Jan 2004 pthread_spin_lock(3C)