You are not logged in.

#51 2011-11-12 21:43:25

sxe
Member
Registered: 2009-06-04
Posts: 103

Re: system hangs when copying data to usb device

@SanskritFritz
Look at my earlier comment. I had this too but fixed it by disabling usb legacy support in the bios.

Offline

#52 2011-11-12 22:21:40

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: system hangs when copying data to usb device

sxe wrote:

@SanskritFritz
Look at my earlier comment. I had this too but fixed it by disabling usb legacy support in the bios.

Sadly this is not an option for me sad


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#53 2011-11-13 14:35:04

sealemar
Member
Registered: 2011-10-30
Posts: 32

Re: system hangs when copying data to usb device

I had the same problem. Eventually that was solved by custom kernel compilation. Please, see my post for future information.

Offline

#54 2011-11-13 20:13:42

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: system hangs when copying data to usb device

Indeed. I now have compiled and installed the linux-pf from aur (I used all default settings) and while the transfer itself seems to stall sometimes I have not had any problems with other applications running slow whatsoever.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#55 2011-11-15 19:13:08

webdawg
Member
Registered: 2010-12-28
Posts: 62

Re: system hangs when copying data to usb device

Hmm.  Any other way to do this?  Using archlinux on a desktop this becomes a big problem.

Last edited by webdawg (2011-11-15 19:19:02)

Offline

#56 2011-11-16 07:24:00

sealemar
Member
Registered: 2011-10-30
Posts: 32

Re: system hangs when copying data to usb device

@webdawg, why? I did a custom kernel config, while Cdh used a default one from AUR. Just install yaourt - "a pacman wrapper with extended features and AUR support", type

yaourt -S linux-ck
# or
yaourt -S linux-pf  # as Cdh proposed

and be happy.
But I'm not sure if out-of-the-box kernel with default config from AUR will help in your particular case

Offline

#57 2011-11-16 16:40:23

webdawg
Member
Registered: 2010-12-28
Posts: 62

Re: system hangs when copying data to usb device

What I mean is that I know that arch is ment for alot of different systems and system types.

Why is this fix not included in the main repos?  It seems like a big problem.

Offline

#58 2011-11-16 17:24:12

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

Re: system hangs when copying data to usb device

webdawg wrote:

What I mean is that I know that arch is ment for alot of different systems and system types.

Why is this fix not included in the main repos?  It seems like a big problem.

Not sure what exactly do you mean by 'this fix' but Arch ships vanilla packages, so 'this fix' should be included upstream.

Offline

#59 2011-11-16 21:04:44

ShwangShwing
Member
Registered: 2011-04-20
Posts: 17

Re: system hangs when copying data to usb device

I have the same problem. I will try to compile my own kernel when I have enough time, but I am afraid that every time I try to setup and compile my own kernel, some of the things just don't work.
Anyway... Does anybody here know what exactly the problem is? It is noticeable when copying to usb, but for people like me without a lot of RAM it seems to happen every time the system uses swap. (And yes, I know that swapping is slower but that doesn't mean that the mouse cursor should freeze for a moment and the music should skip.)
It seems to be related to I/O operations. As far as I know and I've read the when an app requests I/O resource the kernel puts the thread to sleep until the IO can be serviced so that other threads can use it. What happens here is that the processor is like 90% free (iowait) and the system is unresponsive.
So what's going on here?

Offline

#60 2011-11-16 21:13:12

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

Re: system hangs when copying data to usb device

ShwangShwing wrote:

I have the same problem. I will try to compile my own kernel when I have enough time, but I am afraid that every time I try to setup and compile my own kernel, some of the things just don't work.

You can try e.g. -ck kernel or the -pf one, as sealemar suggested.

Offline

#61 2011-11-17 08:17:20

ShwangShwing
Member
Registered: 2011-04-20
Posts: 17

Re: system hangs when copying data to usb device

I've tried the -ck and it didn't work. I haven't tried the -pf one.

Offline

#62 2011-11-17 14:49:41

ShwangShwing
Member
Registered: 2011-04-20
Posts: 17

Re: system hangs when copying data to usb device

Oh, and I downloaded it (-ck) compiled. I haven't compiled it myself.

Offline

#63 2011-11-18 01:20:36

Draje
Member
Registered: 2007-06-21
Posts: 102
Website

Re: system hangs when copying data to usb device

Compiling both the -ck and -pf kernels with their stock config files yielded no fix.

However, using the LTS kernel fixes my problem.

Please try that out let me know your results. It would give a range of kernel releases to search through for changes.

Last edited by Draje (2011-11-18 01:21:04)

Offline

#64 2011-11-19 13:36:14

sealemar
Member
Registered: 2011-10-30
Posts: 32

Re: system hangs when copying data to usb device

ShwangShwing wrote:

Oh, and I downloaded it (-ck) compiled. I haven't compiled it myself.

That's the reason. I did a custom config. It is true that making your own config is a big pain, but starting with something already patched can be a good idea. I picked -ck up and didn't performed as much changes as I would if I got a vanilla one. In the case of custom config, your biggest friends are

# lspci
# lsusb
# lsmod # from your currently running generic kernel
$ cat /proc/cpuinfo

Offline

#65 2011-11-19 13:56:01

sealemar
Member
Registered: 2011-10-30
Posts: 32

Re: system hangs when copying data to usb device

I modified PKGBUILD, linux-ck.install and linux-ck.preset a bit, so here they are. I thought diff wouldn't be that suitable, because they are bigger than real files and they are hard to see when the version changes.

Offline

#66 2011-11-19 17:34:49

ShwangShwing
Member
Registered: 2011-04-20
Posts: 17

Re: system hangs when copying data to usb device

Draje wrote:

Compiling both the -ck and -pf kernels with their stock config files yielded no fix.

However, using the LTS kernel fixes my problem.

Please try that out let me know your results. It would give a range of kernel releases to search through for changes.

The lts kernel kind of fixes the problem. But there are a lot of things that don't work there (I haven't compiled it, i just downloaded it from the repository). For example the consoles are in text mode which means 25 rows by 80 columns. The drivers for my video card didn't work (I haven't spent much time trying to find out why). I'll try maybe to compile the main kernel (not the patched versions) and see what can be done.
I've used the ck kernel but it crashes from time to time and some things (like suspend) don't work so I would like to try to work things out with the main kernel.
@sealemar: Do you know exactly which kernel settings cause the problem? Maybe I'll try to extract /proc/config.gz and change just enough things to fix the problem. Help would be appreciated.

Offline

#67 2011-11-19 17:41:34

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

Re: system hangs when copying data to usb device

ShwangShwing wrote:

The lts kernel kind of fixes the problem. But there are a lot of things that don't work there (I haven't compiled it, i just downloaded it from the repository). For example the consoles are in text mode which means 25 rows by 80 columns. The drivers for my video card didn't work (I haven't spent much time trying to find out why).

I don't know what crd do you have, but there's e.g. http://www.archlinux.org/packages/?name=nvidia-lts

Offline

#68 2011-11-19 17:59:33

ShwangShwing
Member
Registered: 2011-04-20
Posts: 17

Re: system hangs when copying data to usb device

karol wrote:
ShwangShwing wrote:

The lts kernel kind of fixes the problem. But there are a lot of things that don't work there (I haven't compiled it, i just downloaded it from the repository). For example the consoles are in text mode which means 25 rows by 80 columns. The drivers for my video card didn't work (I haven't spent much time trying to find out why).

I don't know what crd do you have, but there's e.g. http://www.archlinux.org/packages/?name=nvidia-lts

... I have radeon 1300 pro. Anyway I'd like to make the main kernel work if possible.

Offline

#69 2011-11-20 14:53:17

sealemar
Member
Registered: 2011-10-30
Posts: 32

Re: system hangs when copying data to usb device

@ShwangShwing, I don't know which particular settings caused the problem, unfortunately. I made a lot of changes both adding new options and removing existing.
Regarding you 80x25 console, this Arch wiki Uvesafb may help you.

Offline

#70 2011-12-14 12:16:42

finidine
Member
Registered: 2010-05-24
Posts: 24

Re: system hangs when copying data to usb device

With regular arch kernels, I was experiencing problems (system unresponsive mainly) when copying files from / to USB sticks. Now I installed linux-ck from AUR and the first impression is, this -ck kernel works much, much better. There is no sign of unresponsiveness even with very long transfers.

Offline

#71 2011-12-15 04:50:48

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 129

Re: system hangs when copying data to usb device

Does anyone want to test Gorman's patch?
http://lwn.net/Articles/467332/

Offline

#72 2011-12-15 22:18:30

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: system hangs when copying data to usb device

http://www.h-online.com/open/features/K … 95236.html

[...]The writeback code now throttles programs which generate large volumes of data for writing to storage media more efficiently [...] This should ensure that the system reacts to user interaction quickly and does not become overloaded by trying to cache large volumes of data, such as can occur with dd when writing to a very slow disk. [...]

Offline

#73 2011-12-18 20:33:15

finidine
Member
Registered: 2010-05-24
Posts: 24

Re: system hangs when copying data to usb device

Unfortunately, as ShwangShwing said, -ck (and -bfs) kernels has problems with suspend / hibernate.

Offline

#74 2011-12-21 12:44:49

finidine
Member
Registered: 2010-05-24
Posts: 24

Re: system hangs when copying data to usb device

Tested Gorman's patch: got a crash doing a long backup to USB disk device.
kernel: standard 3.1.5 (pulled from ABS) + the patch

Now I'm testing the "Alternative to the 200 lines kernel patch that does wonders", followed this: http://pastebin.com/raw.php?i=sHRYRuAN

Initially it seems to work very well under heavy IO load.

Offline

#75 2011-12-24 22:47:27

finidine
Member
Registered: 2010-05-24
Posts: 24

Re: system hangs when copying data to usb device

finidine wrote:

Now I'm testing the "Alternative to the 200 lines kernel patch that does wonders", followed this: http://pastebin.com/raw.php?i=sHRYRuAN

Initially it seems to work very well under heavy IO load.

No.

system still hangs when copying data to usb device. Period.

Offline

Board footer

Powered by FluxBB