- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- What process is writing to what big or many little...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 06:32 AM
тАО02-16-2006 06:32 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 06:44 AM
тАО02-16-2006 06:44 AM
Re: What process is writing to what big or many little files?
DIR/SIZE=ALL/DATE/SELECT=SIZE=MINIMUM=100000 [*...]*.*;*/OWNER
This will give a list of all the files larger than 100,000 blocks as well as when it was created and who the owner is. The number can be adjusted to whatever value you need. Aside from that I would suggest writing a command procedure that uses the SHOWDEV/FILES/OUT=tmp-file-name and then open the temp-file-name and read each file name looking for files larger than a value passed in P1 to the procedure.
As for creating a large number of small files if they are all the same name then you could use the SET FILE/VERSION=n to automatically keep more than that number of files from being present in the directory at a time. If the file names are not the same name...well, I will have to think on that one a little more.
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 07:26 AM
тАО02-16-2006 07:26 AM
Re: What process is writing to what big or many little files?
if many small files MIGHT be the issue,
$ DIR/SIZE/SIN="-0:10"
will show any files less than 10 minutes old.
Adjust time value to your needs, but realise that evaluating the dates of MANY files, especially if BIG directories, requires some time itself.
OTOH, this WILL in one pass eliminate the "many small file creation" option.
hth,
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 10:35 AM
тАО02-16-2006 10:35 AM
Re: What process is writing to what big or many little files?
$ DFU SEARCH device: -
/SIZE=MINIMUM=10000 /ALLOCATED -
/CREATED=SINCE=-2 !large files last 2 hours
$ DFU SEARCH device: /CHARACTERISTICS=DIR -
/SIZE=MINIMUM=100 !large directories
$ DFU DIRECTORY device: /VERSION=1000 !many versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 11:30 AM
тАО02-16-2006 11:30 AM
Re: What process is writing to what big or many little files?
A directory for recent files is a reasonable approach. DIR/SINCE [*...] is probably too slow for that though. DFU is recommended instead.
DFU is fast because it walks INDEXF.SYS and deals with directories as an afterthought (LIB$FID_TO_NAME)
Thus is will also catch temp file which are not entered into a directory, or perhaps move between directories.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 08:58 PM
тАО02-16-2006 08:58 PM
Re: What process is writing to what big or many little files?
The solution is quotas, in this particular case, disk quotas.
Disk quotas, stop the offending process dead. The balance is that it is possible to terminate a job which needed "just one more block". In order to prevent a runaway process from filling a disk, this is the cost of that safety.
I often recommend that clients consider this approach. In these relatively disk space rich days, I recommend that the quotas be somewhat high (say 2+ times the anticipated amount), but any reasonable quota short of infinity will have the desired effect.
My first encounter with this type of problem was back on about VAX/VMS Version 2.0. My officemate left something running overnight, and it produced a bit more printed output to the printer (spooled to the system device) than intended. In the morning, the Operations manager was, to put it politely, rather upset).
This problem occurs with both spooled files and disk resident files, and the solution is, admittedly, far older than VMS.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 10:57 PM
тАО02-16-2006 10:57 PM
Re: What process is writing to what big or many little files?
I just have not been on a system that had those going for ages.
Even if you set them to near infinite, you can still use the report, and specifically DIFFERENNCE between a current report and 'yesterdays' report to find out heavy users (yesterday could also be last hour or last week of course).
You'd want a perl or DCL script to report the changes by username.
Of course this this is more (only) useful if there actually are distinct usernames being used like they should be.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2006 02:35 AM
тАО02-17-2006 02:35 AM
Re: What process is writing to what big or many little files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2006 07:43 AM
тАО02-17-2006 07:43 AM
Re: What process is writing to what big or many little files?
find a runaway process doing IO. This
requires recent versions, i.e. the XFC
remedials for V7.3-2 and following released last November.
In SDA -
SDA> xfc set trace/select=level=2
Since the display here is 132 columns, I've
included an example in an attachment.
A little explanation:
The level=2 trace level starts XFC recording
reads, writes, and file system calls into
XFC. Higher levels of tracing turn on more
detailed debugging trace points. For reads
and writes, the starting and ending point of
each IO is captured. In addition, the latency of the IO is reported. The trace
displays as much of the file name as possible
along with the PID of the process doing the
IO. We get the VBN and IO size as well. The
first number on the line is a sequence number
of the trace entry (not very interesting).
The second number is a sequence number which
is incremented for every IO (all IOs, not
just XFC IOs). This allows you to match up
IO starts and completions on very busy systems.
The latency is measured using the system
cycle counter and is not valid if the IO
completes on a different processor. The
latency only includes time within XFC itself.
It does not include overhead added by the
QIO call or RMS. Cache hits are noted with
an asterisk next to the operation description.
The overhead for the level 2 tracing is
small, but measurable. The trace entries
are kept in a ring buffer containing only
2000 entries. At this time, there isn't
any way to increase the size of the buffer
at runtime (maybe next version).
In SDA, the XFC SHOW VOLUME/BRIEF and XFC
SHOW FILE/BRIEF commands may also be useful
in this kind of situation.
To set the tracing back to the default,
SDA> XFC SET TRACE/SELECT=LEVEL=1
Mark