Sponsored Content
Top Forums UNIX for Advanced & Expert Users What process is writing to disk? Post 302252671 by otheus on Thursday 30th of October 2008 05:15:36 AM
Old 10-30-2008
Quote:
Originally Posted by radoulov
Ah ...
Did you try to stop mysql (if possible given your SLA, of course Smilie)?
Here's the weird thing. I've stopped just about everything. The one thing I cannot stop is FTP and NFS. Samba, syslog, mysql, postfix, cron have all been shut down temporarily with no effect.

NFS is not exporting the disk in question. FTP has several log files open. The culprit might be /var/log/wtmp as the other logs are relatively idle (only when users are actually transferring, which is relatively rate).

Code:
proftpd 12155  ftp    3w   REG        8,4   5086871 12767115 /var/log/proftpd/replicate.log
proftpd 12155  ftp    6w   REG        8,4   1924515 12767452 /var/log/proftpd/auth.log
proftpd 12155  ftp    7w   REG        8,4   4340157 12767454 /var/log/proftpd/access.log
proftpd 12155  ftp    8u   REG        8,4      4936  9755364 /var/run/proftpd/proftpd.scoreboard
proftpd 12155  ftp   11w   REG        8,4  68647296 12767550 /var/log/wtmp
proftpd 12155  ftp   12w   REG        8,4   4668852 12767913 /var/log/proftpd/transfer.log

I rotated the wtmp file. The new one is less than 5k in size, so I think I can eliminate it. Watching "du -sh /var/log/proftpd" leads me to conclude that it is also not changing in size.

Any known subversive software that writes to disk a lot?

Last edited by otheus; 10-30-2008 at 06:23 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Writing file to disk takes time

Hi All, I am working on a Solaris machine. When i use a particular software to generate some files, the log shows around 0 to 3 secs for generating each file. But the same when i see on the disk it shows double the time difference between two file generation. For example if file A takes 0 secs... (7 Replies)
Discussion started by: nileshkarania
7 Replies

2. UNIX for Advanced & Expert Users

disk i/o per process

Dear All, We are using AIX 5.2 with IBM pseries servers. I want to check disk io for a running process. Please if anybody can help me. Thanks. Aqeel Anwar (1 Reply)
Discussion started by: aqeelcu@hotmail
1 Replies

3. AIX

disk i/o per process on aix 5.2

hi, i am working on aix 5.2, i want to check disk i/o for any running process. please if anybody can help me. thanks Aqeel Anwar (1 Reply)
Discussion started by: system-admin
1 Replies

4. Shell Programming and Scripting

Which Process is writing this Log file!!

Hello , Well I have some /tmp files which are growing very quickly..Can anyone suggest me a way to find which process is logging into this file :confused: ? Thanks very much in Advance!! Mohammed (2 Replies)
Discussion started by: Mohammed
2 Replies

5. UNIX for Dummies Questions & Answers

Which process is doing all the writing

Hi We are running an IBM P570 with AIX and Unidata. The disk monitor in nmon is showing that one of our logical volumes is hitting 100% most of the time, and that 98% of it is write. I am trying to identify the top processes in terms of disk IO, obviously particularly write so that we... (4 Replies)
Discussion started by: idwalton72
4 Replies

6. Linux

How to follow up disk mirroring process?

Hi, The OS is SuSE Enterprise 11 and the system is HP WS460c G6 Blade with hardware disk array RAID 1 mirror. One disk was just replaced and the disk mirroring process is on its way. My question is how to follow up / monitor the disk mirroring process? I know hpacucli can do the job, but there... (0 Replies)
Discussion started by: aixlover
0 Replies

7. UNIX for Dummies Questions & Answers

Writing a loop to process multiple input files by a shell script

I have multiple input files that I want to manipulate using a shell script. The files are called 250.1 through 250.1000 but I only want the script to manipulate 250.300 through 250.1000. Before I was using the following script to manipulate the text files: for i in 250.*; do || awk... (4 Replies)
Discussion started by: evelibertine
4 Replies

8. Ubuntu

Reading disk usage per process

Hi, I am using iostat and /proc/<pid>/status to determine the disk usage per process. I have a question regarding buffer cache. When I am reading a 10MB file, the counters I get show that <5MB of the file is read. Do the counters in iostat and /proc/<pid> reflect the amount of data that is... (2 Replies)
Discussion started by: fidelity
2 Replies

9. 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

10. Open Source

Help with writing Shell Script to automate process using multiple commands

Hello! Need help to write a Linux script that can be run from windows using command/Cygwin/any other way. I am new to scripting, actually i am trying to automate server health check like free disk space, memory along with few services status, if any services is not running then start services ,... (7 Replies)
Discussion started by: Sayed Ibrahim
7 Replies
prealloc(2)							System Calls Manual						       prealloc(2)

NAME
prealloc - preallocate fast disk storage SYNOPSIS
DESCRIPTION
is used to preallocate space on a disk for faster storage operations. fildes is a file descriptor obtained from a or system call for an ordinary file of zero length. It must be opened writable, because it will be written to by size is the size in bytes to be preallocated for the file specified by fildes. At least size bytes will be allo- cated. Space is allocated in an implementation-dependent fashion for fast sequential reads and writes. The EOF in an extended file is left at the end of the preallocated area. The current file pointer is left at zero. The file is zero-filled. Using on a file does not give the file an attribute that is inherited when copying or restoring the file using a program such as or (see cp(1) and tar(1)). It simply ensures that disk space has been preallocated for size bytes in a manner suited for sequential access. The file can be extended beyond these limits by operations past the original end of file. However, this space will not necessarily be allo- cated using any special strategy. RETURN VALUE
Upon successful completion, returns 0; otherwise, it returns -1 and sets to indicate the error. ERRORS
fails and no disk space is allocated if any of the following conditions are encountered: [EBADF] fildes is not a valid open file descriptor opened for writing. [EDQUOT] User's disk quota block limit has been reached for this file system. [EFBIG] size exceeds the maximum file size or the process's file size limit. See ulimit(2). [ENOSPC] Not enough space is left on the device to allocate the requested amount; no space was allocated. [ENOTEMPTY] fildes not associated with an ordinary file of zero length. EXAMPLES
Assuming a process has opened a file for writing, the following call to preallocates at least 50000 bytes on disk for the file represented by file descriptor outfd: WARNINGS
Allocation of the file space is highly dependent on current disk usage. A successful return does not tell you how fragmented the file actually might be if the disk is nearing its capacity. AUTHOR
was developed by HP. SEE ALSO
prealloc(1), creat(2), dup(2), fcntl(2), open(2), prealloc64(2), read(2), ulimit(2), write(2). prealloc(2)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy