Groups > Novell > Novell Libc > Re: swap file information




swap file information

swap file information
Fri, 28 Sep 2007 20:09:33 GMT
hi,

1. need to collect swap file information using libc libraries
like maximum swap file,  used etc.

2. also can someone tell me where to look for short term cache hit%?

any quick pointers?

thanks in advance ! 

Post Reply
Re: swap file information
Fri, 28 Sep 2007 21:29:24 GMT
There is some swap info available from netware_vmem_info(). I'm pretty sure
that LibC doesn't have an interface to report short term cache hit%. Are you
seeing that reported in NRM or some other user interface?

Jeff Lawson
NetWare Core OS
LibC Engineering

>>> On 9/28/2007 at 2:09 PM, in message
<1cdLi.5134$NG7.2632@kovat.provo.novell.com>,
Ritz<gati_ritesh@yahoo.com>
wrote:
> hi,
> 
> 1. need to collect swap file information using libc libraries
> like maximum swap file,  used etc.
> 
> 2. also can someone tell me where to look for short term cache hit%?
> 
> any quick pointers?
> 
Post Reply
Re: swap file information
Fri, 28 Sep 2007 21:45:01 GMT
Thanks Jeff for quick reply

1.
what i needed is total swap space size.
I can see one interface sysinfo but on importing it, it does not work. any 
hack or something to get swap space size and free swap file size?
I am using clib.

2.
how can i calculate short term cache hit%?

once agein thanking you in advance !


"Jeff Lawson" <JLAWSON@novell.com> wrote in message 
news:46FD1DC2.EF3B.00E9.0@novell.com...
> There is some swap info available from netware_vmem_info(). I'm pretty 
> sure
> that LibC doesn't have an interface to report short term cache hit%. Are 
> you
> seeing that reported in NRM or some other user interface?
>
> Jeff Lawson
> NetWare Core OS
> LibC Engineering
>
>>>> On 9/28/2007 at 2:09 PM, in message
> <1cdLi.5134$NG7.2632@kovat.provo.novell.com>,
Ritz<gati_ritesh@yahoo.com>
> wrote:
>> hi,
>>
>> 1. need to collect swap file information using libc libraries
>> like maximum swap file,  used etc.
>>
>> 2. also can someone tell me where to look for short term cache hit%?
>>
>> any quick pointers?
>>
>> thanks in advance ! 

Post Reply
Re: swap file information
Fri, 28 Sep 2007 21:49:48 GMT
1. swap file space is also reported under monitor.nlm
2. short term cache hit% is reported by monitor.nlm


"Ritz" <gati_ritesh@yahoo.com> wrote in message 
news:xBeLi.5165$NG7.2762@kovat.provo.novell.com...
> Thanks Jeff for quick reply
>
> 1.
> what i needed is total swap space size.
> I can see one interface sysinfo but on importing it, it does not work. any

> hack or something to get swap space size and free swap file size?
> I am using clib.
>
> 2.
> how can i calculate short term cache hit%?
>
> once agein thanking you in advance !
>
>
> "Jeff Lawson" <JLAWSON@novell.com> wrote in message 
> news:46FD1DC2.EF3B.00E9.0@novell.com...
>> There is some swap info available from netware_vmem_info(). I'm pretty

>> sure
>> that LibC doesn't have an interface to report short term cache hit%.
Are 
>> you
>> seeing that reported in NRM or some other user interface?
>>
>> Jeff Lawson
>> NetWare Core OS
>> LibC Engineering
>>
>>>>> On 9/28/2007 at 2:09 PM, in message
>> <1cdLi.5134$NG7.2632@kovat.provo.novell.com>,
Ritz<gati_ritesh@yahoo.com>
>> wrote:
>>> hi,
>>>
>>> 1. need to collect swap file information using libc libraries
>>> like maximum swap file,  used etc.
>>>
>>> 2. also can someone tell me where to look for short term cache
hit%?
>>>
>>> any quick pointers?
>>>
>>> thanks in advance !
>
> 

Post Reply
Re: swap file information
Mon, 01 Oct 2007 08:41:05 GMT
Ritz wrote:
...
> what i needed is total swap space size.
...

I believe you can use a function that returns file size and pass 
"SYS:/_SWAP_.MEM" to it. Because swap files can be located on any
volumes, 
not only on SYS, your program should call this function for every existing 
file with name _SWAP_.MEM in the root of every volume and sum their sizes.

Hope this helps

Dmitry

Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact