Re: Proposed new sysctl MIB nodes

Mike Karels <[email protected]> Fri, 28 Feb 2003 10:54:09 -0600
Newsgroups gmane.os.bsd.api.general
Message-ID <[email protected]>
Sorry to chip in late, but I wanted to review the thread first (including
the freebsd-arch thread).

>From Simon Burge's email:

> Jason R Thorpe wrote:

> > Ok, a u_quad (page count) it is.

> A quad for page count or total bytes?

Although I didn't see an explicit answer (other than code, which may
have crossed the other message), I'd like to suggest that a "quad" in
bytes would be better than one in pages.  Applications really don't
want the value in pages, but in bytes.  Applications are highly likely
to multiply the returned value by the page size anyway, and a 64-bit
value in bytes should hold us for quite a while.  It seems to me that it
would be best to return a 64-bit (or larger) value in bytes, and quad
appears to be the best way to do this.  It seems to me that the only reason
to use pages is to try to squeeze the value into an int, presumably still
32 bits on many systems.

		Mike

---------------------------------------------------------------------
The BSD APIs Discussion Mailing List
To unsubscribe:
send "unsubscribe bsd-api-discuss" to majordomo-DZEk9q7Sfju/3pe1ocb+swC/[email protected]