How to get SystemMemorySize?

2009-07-29 Thread Edward Sanford Sutton, III
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;

How to get SystemMemorySize?

2009-07-02 Thread Deepak Madhusudan
Hi All, In linux driver in order to get the system memory size we can get it using the following call. struct sysinfo si; si_meminfo(si); return (si.tatotalram); Is there any similar call in freebsd to get the following information.Currently i am using freebsd 6.3.Please let me know.