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;
return(sysctlbyname(usermem_mib_name, realmem, len, 0, 0))
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


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.

Thanks and regards,
Deepak
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org