Re: Memory size?

From: Dan Pop (Dan.Pop_at_cern.ch)
Date: 05/27/04


Date: 27 May 2004 17:03:43 GMT

In <40B60CCA.ED21F2C4@yahoo.com> CBFalconer <cbfalconer@yahoo.com> writes:

>Joerg Schwerdtfeger wrote:
>>
>> how can I determine the total main-memory size and the size of
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> free memory available in bytes?
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> I tried to use mallinfo() from malloc.h - resulting some strange
>> values in Windows (cygwin, gcc 3.3.1) and always 0 in Linux
>> (2.4.22, gcc 3.3.2).
>
>I can't answer for Linux or Cygwin, but for DJGPP you can use
>nmalloc.zip and the malldbg module. mallinfo.h specifies the
>interface, and an info source file nmalloc.txh documents it all.
>Available at:
>
> <http://cbfalconer.home.att.net/download/nmalloc.zip>
>
>For all I know the source might function under Cygwin or Linux,
>compiled with gcc, but that has not been verified. It sticks
>quite closely to standard C, but has some deviations. To use it
>you will have to link the malloc.o and malldbg modules before the
>standard library.
>
>Bear in mind that it will not show main-memory size etc. in these
>days of virtual memory. It will show you how much you have used,
>and how much you have freed.

I.e. something completely different from what the OP wants to know...

But who cares, as long as it gives you the opportunity to post yet another
piece of self advertising ;-)

Dan

-- 
Dan Pop
DESY Zeuthen, RZ group
Email: Dan.Pop@ifh.de


Relevant Pages

  • Re: Correct syntax slrn NNTPSERVER?
    ... Linux distributions, ... they'll work with UNIX or Linux or Cygwin. ... environment, thats reserved for things like KDE/Gnome etc. ... Linux) do *not* conform to those standards and hence can not (read: ...
    (news.software.readers)
  • Re: Want to sell my Dell
    ... Cygwin is also a useful add-on for Windows because it allows you to run some ... Windows menu that drives the CD/DVD burning software built into Linux. ... Want to change the creation time of all your new photos to the time that the ...
    (alt.sys.pc-clone.dell)
  • Re: ANNOUNCE: Mudballs, A Common Lisp System Manager.
    ... This post is to announce the release of Mudballs, ... Lispworks on Mac OSX, Linux and Windows. ... Problem is I've got cygwin, and on cygwin they are using some weird symlinks that work only through the cygwin bash, and not from external programs. ...
    (comp.lang.lisp)
  • Re: If Operating Systems were Highways
    ... All of my Linux needs are now taken care ... Cygwin is just a shell atop COMMAND.EXE, ... is still subject to the occasional Windows hiccup. ... Comrade Mister Yamamoto ...
    (misc.transport.road)
  • Re: Is CMUCL insane? P.S. Me vs. CLM (Common Lisp Music)
    ... installed so you can run a better Unix emulator, ... it is a solid 2: they are committed now to making the end-run work in which cygwin pretends to be Linux. ... and if you want to try again on ACL I'll take a crack at it myself again to see what I can see. ...
    (comp.lang.lisp)