Re: Proposed new sysctl MIB nodes
Julian Elischer <[email protected]> Thu, 27 Feb 2003 14:07:50 -0800 (PST)
| Newsgroups | gmane.os.bsd.api.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 27 Feb 2003, Jason R Thorpe wrote: > On Thu, Feb 27, 2003 at 12:05:18PM -0800, Julian Elischer wrote: > > > Since FreeBSD has had for ages: > > > > hw.physmem: 130732032 > > hw.usermem: 100630528 > > hw.pagesize: 4096 > > > > it seems a little redundant to give teh same numbers divided by > > hw.pagesize. > > > > moving them to be defined as 64 bit ints might be good but most apps > > wouldn't notice. They are ususally used in their ascii form by scripts > > etc. > > So, please tell me what happens when you have a system with >4G of RAM. > Note, I'm assuming your physmem is returned as a 32-bit int, like NetBSD's > was. > > The goal of the patch is to not divide the numbers by the page size, but > rather to provide meaningful numbers for systems with >=4G RAM. (Did you > even read my original mail??) Yes I did.. I said I think they should just be redefined as 64 bit ints.. It's just my opinion. 64 bit page counts is ok but then most applications I know of would have to fetch that, fetch the pagesize and multiply them together, and use the result. (I've mostly seen this used in scripts and they are interested in "256MB" not "65536 pages") > > -- > -- Jason R. Thorpe <thorpej-DZEk9q7Sfju/3pe1ocb+swC/[email protected]> > --------------------------------------------------------------------- The BSD APIs Discussion Mailing List To unsubscribe: send "unsubscribe bsd-api-discuss" to majordomo-DZEk9q7Sfju/3pe1ocb+swC/[email protected]