Opensuse 13.1 high CPU usage when copying to USB flash

My Opensuse 13.1 with KDE hangs because of high cpu usage when trying to copy larger files to usb flash drive. I copy files through Dolphin’s GUI. Problem is that when copying the whole system becomes choppy until copying is finished. Also copying takes longer than normal. This happens with every usb stick I tested.Could you help me?

I tried copying form terminal and the result is the same. I cannot do anything while files are copying. This is not normal. I never had this problem on previous Opensuse releases.

I guess nobody had this situation. I still don’t know what’s causing this bad behavior with usb storage devices. I want to ask of another problem that I also had on OpenSuse 12.3. if I switch to another session and I try to return to previous session, the screen goes black and there’s nothing I can do except pressing ctrl+alt+backspace to return to login window. I don’t know if it’s Opensuse or KDE’s fault. But I didn’t find an explanation for that either.

On 01/06/2014 07:16 AM, Tiberiu OS wrote:
>
> My Opensuse 13.1 with KDE hangs because of high cpu usage when trying to
> copy larger files to usb flash drive. I copy files through Dolphin’s
> GUI. Problem is that when copying the whole system becomes choppy until
> copying is finished. Also copying takes longer than normal. This happens
> with every usb stick I tested.Could you help me?
>

I am having a similar issue. What file systems are you using? Maybe that
is the issue.


Was I helpful? Click that little star so that I can brag about it to my
invisible friends >:)
Bring the Penguins Back! https://features.opensuse.org/316767

Could be you are short of /tmp space

/tmp is now a virtual file system ie resides in memory. If short on memory it will go to cache and be very slow

On 2014-01-12 04:16, gogalthorp wrote:
>
> Could be you are short of /tmp space
>
> /tmp is now a virtual file system ie resides in memory.

Since when? I have not seen it in none of my 13.1 systems.
There are some temporary directories in 13.1 which are indeed tmpfs in
memory, but “/tmp” is not one of them.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I have the same issue, fresh install of openSUSE 13.1. Is there any way to fix this ?

On 2014-01-12 19:46, calugarar wrote:
>
> I have the same issue, fresh install of openSUSE 13.1. Is there any way
> to fix this ?

Please run “top” in a terminal to find out which process (or thread) is
the culprit.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Hi, i couldn’t even move the mouse so i took a screenshot and the system froze for about 5 minutes. This never happened on opensuse 12.3 or other linux distros. Here you have the pic

http://i42.tinypic.com/34s5agk.jpg

On 2014-01-13 00:36, calugarar wrote:
>
> Hi, i couldn’t even move the mouse so i took a screenshot and the system
> froze for about 5 minutes. This never happened on opensuse 12.3 or other
> linux distros. Here you have the pic
>
>
> [image: http://i42.tinypic.com/34s5agk.jpg]

Well, it is not a process going full cpu. Instead, the interesting
figure is on the third line, the “93.8 wa”, meaning that the cpu is
waiting from some i/o to occur. It usually means processes waiting for
disks to finish reading or writing.

It is then interesting to see that the busy processes (but not by much
cpu) are mount.ntfs, kio_file, kswapd0. All of them use disk. What
exactly is happening there, I don’t know.

It could be some disk not responding. For example, if your disk, or the
sub stick, is bad or has errors, it could cause this. But to block the
system, I’d guess it be some system partition. I would try use smartctl
to tests the disks.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I tested on 2 computers and the behavior is the same with any usb flash I tried. Also I tried with both fat and ntfs formatted usb flash and the result is the same. There is no problem when copying to hard drives, from ntfs to ntfs or ext4 to ntfs.

On 2014-01-13 11:56, Tiberiu OS wrote:
>
> I tested on 2 computers and the behavior is the same with any usb flash
> I tried. Also I tried with both fat and ntfs formatted usb flash and the
> result is the same. There is no problem when copying to hard drives,
> from ntfs to ntfs or ext4 to ntfs.

I have not yet tried copying large files to usb sticks in 13.1, so I
can’t yet say. I’ll try in a minute.

However, copying to ntfs formatted sticks is cpu intensive in Linux.

Ok, I’m right now coyping 7 GB to an ntfs stick (EMTEC brand, 16 GB). It
is crawling along at 10 MB/s, and decreasing to 8 sometimes. CPU load is
under 15%, wait is 70%. Load peaks up to 80% or so. Laptop is
responsive, but not snappy (it slows down when it needs to read from
disk). I just fired up libreoffice, it takes longer to start than usual.
It does in the end, and it appears to work just fine. 3.8 GB copied so
far, now going at 11MB/s.

I’m using XFCE, not KDE.

…]

