You are not logged in.

#1 2013-05-16 07:20:20

Kirito
Member
Registered: 2013-05-15
Posts: 17

[Solved] Very slow write speeds to mounted partition

I have a separate partition for data which is set to automount on boot in fstab(I haven't gotten it to work any other way yet. Could be related?) and writing files from a download in Deluge to it was incredibly slow and affected the download speed grossly. I tested it by using the same download but selecting my local desktop as a save location. The download speed was at ~50KB/s using the data partition and 2MB/s using local desktop folder. Further, transfer speeds while trying to move the file to the partition after it was downloaded, resulting in a measily 70KB/s.

Is there something I'm missing, like some sort of buffer/write speed limit on the partition?

Here is how I have my fstab configured:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda6
UUID=bf68160f-aeb3-487c-9382-974fd5de5214	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/sda7
UUID=f0007457-bd8b-4e73-b794-e2474140af67	/home     	ext4      	rw,relatime,data=ordered	0 2

# /dev/sda8 LABEL=Swap
UUID=4291c0ff-5bcb-48c5-b0cd-ecf08b428b2f	none      	swap      	defaults  	0 0

# /dev/sda5 LABLE=New Volume
UUID=48BEDF3ABEDF1F6E				/media/Data	ntfs		rw,auto,user,sync	0 0

# /dev/sda2 LABLE=Windows Seven
UUID=01CD79C6BF162F00				/media/Windows	ntfs		rw,noauto,user,sync	0 0

Any clues? Thanks

Last edited by Kirito (2013-05-17 04:34:32)

Offline

#2 2013-05-16 11:49:15

Enneric
Member
Registered: 2013-05-02
Posts: 30

Re: [Solved] Very slow write speeds to mounted partition

Can you try to mount the /media/Data without the "sync" option?

Offline

#3 2013-05-16 14:36:14

youngunix
Member
Registered: 2013-01-16
Posts: 42
Website

Re: [Solved] Very slow write speeds to mounted partition

The slow speeds are simply due to your HDD's read and write capabilities which isn't an SSD. Since you are making do multiple reads and writes simultaneously, it'll definitely slow depending on the files sizes. Even my 10K RPM VelociRaptor gets slower if given such tasks. I suggest you invest in an HDD with higher capacity and speed, they are pretty cheap too.


"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." --Dennis Ritchie-- RIP

Offline

#4 2013-05-16 16:34:05

ackalker
Member
Registered: 2012-11-27
Posts: 201

Re: [Solved] Very slow write speeds to mounted partition

I doubt that it is just the hard drive that is slowing things down, since all the partitions are on the same drive. 50K/s is more like the transfer speed of floppies from days of yore.
Do dmesg or journalctl show any error messages about this hard drive?

Last edited by ackalker (2013-05-16 16:37:48)

Offline

#5 2013-05-16 18:43:55

grabbexi
Member
Registered: 2013-05-12
Posts: 51

Re: [Solved] Very slow write speeds to mounted partition

async instead of sync should do it. But removing sync is just as fine since async is the default on, just like Enneric said.
But beware, async has the flaw that a force-removed partition could cause data-damage.

Details here, you REALLY should read this when going async:  (just scroll down a bit wink )

http://www.linuxstall.com/fstab/

Offline

#6 2013-05-16 22:06:51

Kirito
Member
Registered: 2013-05-15
Posts: 17

Re: [Solved] Very slow write speeds to mounted partition

Enneric wrote:

Can you try to mount the /media/Data without the "sync" option?

grabbexi wrote:

async instead of sync should do it. But removing sync is just as fine since async is the default on, just like Enneric said.
But beware, async has the flaw that a force-removed partition could cause data-damage.

Details here, you REALLY should read this when going async:  (just scroll down a bit wink )

http://www.linuxstall.com/fstab/

At work right now, but I'll test this out once I get home and report back. Thanks for the help so far smile

Offline

#7 2013-05-16 22:49:43

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Very slow write speeds to mounted partition

Yes, as it is an internal partition, and therefore forced removal is really not an issue, I am not sure why you are using sync in the first place.  The way I understand it, the sync option is really to be used when you have some kind of removable drive.  That way, when you copy things to it there isn't the usualy buffering, resulting in the process reporting completion instantly, when really there might be hundreds of megabytes waiting to be written.

Offline

#8 2013-05-17 04:34:05

Kirito
Member
Registered: 2013-05-15
Posts: 17

Re: [Solved] Very slow write speeds to mounted partition

WonderWoofy wrote:

Yes, as it is an internal partition, and therefore forced removal is really not an issue, I am not sure why you are using sync in the first place.  The way I understand it, the sync option is really to be used when you have some kind of removable drive.  That way, when you copy things to it there isn't the usualy buffering, resulting in the process reporting completion instantly, when really there might be hundreds of megabytes waiting to be written.

Yeah, after reading up on it a bit more thats exactly it. I wasn't exactly sure how it was handled/where it cached or stored the file temporarily before writing to the disk and being on a relatively small partition space is of concern. Although looking back  it was silly because it's not like I'll be transferring anything that large anytime soon

Anyway, this fixed it. You guys rock smile

Offline

Board footer

Powered by FluxBB