Re: Results of investigating optimizing calloc()...

1999-08-06 Thread Tim Vanderhoek
On Sat, Aug 07, 1999 at 12:46:05PM +1000, Chris wrote: > > > The issue is not speed, because this is something we do in the > > background when there's nothing else to do. The issue is to avoid > > thrashing the cache. [...] > Two things, You haven't considered SMP yet. -- This is my .signatur

Re: Results of investigating optimizing calloc()...

1999-08-06 Thread Tim Vanderhoek
On Sat, Aug 07, 1999 at 12:46:05PM +1000, Chris wrote: > > > The issue is not speed, because this is something we do in the > > background when there's nothing else to do. The issue is to avoid > > thrashing the cache. [...] > Two things, You haven't considered SMP yet. -- This is my .signatu

Re: Results of investigating optimizing calloc()...

1999-08-06 Thread Chris
Dag-Erling Smorgrav wrote: > > Chris writes: > > Anyways thats all I can think of. The only way I can see that using DMA > > to refresh pages as a faster method is if the DMA controller can do it > > quicker than the CPU which I doubt is likely, also it will only be > > useful if it can do 32-bi

Re: Results of investigating optimizing calloc()...

1999-08-06 Thread Chris
Dag-Erling Smorgrav wrote: > > Chris <[EMAIL PROTECTED]> writes: > > Anyways thats all I can think of. The only way I can see that using DMA > > to refresh pages as a faster method is if the DMA controller can do it > > quicker than the CPU which I doubt is likely, also it will only be > > usefu

Re: Results of investigating optimizing calloc()...

1999-08-05 Thread Dag-Erling Smorgrav
Chris writes: > Anyways thats all I can think of. The only way I can see that using DMA > to refresh pages as a faster method is if the DMA controller can do it > quicker than the CPU which I doubt is likely, also it will only be > useful if it can do 32-bit addresses. Grr.. *read what I f###ing

Re: Results of investigating optimizing calloc()...

1999-08-05 Thread Dag-Erling Smorgrav
Chris <[EMAIL PROTECTED]> writes: > Anyways thats all I can think of. The only way I can see that using DMA > to refresh pages as a faster method is if the DMA controller can do it > quicker than the CPU which I doubt is likely, also it will only be > useful if it can do 32-bit addresses. Grr..

Re: Results of investigating optimizing calloc()...

1999-08-05 Thread Chris
John-Mark Gurney wrote: > > Dag-Erling Smorgrav scribbled this message on Aug 4: > > "Kelly Yancey" writes: > > > [...] > > > > Which reminds me - has anyone thought of using DMA for zeroing pages, > > to avoid cache invalidation? The idea is to keep a chunk of zeroes on > > disk and DMA it into

Re: Results of investigating optimizing calloc()...

1999-08-05 Thread Dag-Erling Smorgrav
Peter Jeremy writes: > Dag-Erling Smorgrav wrote: > > The idea is to keep a chunk of zeroes on disk and DMA it into memory > Have you looked at disk latencies recently? A modern CPU could zero- > fill a decent fraction of its RAM in the time taken to fetch a page of > zeroes from the platter. A

Re: Results of investigating optimizing calloc()...

1999-08-05 Thread Chris
John-Mark Gurney wrote: > > Dag-Erling Smorgrav scribbled this message on Aug 4: > > "Kelly Yancey" <[EMAIL PROTECTED]> writes: > > > [...] > > > > Which reminds me - has anyone thought of using DMA for zeroing pages, > > to avoid cache invalidation? The idea is to keep a chunk of zeroes on > > d

Re: Results of investigating optimizing calloc()...

1999-08-05 Thread Dag-Erling Smorgrav
Peter Jeremy <[EMAIL PROTECTED]> writes: > Dag-Erling Smorgrav <[EMAIL PROTECTED]> wrote: > > The idea is to keep a chunk of zeroes on disk and DMA it into memory > Have you looked at disk latencies recently? A modern CPU could zero- > fill a decent fraction of its RAM in the time taken to fetch

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread John-Mark Gurney
Dag-Erling Smorgrav scribbled this message on Aug 4: > "Kelly Yancey" writes: > > [...] > > Which reminds me - has anyone thought of using DMA for zeroing pages, > to avoid cache invalidation? The idea is to keep a chunk of zeroes on > disk and DMA it into memory instead of clearing pages "manual

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread Arun Sharma
On Wed, Aug 04, 1999 at 01:20:59PM +0200, Dag-Erling Smorgrav wrote: > "Kelly Yancey" writes: > > [...] > > Which reminds me - has anyone thought of using DMA for zeroing pages, > to avoid cache invalidation? The idea is to keep a chunk of zeroes on > disk and DMA it into memory instead of cleari

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread John-Mark Gurney
Dag-Erling Smorgrav scribbled this message on Aug 4: > "Kelly Yancey" <[EMAIL PROTECTED]> writes: > > [...] > > Which reminds me - has anyone thought of using DMA for zeroing pages, > to avoid cache invalidation? The idea is to keep a chunk of zeroes on > disk and DMA it into memory instead of cl

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread Arun Sharma
On Wed, Aug 04, 1999 at 01:20:59PM +0200, Dag-Erling Smorgrav wrote: > "Kelly Yancey" <[EMAIL PROTECTED]> writes: > > [...] > > Which reminds me - has anyone thought of using DMA for zeroing pages, > to avoid cache invalidation? The idea is to keep a chunk of zeroes on > disk and DMA it into memo

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread Peter Jeremy
Dag-Erling Smorgrav wrote: >Which reminds me - has anyone thought of using DMA for zeroing pages, This sounds reasonable. Some DMA engines support filling regions and memory-memory copies, but I'm not sure about what can be done with the DMA engine(s) in PCs. > The idea is to keep a chunk of zer

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread Peter Jeremy
Dag-Erling Smorgrav <[EMAIL PROTECTED]> wrote: >Which reminds me - has anyone thought of using DMA for zeroing pages, This sounds reasonable. Some DMA engines support filling regions and memory-memory copies, but I'm not sure about what can be done with the DMA engine(s) in PCs. > The idea is to

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread Wilko Bulte
As Dag-Erling Smorgrav wrote ... > "Kelly Yancey" writes: > > [...] > > Which reminds me - has anyone thought of using DMA for zeroing pages, > to avoid cache invalidation? The idea is to keep a chunk of zeroes on > disk and DMA it into memory instead of clearing pages "manually". This > assumes

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread Wilko Bulte
As Dag-Erling Smorgrav wrote ... > "Kelly Yancey" <[EMAIL PROTECTED]> writes: > > [...] > > Which reminds me - has anyone thought of using DMA for zeroing pages, > to avoid cache invalidation? The idea is to keep a chunk of zeroes on > disk and DMA it into memory instead of clearing pages "manual

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread Dag-Erling Smorgrav
"Kelly Yancey" writes: > [...] Which reminds me - has anyone thought of using DMA for zeroing pages, to avoid cache invalidation? The idea is to keep a chunk of zeroes on disk and DMA it into memory instead of clearing pages "manually". This assumes your disk supports DMA, of course. DES -- Dag

Re: Results of investigating optimizing calloc()...

1999-08-04 Thread Dag-Erling Smorgrav
"Kelly Yancey" <[EMAIL PROTECTED]> writes: > [...] Which reminds me - has anyone thought of using DMA for zeroing pages, to avoid cache invalidation? The idea is to keep a chunk of zeroes on disk and DMA it into memory instead of clearing pages "manually". This assumes your disk supports DMA, of

Re: Results of investigating optimizing calloc()...

1999-08-03 Thread Matthew Dillon
:while the thread was still fresh, but I got distracted by work and other :projects, so here it is a tad late. : : For those of you who hadn't been following the previous calloc() thread: : I had theorized that we could see an improvement in the performance of :... It's always fun to run the

Re: Results of investigating optimizing calloc()...

1999-08-03 Thread Matthew Dillon
:while the thread was still fresh, but I got distracted by work and other :projects, so here it is a tad late. : : For those of you who hadn't been following the previous calloc() thread: : I had theorized that we could see an improvement in the performance of :... It's always fun to run th

Results of investigating optimizing calloc()...

1999-08-03 Thread Kelly Yancey
Sorry for posting this out-of-the-blue, I meant to post it last week while the thread was still fresh, but I got distracted by work and other projects, so here it is a tad late. For those of you who hadn't been following the previous calloc() thread: I had theorized that we could see an imp

Results of investigating optimizing calloc()...

1999-08-03 Thread Kelly Yancey
Sorry for posting this out-of-the-blue, I meant to post it last week while the thread was still fresh, but I got distracted by work and other projects, so here it is a tad late. For those of you who hadn't been following the previous calloc() thread: I had theorized that we could see an im