[lkml]   [1996]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectReally slow /dev/zero in 2.1.9

I just tried making a new swapfile today (needed a bit more swap for
my latest project). It took "forever" to dd /dev/zero to the swapfile.

So I took a look at drivers/char/mem.c. Down around line 200 is a for
loop that's filling the user buffer _one byte at a time_ and checking
if we need rescheduling between each byte. It should probably be using
clear_user(), but I'm unsure if it's safe to do it in one big whack.


Jeff Voskamp

 \ /
  Last update: 2005-03-22 13:38    [W:0.027 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site