6 More Discussions You Might Find Interesting
1. Linux
Please help me with a shell script to get the stats on many subdirectories (sub1), (sub2) etc under a mother directory (big)
/big
|
|_______sub1
|_______sub2
|_______sub3
---------
I want to know
1. What is the last file accessed in each subdirectory with date and by whom
2.... (2 Replies)
Discussion started by: digipak
2 Replies
2. Linux
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
3. Shell Programming and Scripting
So, I have a php program that i need to delete ALL files in a directory that are older than a certain age.
<?php
/* Get file stat */
$stat = stat('/apps/security/ajaba');
This is as far as I've been able to get. I know in shell programming you can easily do something like this. but I'm... (2 Replies)
Discussion started by: SkySmart
2 Replies
4. AIX
Aix 5.3 I am trying to view the IO stats. I do the sar 5 5 but that is the WIO and si different than the IO stats right? I am just blanking on this. I know there is a command that I used to run that brings up a whole bunch of live stats that run live such as mem and so on just can't rememeber... (4 Replies)
Discussion started by: rocker40
4 Replies
5. Solaris
I've been asked to gather CPU, memory and disk stats in the following format:
Cpu_Max Cpu_Min Cpu_Avg Mem_Max Mem_Min Mem_Avg Disk_Max Disk_Min Disk_Avg
Can anyone please tell me a command to gather all this info?
Thanks!
Todd (6 Replies)
Discussion started by: ungnown.admin
6 Replies
6. UNIX for Dummies Questions & Answers
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
LEARN ABOUT HPUX
prealloc
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)