1 Feb 2003 01:47
Re: PAE (was Re: bus_dmamem_alloc_size())
Terry Lambert <tlambert2 <at> mindspring.com>
2003-02-01 00:47:36 GMT
2003-02-01 00:47:36 GMT
Peter Wemm wrote: > Gary Thorpe wrote: > > Would this be part of a unified buffer-cache scheme though? If I have > > been following correctly, this memory cannot be directly mapped into > > processes address space (i.e. a process in one "segment" cannot access > > directly memory in another "segment"), so how would it be useful as a > > cache? Wouldn't this need lots of data copying as in bounce buffers? > > It the nasty PSE36 hack that cant be used for this. PAE works fine as > cache since it is all available to all processes. What Peter said: the thing you don't get is the ability to have more than 4G of KVA + UVA space, unless you split the VM and buffer cache. Also what Peter said about the performance penalty that comes from PAE, and what I said about the reliability penalty from #ifdef'ing and seperately maintaining the code side-by-side. -- Terry To Unsubscribe: send mail to majordomo <at> FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert <at> fledge.watson.org Network Associates Laboratories
On Tue, 4 Feb 2003 phk <at> freebsd.org wrote:
>
> There are some irritating implications of making device names truly
> variable size, and I am not yet comfortable making the semantic
> changes it causes, people calle makedev() and make_dev() from the
> damnest places.
>
> In fact, I am not even convinced doing the work would have a positive
> payoff in the end compared to sticking with KISS and just taking
> the memory hit for a longer default buffer.
>
> I decided to increase the limit to 63 characters for now, and revisit
> the issue if this limit ever becomes a problem. I personally expect
> and hope that any device name approaching than 63 characters would
> hit against other (esthetical) boundaries first.
>
> We currently allocate 50 dev_t's at compile time (to be able to
> make it until malloc(9) works) and the rest with malloc(9). The
> current size of a dev_t is 140 bytes + space for the name, so in
> theory we can allow for 116 bytes long names at a net cost of only
> 50 times the increase since malloc(9) already allocates us 256 bytes
> buckets, so the net cost of this change was 2400 bytes.
>
RSS Feed