Re: RAID-1 performance under 2.4 and 2.6

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pádraig Brady
Date: Wednesday, July 16, 2008 - 7:52 am

Chris Snook wrote:

I was trying to speed up an app¹ I wrote which streams parts of a large file,
to separate files, and tested your advice above (on ext3 on 2.6.24.5-85.fc8).

I tested reading blocks of 4096, both to stack and page aligned buffers,
but there were negligible differences between the CPU usage between the
aligned and non-aligned buffer case.
I guess the kernel could be clever and only copy the page to userspace
on modification in the page aligned case, but the benchmarks at least
don't suggest this is what's happening?

What difference exactly should be expected from using page aligned buffers?

Note I also tested using mmap to stream the data, and there is a significant
decrease in CPU usage in user and kernel space as expected due to the
data not being copied from the page cache.

thanks,
Pádraig.

¹ http://www.pixelbeat.org/programs/dvd-vr/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RAID-1 performance under 2.4 and 2.6, Emmanuel Florac, (Tue Mar 25, 11:43 am)
Re: RAID-1 performance under 2.4 and 2.6, Chris Snook, (Tue Mar 25, 3:00 pm)
Re: RAID-1 performance under 2.4 and 2.6, Emmanuel Florac, (Tue Mar 25, 3:09 pm)
Re: RAID-1 performance under 2.4 and 2.6, Bill Davidsen, (Tue Mar 25, 3:37 pm)
Re: RAID-1 performance under 2.4 and 2.6, Bill Davidsen, (Tue Mar 25, 3:47 pm)
Re: RAID-1 performance under 2.4 and 2.6, Chris Snook, (Tue Mar 25, 4:13 pm)
Re: RAID-1 performance under 2.4 and 2.6, Bill Davidsen, (Tue Mar 25, 4:42 pm)
Re: RAID-1 performance under 2.4 and 2.6, Bart Van Assche, (Wed Mar 26, 12:15 am)
Re: RAID-1 performance under 2.4 and 2.6, Emmanuel Florac, (Wed Mar 26, 12:56 am)
Re: RAID-1 performance under 2.4 and 2.6, Emmanuel Florac, (Wed Mar 26, 1:05 am)
Re: RAID-1 performance under 2.4 and 2.6, "J.A. Magallón", (Wed Mar 26, 1:25 am)
Re: RAID-1 performance under 2.4 and 2.6, Bart Van Assche, (Wed Mar 26, 1:42 am)
Re: RAID-1 performance under 2.4 and 2.6, Emmanuel Florac, (Wed Mar 26, 4:07 am)
Re: RAID-1 performance under 2.4 and 2.6, Bart Van Assche, (Wed Mar 26, 4:15 am)
Re: RAID-1 performance under 2.4 and 2.6, Emmanuel Florac, (Wed Mar 26, 5:36 am)
Re: RAID-1 performance under 2.4 and 2.6, Bart Van Assche, (Wed Mar 26, 6:22 am)
Re: RAID-1 performance under 2.4 and 2.6, Chris Snook, (Wed Mar 26, 9:39 am)
Re: RAID-1 performance under 2.4 and 2.6, Chris Snook, (Wed Mar 26, 9:51 am)
Re: RAID-1 performance under 2.4 and 2.6, Bill Davidsen, (Thu Mar 27, 2:49 pm)
Re: RAID-1 performance under 2.4 and 2.6, Bill Davidsen, (Thu Mar 27, 2:53 pm)
Re: RAID-1 performance under 2.4 and 2.6, Bill Davidsen, (Thu Mar 27, 3:03 pm)
Re: RAID-1 performance under 2.4 and 2.6, Bart Van Assche, (Fri Mar 28, 12:44 am)
Re: RAID-1 performance under 2.4 and 2.6, Bill Davidsen, (Fri Mar 28, 5:04 am)
Re: RAID-1 performance under 2.4 and 2.6, Pádraig Brady, (Wed Jul 16, 7:52 am)
Re: RAID-1 performance under 2.4 and 2.6, Chris Snook, (Wed Jul 16, 11:18 am)