It finished uneventfully.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Just a note USB sticks are NOT SSD the erase cycle in all flash memory devices is SLOW. SSD’s have a lot of spare flash that they can swap in to speed the process, sticks normal don’'t. Flash is usually organized in 100K blocks any change in a block requires an erase cycle on that block. So it soundsl like the stick is thrashing causing the slowdown.

My 13.1 openSUSE KDE is on a HP Compaq 6910p dual core, 3 GB RAM, Samsung SSD laptop and i am copying on Kingston 101 DT flash and SanDisk Cruzer Titanium flash drives.

I didn’t have these issues in KDE/XFCE/Gnome openSUSE 12.3/Tumbleweed, neither in other Debian based distros.
Neither in the past nor in the present.

So i am thinking that maybe something is wrong in openSUSE 13.1.

Copying large files (+1 GB )completes successfully only that the system freezes and it takes longer to copy the files to the flash drive. Small files (~170 MB) don’t seem to affect the file transfer.

On 2014-01-13 21:06, calugarar wrote:

> So i am thinking that maybe something is wrong in openSUSE 13.1.
>
> Copying large files (+1 GB )completes successfully only that the system
> freezes and it takes longer to copy the files to the flash drive. Small
> files (~170 MB) don’t seem to affect the file transfer.

Not in my 13.1…

Can you try another desktop? Or raw text mode?


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 01/13/2014 03:06 PM, calugarar wrote:
>
> My 13.1 openSUSE KDE is on a HP Compaq 6910p dual core, 3 GB RAM,
> Samsung SSD laptop and i am copying on Kingston 101 DT flash and SanDisk
> Cruzer Titanium flash drives.
>

I have a 955BE processor with Kingston HyperX 120GB SSD and a WD 1TB
Black as my two drives. 13.1 with kde here.

> I didn’t have these issues in KDE/XFCE/Gnome openSUSE 12.3/Tumbleweed,
> neither in other Debian based distros.
> Neither in the past nor in the present.
>
> So i am thinking that maybe something is wrong in openSUSE 13.1.
>
Same here, I never noticed this in Debian Jessie (gnome)

> Copying large files (+1 GB )completes successfully only that the system
> freezes and it takes longer to copy the files to the flash drive. Small
> files (~170 MB) don’t seem to affect the file transfer.
>

What happens on my system is that I get a lot of the disk sleep and it
happens only if the data is copied between drives. I cant even type
things into a terminal because all the I/O is just very sluggish.


Was I helpful? Click that little star so that I can brag about it to my
invisible friends >:)
Bring the Penguins Back! https://features.opensuse.org/316767

On 2014-01-13 22:07, alanbortu wrote:
>
> What happens on my system is that I get a lot of the disk sleep and it
> happens only if the data is copied between drives. I cant even type
> things into a terminal because all the I/O is just very sluggish.

I don’t see any of that.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I can’t quit to text based only atm.

Could it have something to do with systems on SSD’s ?

On 2014-01-13 23:16, calugarar wrote:
>
> I can’t quit to text based only atm.

Just type [Ctrl][Alt][F1], login, and do the test. You can type any time
[Ctrl][Alt][F7] to return to your running KDE session.

> Could it have something to do with systems on SSD’s ?

No idea…


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 01/13/2014 06:03 PM, Carlos E. R. wrote:
> On 2014-01-13 23:16, calugarar wrote:
>>
>> I can’t quit to text based only atm.
>
> Just type [Ctrl][Alt][F1], login, and do the test. You can type any time
> [Ctrl][Alt][F7] to return to your running KDE session.
>

Already tried this, its still laggy. Typing my username in is fine but
as soon as I press enter it takes forever for the password prompt to
show up.


Was I helpful? Click that little star so that I can brag about it to my
invisible friends >:)
Bring the Penguins Back! https://features.opensuse.org/316767