Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2009 01:50:22 -0700
From:      "Edward Sanford Sutton, III" <mirror176@cox.net>
To:        freebsd-questions@freebsd.org
Subject:   How to get SystemMemorySize?
Message-ID:  <200907290150.22783.mirror176@cox.net>

next in thread | raw e-mail | index | archive | help
Something like the following should use the power of sysctl. physmem and 
usermem in place of realmem may be of use too. Just wish I knew proper values 
nad logic to tweak kern.ipc.shmmax and similar paramaters.

int realmem;
char* realmem_mib_name = "hw.realmem";
return(sysctlbyname(usermem_mib_name, &realmem, &len, 0, 0))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907290150.22783.mirror176>