#2844 Virtual Memory on Solaris

1.350
closed
5
2007-06-08
2007-06-08
Anonymous
No

---
Version 1.350 (1 June 2007)
The Running Processes module now shows real and virtual memory on Solaris.
---

It appears as though webmin has reversed available and free virtual memory values while retrieving from kstat. Also webmin is expecting free mem and recieving allocated mem value. Also mem values were expecting incorrect byte multiplication.

I fixed it for our Solaris 8 and 10 servers by changing the following (line 264 ./proc/sysv-lib.pl):

return ($stat{'physmem'}*8, $stat{'freemem'}*8, $stat{'swap_alloc'}/1024, $stat{'swap_avail'}/1024);

to:

return ($stat{'physmem'}*8, $stat{'freemem'}*8, $stat{'swap_avail'}/1048576, ($stat{'swap_avail'}-$stat{'swap_alloc'})/1048576);

Discussion

  • Jamie Cameron

    Jamie Cameron - 2007-06-08
    • status: open --> closed
     
  • Jamie Cameron

    Jamie Cameron - 2007-06-08

    Logged In: YES
    user_id=129364
    Originator: NO

    Thanks for finding this .. I will fix it as you suggested in the next Webmin release.

     

Log in to post a comment.