very low write speed for USB flash disk (pen drive) using kernel 2.6.12-r4/6/9 Reproducible: Always Steps to Reproduce: 1.mount the pen drive with "mount /dev/myusbkey"; 2.try to copy some file into pen drive; 3. Actual Results: Using kernel gentoo-source 2.6.11 or before read/write speed of pen drive is OK. Using kernel gentoo-source 2.6.12 (r4, r6 and r9 tested) the write speed is very low. Using "uname -a ; time bonnie time bonnie -s 2 -m k7-11-r11" to test: Linux xxxx 2.6.11-gentoo-r11 #6 Wed Aug 10 12:29:19 BRT 2005 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU k7-11-r1 2 69 0.8 535 0.0 707 0.0 47091 101.2 700410 102.6 276.0 0.2 real 0m55.702s user 0m0.108s sys 0m0.221s Using "uname -a ; time bonnie -s 1 -m k7-12-r9" with kernel 2.6.12-r9: Linux xxxx 2.6.12-gentoo-r9 #2 Wed Aug 17 09:45:53 BRT 2005 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU k7-12-r9 1 4 0.2 5 0.2 344 0.0 39979 93.7 735104 143.6 188.2 1.0 real 7m34.893s user 0m0.045s sys 0m0.973s The chipset of this machine is nForce2. The same thing happens in my home with a Athlon 64 (chipset VIA K8M800) running x86 (not amd64 yet) Gentoo. Expected Results: As seen with the bonnie test with kernel 2.6.11 the write speed must be higher. $ emerge info Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.11-gentoo-r11 i686) ================================================================= System uname: 2.6.11-gentoo-r11 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -O2 -pipe -ffast-math -fomit-frame-pointer -mmmx -msse -mfpmath=sse,387" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -ffast-math -fomit-frame-pointer -mmmx -msse -mfpmath=sse,387" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS=" http://www.las.ic.unicamp.br/pub/gentoo/ http://gentoo.osuosl.org/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://www.linorg.usp.br/gentoo/distfiles/ http://adelie.polymtl.ca/ http://mirror.clarkson.edu/pub/distributions/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ rsync://linux.rz.ruhr-uni-bochum.de/gentoo/ rsync://planetmirror.com/gentoo/" LANG="pt_BR.utf8" LC_ALL="pt_BR.utf8" LINGUAS="pt_BR" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage/" USE="x86 3dnow 3dnowext X aac aalib aavm acpi adns alsa apache2 apm arts artswrappersuid avi bash-completion bitmap-fonts caps cddb cdparanoia cdr chroot cjk crypt cscope cups curl dbase dga directfb disablexmb divx4linux doc dv dvb dvd dvdr dvdread elf emacs emboss encode examples fam fb fbcon fbdev ffmpeg fla flac flash font-server foomaticdb foreign-package fortran freetype gamma gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile idea imagemagick imlib insecure-drivers ipv6 jack java javascript jikes joystick jp2 jpeg jpeg2k junit kde kerberos kqemu krb4 ldap libcaca libclamav libg++ libwww live lm_sensors lzo lzw mad maildir mailwrapper mikmod mime mmx mmxext mng motif mozinterfaceinfo mozplaintext mozsvg mozxmlterm mp3 mpeg msn mule nas ncurses network nls nocd noplugin nptl nptlonly nvidia oav odbc offensive ogg oggvorbis opengl pam pda pdflib perl plotutils png portaudio postgres ppds python qt quicktime readline real samba sasl scanner sdl serial slang slp sndfile snmp sockets softmmu speex spell sse ssl svg svga symlink tcltk tcpd tetex theora threads tiff transcode truetype truetype-fonts type1 type1-fonts unicode usb userlocales v4l v4l2 vcd videos vidix vim vorbis win32codecs wmf wxwindows xanim xine xinerama xinetd xml xml2 xprint xv xvid yv12 zlib linguas_pt_BR userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
The pen drive is "Ours Technology, Inc. OTI-6828 Flash Disk", 128 MB, USB 1.1 .
*** This bug has been marked as a duplicate of 99039 ***