From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,971d2c3c468ae3a2 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-07-09 07:14:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Message-ID: <3D2AEFD9.7030905@compaq.com> From: Stephen Carpenter User-Agent: Mozilla/5.0 (X11; U; OSF1 alpha; en-US; rv:0.9.4.1) Gecko/20020517 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: File and record locks References: <1026143512.25156.0.nnrp-12.c246a78e@news.demon.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 09 Jul 2002 14:21:03 GMT NNTP-Posting-Host: 16.37.168.94 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1026224463 16.37.168.94 (Tue, 09 Jul 2002 07:21:03 PDT) NNTP-Posting-Date: Tue, 09 Jul 2002 07:21:03 PDT Organization: Compaq, part of the new hp Xref: archiver1.google.com comp.unix.tru64:8103 To look at the # of file/record locks in use try compiling and running this program: /* * Show the number of record locks configured on a system * * This program should be run set group-id kmem */ #include #include #include #include #include /* * Define the name lists were are interested in */ struct nlist name_list[] = { { "_flckinfo" }, { 0 } }; void main () { int kmem; struct flckinfo lock_info; kmem = open ("/dev/kmem", 0); /* * Get the kernel name list */ nlist ("/vmunix", name_list); /* * Read the value of flckinfo */ lseek (kmem, (off_t) name_list[0].n_value, 0); read (kmem, &lock_info, sizeof (struct flckinfo)); /* * Print out the lock information */ printf ("Max records locked = %d\n", (int) lock_info.recmax); printf ("Max files locked = %d\n", (int) lock_info.filmax); printf ("Lock records in use = %d\n", (int) lock_info.reccnt); printf ("File headers in use = %d\n", (int) lock_info.filcnt); printf ("Total lock records used = %d\n", (int) lock_info.rectot); printf ("Total file headers used = %d\n", (int) lock_info.filtot); } On a V5.x box to see the number of record locks configured run: # sysconfig -q vfs nlock_record vfs: nlock_record = 10000 Use sysconfigdb or dxkerneltuner to change the nlock_record parameter. Regards, Stephen Carpenter