lkml.org 
[lkml]   [2004]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.6.2/2.6.3 bdev floppy open/read/close 20x slower
Hi,

the following program:

#include <unistd.h>
#include <fcntl.h>

int main(void)
{
int i;
for (i = 0; i < 10; i++) {
char buf[512];
int fd = open("/dev/fd0", O_RDWR);
read(fd, buf, sizeof buf);
close(fd);
}
return 0;
}

takes (here) 1 second for Linux kernel 2.6.1 but 20 seconds for 2.6.2/3.
Unless the floppy is mounted at the same time -- then it takes 2 seconds
first time for 2.6.2 and is cached subsequently.

I know there have been some changes to allow hotplugging but isn't this
side-effect a little too harsh?

Bart

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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