in reply to Using Perl to detect RAM amount

Having read recently Determining memory usage of a process... which talk about Process Memory using Proc::ProcessTable, I thougth maybe making a test that assign a certain|determined amount of memory would be enoughh for what you want to achieve ? If not, I don't know any way of doing direclty such a scan. You could think about a full set of command, system specific :-( , that check that for you depending on system . eg netstat -k on Solaris, free on linux, ... wow there is a lot of system to scan. If so, Perlmonk will be a good place to ask for such a platform's specific command isn't it ?
--
dominix

Replies are listed 'Best First'.
Re: Re: Using Perl to detect RAM amount
by Tommy (Chaplain) on Jan 06, 2004 at 02:39 UTC

    Well that's usefull information, thanks :-)

    I just might have to do some real hunting. I have to ask myself how is such a thing done in other programming languages. I might end up poking around some source code for linux's "free" (if I can get it) or see if there's some way to get access to the BIOS from Perl. Haven't searched the CPAN for "BIOS" yet.

    --
    Tommy Butler, a.k.a. TOMMY
    
      Look for "Firmware" as well if you intend to test memory on Macintosh or Sun machines. (BIOS is for x86 PC only)
      --
      dominix