Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
speed-problem with automounted usb stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
MegaVolt
n00b
n00b


Joined: 24 Aug 2005
Posts: 27

PostPosted: Sat Oct 29, 2005 10:29 am    Post subject: speed-problem with automounted usb stick Reply with quote

i use hald, dbus and ivman (+kde)
when i connect an usb (2.0) stick it gets outomounted and i can read / write
read speed is fine, about 10 mb/s
but write speed is only about 30-40 kb/s
when i unmount and manually remount (mount /dev/sdc1 /mnt/test) everything works fine, read and write speed about 10 mb/s
the problem occured both on my pentium-m laptop and my amd64 desktop

i also use a usb storage disc, it works just fine with automound, about 20-25 mb/s read and write when automounted without any problems

any ideas?
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Sat Oct 29, 2005 12:40 pm    Post subject: Reply with quote

Didn't know how automount works, but the issue with low write speed is often caused by synchronous writings. So normaly if writing to your usb drive, a part of the data is kept in memory and gets stored when unmounting the USB drive. If specifing the "sync" option (e.g. in your fstab) data gets completely written to your usb drive. But I've heard muliple times about low writing speed when using synchronous writes. So I think you use the sync option and therefore your speed is that bad. But don't ask me where to remove the sync option since I've never used automount and therefore I don't know where all the se options are specified.

Mfg

Sino
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3925
Location: Hamburg

PostPosted: Sat Oct 29, 2005 1:39 pm    Post subject: Reply with quote

It's a vfat file system ? Then have a look at the mount option sync.
Back to top
View user's profile Send private message
MegaVolt
n00b
n00b


Joined: 24 Aug 2005
Posts: 27

PostPosted: Sat Oct 29, 2005 2:19 pm    Post subject: Reply with quote

usb stick, they use usbfs afaik
i have no idea how to look at the sync option since i use automounting ;) how to turn it off?
btw its definitivly sync related, i did mount that usb stick manually with sync turned on and its slow like automount
manual mount without sync is fast

and it seems to be fs-related since my usb storage disc (XFS) workes fine

even better then turning sync off (possible data loss on usb sticks) would be to speed it up ... is that possible? if not turning it off would work for now ... how to do so when automounting?
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3925
Location: Hamburg

PostPosted: Sat Oct 29, 2005 2:26 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-389783-highlight-vfat+usb+sync.html
Back to top
View user's profile Send private message
MegaVolt
n00b
n00b


Joined: 24 Aug 2005
Posts: 27

PostPosted: Sat Oct 29, 2005 3:25 pm    Post subject: Reply with quote

thx didnt include that sync keyword in my previous search ;)

editing /usr/share/hal/fdi/90default-policy/storage-policy.fdi did it and the file is quite easy to understand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum