You are not logged in.

#1 2014-04-01 07:43:26

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Slow usb write speed

I'm using mate de. When writing data using arch i get 2-3 MB/s. This is not a slow USB stick because I can get 10+ MB/s on win xp. Any help appreciated.

Offline

#2 2014-04-01 23:07:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Slow usb write speed

Hello and welcome to Arch Linux forums :-)

We need more information.
How exactly are you writing data do that pendrive, what command / drag&drop using what application? What data - many small files? Do you get 10+ MB/s in Win xp when writing the same data?
What filesystem is on the pendrive? How are you mounting it and with what mount options?
How do you measure write speed?

Offline

#3 2014-04-03 01:29:42

dragonkore
Member
Registered: 2013-09-20
Posts: 3

Re: Slow usb write speed

[I'm sorry. Ignore this. Misread the question.]

Last edited by dragonkore (2014-04-03 01:33:57)

Offline

#4 2014-04-03 08:24:35

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Slow usb write speed

I did some further testing and it seems the issue is with writing many small files. When I write large files like archlinux iso I get 10+ Mb/s, just like on xp. I'm using Caja for copying files and the filesystem is fat32. I have no idea what mount options Caja is using.

karol wrote:

Hello and welcome to Arch Linux forums :-)

We need more information.
How exactly are you writing data do that pendrive, what command / drag&drop using what application? What data - many small files? Do you get 10+ MB/s in Win xp when writing the same data?
What filesystem is on the pendrive? How are you mounting it and with what mount options?
How do you measure write speed?

Offline

#5 2014-04-03 21:36:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Slow usb write speed

Many small files usually result in worse write speed, no matter the operating system and file system.
I'm not sure if this is a viable option, but you can try creating a tar archive containing the files you want to copy to your pendrive so that you have just one file (the archive) instead of many small files to copy.

Please post the output of

mount | column -t

with the pendrive mounted.

Offline

#6 2014-04-04 05:33:22

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Slow usb write speed

Make sure it's mounted with "flush" rather than sync, because sync is a performance-killer. Nice udev rule:

ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},flush,utf8,gid=100,umask=002"

Offline

#7 2014-04-04 06:56:19

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Slow usb write speed

karol wrote:

Many small files usually result in worse write speed, no matter the operating system and file system.
I'm not sure if this is a viable option, but you can try creating a tar archive containing the files you want to copy to your pendrive so that you have just one file (the archive) instead of many small files to copy.

Good idea!

karol wrote:

Please post the output of

mount | column -t

with the pendrive mounted.

/dev/sdb1   on  /run/media/ugjka/ugjka      type  vfat             (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

Btw I also havo noop io scheduler enabled for my ssd drive, I wonder if that could cause some issues?

Last edited by ugjka (2014-04-04 06:58:50)

Offline

Board footer

Powered by FluxBB