You are not logged in.

#1 2019-11-29 22:24:30

Smit
Member
From: Nashik
Registered: 2018-01-02
Posts: 46

[SOLVED] Copying files on same HDD freezes system

I am using Plasma 5. Whenever I (try to)copy something big like 9 GB, cached memory goes up until used memory is near full and system freezes. I tried  combination of following commands

sudo echo $((64*1024*1024)) | sudo tee /proc/sys/vm/dirty_background_bytes
sudo echo $((192*1024*1024)) | sudo tee /proc/sys/vm/dirty_bytes

and

sudo echo $((1*1024*1024)) | sudo tee /proc/sys/vm/dirty_background_bytes 
sudo echo $((2*1024*1024)) | sudo tee /proc/sys/vm/dirty_bytes

and

echo $((16*1024*1024)) | sudo tee /proc/sys/vm/dirty_background_bytes       
echo $((48*1024*1024)) | sudo tee /proc/sys/vm/dirty_bytes

and

sudo sysctl -w vm.dirty_background_ratio = 5
sudo sysctl -w vm.dirty_ratio = 10

but none worked. I have setuped swappiness=5.

here is my system information:-

OS: Arch Linux x86_64 
Kernel: 5.3.5-pf 
Packages: 1465 (pacman) 
Shell: zsh 5.7.1 
Resolution: 1920x1080 
DE: Plasma 
WM: KWin 
WM Theme: Oxygen 
Theme: Breeze-Dark [GTK2/3] 
CPU: Intel i7-8565U (8) @ 4.600GHz 
GPU: Intel UHD Graphics 620 
GPU: AMD ATI Radeon R5 M230 / R7 M260DX / Radeon 520 Mobile
Memory: 2969MiB / 7824MiB 
Swap: 2GB

Last edited by Smit (2019-11-30 16:52:02)

Offline

#2 2019-11-29 22:33:36

koffeinfriedhof
Member
Registered: 2017-11-30
Posts: 33

Re: [SOLVED] Copying files on same HDD freezes system

Hi!

Do you copy one big file with about 9GB or a lot of small files? What filesystem does the harddisk use?
Can you provide some logs, e.g. journalctl -xep 0…4 after the crash?
Does copying in Konsole work with cp -R or rsync?

Have a look on free space and inodes on your system too: df -h; df -i

Are there some connected netshares via webDAV or sshfs?

Offline

#3 2019-11-29 23:15:45

Smit
Member
From: Nashik
Registered: 2018-01-02
Posts: 46

Re: [SOLVED] Copying files on same HDD freezes system

hi @koffeinfriedhof I copy folder of 9GB which have videos abouts 300~200 MBs. The folder gets copied successful over time but I am unable to do anything while its doing that.

Also system don't crashes.it freezes and unfreezes some few seconds and then again freezes.

I tried cp and rsync command which results in the same freeze.

Also after disabling swap , system doesn't freezes anymore

Offline

#4 2019-11-30 07:46:46

seth
Member
Registered: 2012-09-03
Posts: 13,104

Re: [SOLVED] Copying files on same HDD freezes system

Do you maybe also use lvm?

lsblk -f
df -h # as our coffe junkie asked before
df -i # -"-

I assume there's no problem if you copy in a loop?

for name in ~/notmyporn/*;  do cp "$name" ~/stillnotmyporn/; done

Offline

#5 2019-11-30 16:50:42

Smit
Member
From: Nashik
Registered: 2018-01-02
Posts: 46

Re: [SOLVED] Copying files on same HDD freezes system

By installing linux-zen, It surprisingly solved the problem. I even tried setting swapiness back to 60, copy 10 GB animes while playing Xonotic and system didn't freeze. the freeze issue occurs only linux-pf-skylake, linux and linux-lts. It also occurred on linux-ck-skylake but it was not as bad as linux, linux-lts and linux-pf-skylake

Offline

#6 2019-11-30 16:58:46

seth
Member
Registered: 2012-09-03
Posts: 13,104

Re: [SOLVED] Copying files on same HDD freezes system

seth wrote:

Do you maybe also use lvm?

'cause swap inside lvm is known to cause this …

Offline

#7 2019-11-30 19:20:35

Smit
Member
From: Nashik
Registered: 2018-01-02
Posts: 46

Re: [SOLVED] Copying files on same HDD freezes system

@seth

No. I am using the pure GUID partition table. no lvm.

Offline

Board footer

Powered by FluxBB