Re: rfv: mem HAL for IRIX

This is a discussion on Re: rfv: mem HAL for IRIX within the SNMP Coders forums, part of the Networking and Network Related category; Wes Hardaker wrote: >>>>>> "TA" == Thomas Anders <thomas.anders@blue-cable.de&...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-28-2006
Thomas Anders
 
Posts: n/a
Default Re: rfv: mem HAL for IRIX

Wes Hardaker wrote:
>>>>>> "TA" == Thomas Anders <thomas.anders@blue-cable.de> writes:

>
> Err, the one thing that worries about this patch is that you're hard
> coding block size values in various places:
>
> TA> + mem->size = meminfo.physmem + (swaptotal*512/pagesz);
> ^^^
> and in:
>
> TA> + mem->units = 1024;
> TA> + mem->size = swaptotal/2; /* blocks to KB */
> TA> + mem->free = swapfree/2; /* blocks to KB */
> mem-> other = -1;
>
> Any chance you can actually pull the numbers from somewhere on the
> system instead?


1) I'm not aware the block size can ever be different than 512.

2) I wouldn't know where to pull it from.

3) I'm not pretending to be better than "top" which hard codes it as well.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0