You are not logged in.

#1 2006-10-04 13:53:30

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

USB mass storage slow with HAL

With HAL write speed to my USB stick is very slow - about 70 kB/s. Read speed is ok.

If I stop hal and manually  mount than read/write speed is the usual usb2 high speed (significantly faster).

I noticed this on all my 3 computers running Archlinux.

Is this known to anyone else?

Offline

#2 2006-10-04 14:32:12

toxic
Member
Registered: 2006-06-05
Posts: 117

Re: USB mass storage slow with HAL

I haven't had this problem with others distros + usb harddrive using HAL. I can try with Arch+HAL when I get home though.

Offline

#3 2006-10-04 18:11:10

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: USB mass storage slow with HAL

Run 'mount' and check if your usb devices are mounted with the 'sync' option.

Offline

#4 2006-10-04 19:01:42

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: USB mass storage slow with HAL

Yes, it is with sync. Now how do I tell HAL which mount options to use? I just searched through hal documentation and edited my /etc/hal/fdi/policy/90-user-methods.fdi that I originaly took from http://wiki.archlinux.org/index.php/HAL

halxo8.png
(I couldn't post the contents here because the forum deletes contents)

I added the highlited line and restarted hal but it still mounts with sync.

Offline

#5 2006-10-04 22:33:12

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: USB mass storage slow with HAL

You should add the async options in your fstab file to mount it async instead of sync.

Offline

#6 2006-10-05 08:20:41

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: USB mass storage slow with HAL

In fstab I'd need to add a line for each device (sda1, sda2, sdb1, sdb2) and specify a different mountpoint for each one. That's how I had it before I started using HAL, but it is inconvenient for usage.

I'd like to have fstab free of /dev/sdx entries and just tell HAL to mount without sync

Offline

#7 2006-10-05 10:15:29

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: USB mass storage slow with HAL

If you want to disable sync, edit /etc/hal/policy/preferences.fdi and add something like:

<device> 
  <match key="block.is_volume" bool="true">
    <match key="@block.storage_device:storage.hotpluggable" bool="true">
      <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
    </match>
    <match key="@block.storage_device:storage.removable" bool="true">
      <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
    </match>
  </match>
</device>
mico wrote:

(I couldn't post the contents here because the forum deletes contents)

If you want to write XML code on this forum select Disable HTML in this post on your post.

Offline

#8 2006-10-05 11:00:33

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: USB mass storage slow with HAL

Thanks, but it still mounts with sync, Here's the whole /etc/hal/fdi/policy/preferences.fdi:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
 <device>
   <match key="volume.fsusage" string="filesystem">
     <merge key="volume.ignore" type="bool">true</merge>
       <match key="@block.storage_device:storage.removable" bool="true">
         <merge key="volume.ignore" type="bool">false</merge>
         <merge key="storage.policy.should_mount" type="bool">true</merge>
       </match>
   </match>
   <match key="block.is_volume" bool="true">
     <match key="@block.storage_device:storage.hotpluggable" bool="true">
       <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
     </match>
     <match key="@block.storage_device:storage.removable" bool="true">
       <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
     </match>
   </match>
 </device>
</deviceinfo>

Offline

#9 2006-10-05 12:04:20

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: USB mass storage slow with HAL

I'm sorry, I can't help you, this is as far as I go. Try the HAL documentation and mailing lists/IRC.

Offline

#10 2006-10-09 09:08:39

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: USB mass storage slow with HAL

It turned out this has nothing to do with hal, but with konqueror, which I use to mount usb stick. I suspected this after I noticed it works fine when I mount with pmount.

Solution: from a specific device properties, mounting tab, untick synchronous checkbox.

Offline

Board footer

Powered by FluxBB