This is a utility which will count which pages of a file are in core (ie in the kernel buffer cache). ### ---------------------------------------------------------------------- ### | Copyright © Unpublished, Rational Software Corporation. All Rights | ### | Reserved. The software reffered to herein contains proprietary ### | and confidential | ### | information of Rational and its suppliers. Use, disclosure or | ### | reproduction is prohibited without the prior express written | ### | consent of Rational Software Corporation. | ### | This software is provided "as is", with no warranty of fittness | ### | or correctness. We have not tested this code. We suggest | ### | customers test it to their own software development standards | ### | in a test environment. | ### ---------------------------------------------------------------------- The utility is called pgs (pages) and its usage is: pgs [-s [-h]] file ... So, suggested use is: 0. Put 'pgs' somewhere, eg: /tmp 1. cd to the db subdirectory of the vob storage directory 2. Type (eg) "/tmp/pgs vob_db.d0* vob_db.k*" This will get you get info all the database files in a particular VOB. I also include a script 'allvobs' to extract this information for all VOBs on a VOB server. This script assumes that the 'pgs' executable has been put in /tmp; you may want to change that. Also, you may find it more convenient to only get summary information (use the -s flag to pgs). Feel free to edit the script aas you please. The -s option prints the total (summary) information only. The -h option when used with -s suppresses printing of the heading. These options are intended for use with cron jobs that monitor how much of each VOB is in the buffer cache. The (full) output should look like vob_db.d01: in core pages: 12805 not in core pages: 12061 total pages: 24866 ( 51.50% in core) vob_db.d02: in core pages: 37055 not in core pages: 1733 total pages: 38788 ( 95.53% in core) vob_db.d03: in core pages: 6855 not in core pages: 733 total pages: 7588 ( 90.34% in core) vob_db.k01: in core pages: 9559 not in core pages: 4015 total pages: 13574 ( 70.42% in core) vob_db.k02: in core pages: 6412 not in core pages: 15842 total pages: 22254 ( 28.81% in core) vob_db.k03: in core pages: 7622 not in core pages: 856 total pages: 8478 ( 89.90% in core) vob_db.k04: in core pages: 2521 not in core pages: 577 total pages: 3098 ( 81.38% in core) ---------------------------------------------------- total in core pages: 79277 total not in core pages: 39369 total pages: 118646 ( 66.82% in core) total in core bytes: 324718592 total bytes: 485974016