Sponsored Content
Operating Systems AIX Hard disk usage is 100 Percent Busy for any command Post 302145359 by npcrao on Wednesday 14th of November 2007 02:22:08 AM
Old 11-14-2007
Hi,

Understood the concept.

But advice me how to improve the performance.

Not only for tar but even also for chmod...it takes long time to complete.

Any parameter's to be tuned up.?

Thanks in Advance.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

disk usage command on unix?

hi, Can anyone tell me how I make a tree on the console showing the largest folders on my UNIX system? I want to know where are located the biggest files so I can free some disk space. thanks a lot. (3 Replies)
Discussion started by: gandoura
3 Replies

2. HP-UX

how can i get hard disk usage

I want to get hard disk usage hard disk usage= already allocated/total allocated first I use ioscan -kfnC disk get disk name c#t#d# then I use diskinfo /dev/rdsk/c#t#d# but this command can only get total disk size,not disk usage has any command can get that thanks:) (2 Replies)
Discussion started by: alert0919
2 Replies

3. Solaris

Command to List Hard Disk Information

I have a SparcStation5 that is making sounds that make me think the disk drive(s) may be on the verge of quiting. What is the command to list the disk types and sizes? I'm thinking I can possibly pick up another drive or two and compy the exisiting drives while they are still working. (1 Reply)
Discussion started by: muletrainman
1 Replies

4. Shell Programming and Scripting

Unix - Disk usage command

Hi, I need a command that gives me the user who is using more space in the unix box (1 Reply)
Discussion started by: abinaya
1 Replies

5. UNIX for Dummies Questions & Answers

Total cpu usage in percent(%)

How to determine the total percentage cpu usage of a server having 4 cpu cores(quad core)? (3 Replies)
Discussion started by: proactiveaditya
3 Replies

6. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

7. Linux

How to Calculate Disk Queue length and Disk Busy Time

Hi, Am doing an enhancements related to monitoring a Linux disk I/O statistics. The /proc/diskstats file is used to get the each disk I/O statistics. But, It returns the raw value. How to calculate the Disk Queue Length and Disk Busy time from the raw values. Guide me. (1 Reply)
Discussion started by: maruthu
1 Replies

8. AIX

Command to check the busy % for a hard disk device like hdisk5

Please help with command to check the busy % for a hard disk device like hdisk5 Best regards, Vishal (7 Replies)
Discussion started by: Vishal_dba
7 Replies

9. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

10. Shell Programming and Scripting

Need Generic command for disk space usage

Given this directory /web I need to get the current usage (in %) on Linux and Unix both using the same command on bash shell ? The command i tried was working on Unix (solaris) but does not filter the desired same value when run of Linux. My command df -h /web | awk '{print $5}' | sed -n... (5 Replies)
Discussion started by: mohtashims
5 Replies
pthread_mutexattr_getspin_np(3T)										  pthread_mutexattr_getspin_np(3T)

NAME
pthread_mutexattr_getspin_np(), pthread_mutexattr_setspin_np(), pthread_mutex_getyieldfreq_np(), pthread_mutex_setyieldfreq_np(), pthread_mutexattr_disable_handoff_np(), pthread_mutex_disable_handoff_np() - get and set mutex spin and yield frequency attributes; disable mutex-specific or process-wide mutex handoff mode SYNOPSIS
PARAMETERS
attr Pointer to the mutex attributes object whose attributes are to be set/retrieved. spin This parameter either specifies the new value of the spin attribute (set function) or points to the memory location where the spin attribute of attr is to be returned (get function). yield This parameter either specifies the new value of the yield frequency process-wide attribute (set function) or points to the mem- ory location where the yield frequency process-wide attribute is to be returned (get function). DESCRIPTION
These attributes are used to tune the mutex locking behavior for optimized application performance on multiprocessor systems. For and the attributes object attr must have previously been initialized with the function before these functions are called. Attribute: spin Mutexes can be initialized with a spin value which is used by for busy-wait iterations on the mutex lock. It is effective only on multi- processor systems. It is ignored on uniprocessor systems. For bound threads, the procedure to block on a busy mutex is quite costly. On a multiprocessor system, the thread holding the mutex may be a few instruction cycles away from releasing it. By performing a brief busy-wait before actually blocking, the lock path can avoid a great deal of overhead in these situations. For many applications, these situations are not rare. Consider a mutex used to protect a short sequence of code (e.g., to increment a counter). The mutex is held only for a few instruction cycles (plus the function call overhead for The ability to set the spin attribute allows the application writer to adjust the busy-wait to suit the duration of the common-case criti- cal section protected by each mutex. The legal values for the spin attribute are: The function will busy-wait on the mutex lock for the specified number of iterations before blocking the thread, unless the lock is acquired sooner. Larger spin values would be appropriate for mutexes associated with longer critical sections. Inhibits blocking on the mutex lock altogether. The function will busy-wait on the mutex lock until it is acquired. Uses a built-in default value for the number of busy-wait iterations. Attribute: yield Note that the yield attribute is not a per-mutex attribute, but is process-wide. That is, it affects the behavior of all mutexes. The yield attribute specifies, for the busy-wait, how frequently the processor should be yielded (via allowing other threads to execute. When the number of threads exceeds the number of processors in a system, a busy-wait on a mutex can sometimes have an adverse effect. The busy-wait itself can prevent the thread holding the lock from completing the associated critical section of code. By yielding the proces- sor on occasion, the thread attempting the lock may allow the thread holding the lock to reach the point at which it can release the lock. However, it still avoids the costly path to block on the mutex. The legal values for the yield attribute are: The busy-wait loop in will yield the processor after each specified number of iterations of the spin loop (where the total number of iterations is con- trolled by the per-mutex spin attribute). Inhibits yielding in the mutex lock altogether. Uses a built-in default value for the frequency of yields in the busy-wait loop. The and functions are provided for binary compatibility purposes only. They will not have any noticeable effect on mutexes. RETURN VALUE
and return the following values: Successful completion. Failure. The returned value is an error number defined in the ERRORS section. (The variable is not set). ERRORS
If an error is detected, and return one of the following error numbers. The value specified by attr, spin, or yield is invalid. was called after the process became multithreaded. WARNINGS
The settings of the spin and yield attributes can, as well as improve application performance, easily lead to degraded performance. The CPU consumption of the application may be increased. Settings which work well for a small number of threads may do poorly for larger num- bers of threads. The optimal settings will vary depending upon hardware and operating system configuration. Minor changes in the applica- tion itself may require retuning of these attributes. The programmer must analyze performance carefully to obtain an understanding of mutex contention within the application. Then, experiment with different attribute values, evaluating how mutex contention is affected, response time, and CPU consumption. AUTHOR
and were developed by HP. SEE ALSO
pthread_create(3T), pthread_mutex_init(3T), pthread_mutexattr_init(3T), rtsched(2) STANDARDS CONFORMANCE
Pthread Library pthread_mutexattr_getspin_np(3T)
All times are GMT -4. The time now is 02:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy