Sponsored Content
Top Forums UNIX for Advanced & Expert Users identify the unix process performing high disk i/o reads and writes Post 302276693 by methyl on Wednesday 14th of January 2009 11:32:10 AM
Old 01-14-2009
If you have unix Process Accounting running there is a whole suite of
supplied scripts to record data and find historic details of processes.
For an overview see:

man acct
man acctcms
man acctcom

Setting up unix Process Accounting from scratch is not trivial. On a busy
system it can need very large amounts of disc space and become a significant
load on your system itself.

If you are running a database engine such as Oracle, I/O statistics can
usually be obtained from the database engine.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sh script that reads/writes based upon contents of a file

Hi everyone, Ive got a quick question about the feasibility and any suggestions for a shell script. I can use sh or ksh, doesnt matter. Basically, Ive got an output file from a db2 command that looks like so: SCHEMA NAME CARD LEAF ELEAF LVLS ISIZE NDEL KEYS F4 F5 ... (3 Replies)
Discussion started by: rdudejr
3 Replies

2. Shell Programming and Scripting

identify the unix processes performing high disk i/o reads and writes

I would like to write shell/perl script which identifies the top unix processes that are performing high disk I/O's or/and writes If any one knows the solution please help me? -Swamy (0 Replies)
Discussion started by: avsswamy
0 Replies

3. Shell Programming and Scripting

Unix Script to find and kill a process with high memory utilization

Hi Unix Gurus i am somewhat new to unix scripting so need your help to create a script as below. # This script would find the process consuming memory beyond a certain #limit. if the meemory consumption is more than 100% for a period of 1 # minute for the specific process. the script would... (0 Replies)
Discussion started by: robinforlinux
0 Replies

4. Filesystems, Disks and Memory

Does vmstat -d give a count of actual physical writes/reads done to/from hard disk?

Hi, I am trying to find the reliability of 'vmstat -d' for showing the actual physical writes on sectors on hard disk. Can anyone please tell me if the numbers in the "sectors" field under "read" or "write" headers show a count of the actual write commands sent to disk from the low level... (2 Replies)
Discussion started by: jake24
2 Replies

5. Filesystems, Disks and Memory

Life span of HDD - maximum reads/writes etc

Hi All I was wondering how the copying of vast amounts of data affected the overall lifespan of an HDD. In my example, I'm copying approx 120GB (250,000) of files, once per hour from disk to another. Is this likely to have a detrimental effect on the disk in terms of reads/writes etc? ... (2 Replies)
Discussion started by: huskie69
2 Replies

6. Shell Programming and Scripting

Identify high values "ÿ" in a text file using Unix command

I have high values (such as ÿÿÿÿ) in a text file contained in an Unix AIX server. I need to identify all the records which are having these high values and also get the position/column number in the record structure if possible. Is there any Unix command by which this can be done to : 1.... (5 Replies)
Discussion started by: devina
5 Replies

7. UNIX for Dummies Questions & Answers

Difference between buffered disk reads and cached reads?

I was analyzing the Disk read using hdparm utility. This is what i got as a result. # hdparm -t /dev/sda /dev/sda: Timing buffered disk reads: 108 MB in 3.04 seconds = 35.51 MB/sec # hdparm -T /dev/sda /dev/sda: Timing cached reads: 3496 MB in 1.99 seconds = 1756.56 MB/sec... (1 Reply)
Discussion started by: pinga123
1 Replies

8. Shell Programming and Scripting

Help with script that reads and writes java console Minecraft

Hi I am looking for an easy way to lock game mode (0) for everyone included op on a Minecraft server. It can be a script that every time a player changes game to 1 the script changes back to 0. What the player writes is visible in the java console. I am not good at script programming and my... (0 Replies)
Discussion started by: MyMorris
0 Replies

9. Linux

Dealing with a really high amount of reads merged

I'm trying to performance tune the I/O of my web server, which is at 41.1% reads merged (If my math is correct), which seems a tad high to just be going along with the defaults. Will modifying read_ahead_kb affect the value of "reads merged" in diskstats? If not, what's a good way of tracking... (2 Replies)
Discussion started by: thmnetwork
2 Replies

10. Emergency UNIX and Linux Support

How to find which process using, while getting High Disk I/O?

In Our Production server I/O was very high, I Recived mail that Disk I/O was high, is it possible how to find which process Used this much I/O ? Iam Using Ubuntu server 12.04. Linux 3.9.3-x86_64-server33 (Li473-1200) 07/23/2014 _x86_64_ (8 CPU) 12:05:01 AM DEV ... (5 Replies)
Discussion started by: babinlonston
5 Replies
acct(4) 						     Kernel Interfaces Manual							   acct(4)

NAME
acct, acct.h - Accounting include files SYNOPSIS
#include <sys/acct.h> #include <utmp.h> DESCRIPTION
The /usr/include/sys/acct.h header file defines a type acct structure for accounting information used by various accounting files. The information in the acct.h structure is used in records in accounting files having various fixed formats. The various accounting files provide the means to monitor system use and performance and to pass charges to system users. These accounting files also serve as the permanent record of billing information for each process, CPU real time, allocated resources, and services. The acct command is used to produce desired accounting files. The /usr/include/utmp.h header file defines the record format for data written to the /var/adm/wtmp accounting login/logout database file whenever any user logs in or out. The type utmp structure defined in the /usr/include/utmp.h header file has the following members: The user login name listed in the /etc/passwd file. The user identification from the /etc/inittab ID file. The device name (console or tty43, for example). This is a flag that defines the type of entry. The type of entry flag symbolic names are as follows: No valid entry. Run level changed by the init program. Boot time entry, generated by the init program. Used by the date program when the system time is changed. Used by the date program when the system time is changed. Process spawned by the init program. A getty process waiting for login. A user process. Terminated process. Private flag for accounting programs. Process ID number. Process termination status of a process whose ut_type member value is DEAD PROCESS. Process exit status of a process whose ut_type member value is DEAD PROCESS. Time that entry was made. Host machine name. The /usr/include/sys/acct.h header file defines the record format for the data written to the process accounting database file when a process completes. The type acct structure defined in the acct.h header file contains the following members: An accounting flag for the process for which the accounting record is written. The accounting flag symbolic names are as follows: The process has been created using a fork() system call, but an exec() system call has not yet concluded. The exec() system call resets the AFORK flag. The ASU Command was run with an effective user-id of 0. Dumped core. Process killed by a signal. Exit status. A flag that indicates how the process terminated. The user ID of the process for which the accounting record is written. The group ID of the process for which the accounting record is written. The terminal from which the process was started. Beginning time. The time at which the process began. The amount of user time (in a compressed format) used by the process. The amount of system time (in a compressed format) used by the process. The amount of elapsed time (in a compressed format) since the command ran. The average amount of memory in units of 8KB that is used by the process. The number of characters (in a compressed format) transferred by the process. The number of blocks (in a compressed format) read or writ- ten by the process. The name of the command that was used to start the process. A child process created by a fork() system call receives up to 8 bytes from the parent process. An exec() system call changes the name in this field. Compressed data, which is a condensed floating-point representation, may be expanded to normal floating point by using the expacct() rou- tine. The type tacct structure, which is not a part of the /usr/include/utmp.h or the /usr/include/sys/acct.h header file definitions, is defined in a private tacct.h header file. The type tacct structure members define a format for storage of all information available from both the /var/adm/wtmp login/logoff and /var/adm/pacct process accounting databases, whose members are used by various accounting commands to pro- duce an output file to be used in an accounting report (see the acctmerg command). Members of the type tacct structure whose data types are specified as an array of two double elements have both prime-time and non-prime time values. The type tacct structure has the following members: User ID. A field for the login name having the same number of characters NSZ as the ut_user member of the utmp structure. Cumu- lative CPU time in minutes. Cumulative Kcore minutes. Cumulative number of characters transferred in blocks of 512 bytes. Cumulative number of blocks read and written. Cumulative connect time in minutes. Cumulative disk usage time in minutes. Queueing system (printer) fee in number of pages. Special services fee. A count of the number of processes. A count of the number of login sessions. A count of the number of disk samples. FILES
Accounting header files that define formats for writing accounting files. The active login/logoff database file. The active process accounting database file. RELATED INFORMATION
Commands: acct(8), acctcms(8), acctcom(8), acctcon(8), acctdisk(8), acctmerg(8), acctprc(8), runacct(8), sa(8). Functions: acct(2), fork(2), exec(2), expacct(3). delim off acct(4)
All times are GMT -4. The time now is 10:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy