ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.25k stars 175 forks source link

[linux] steam beta use disk to high, when download update for game #4978

Open steamlinux opened 7 years ago

steamlinux commented 7 years ago

Your system information

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

Steps for reproducing this issue:

  1. format HDD to ext4 with journal
  2. install linux (ex. Debian)
  3. Install steam, iotop
  4. start iotop for check
  5. start download new game via Steam
  6. look to iotop (or another porogramm for check)
  7. wait for update game
  8. start download updates for game
  9. look to iotop (or another porogramm for check)

At 1st, related thread https://github.com/ValveSoftware/steam-for-linux/issues/3450 When I download new game, all ok When someone game download update, I have bug with high load disk usage (iotop) My fs ext4 with journaling, my system have hard freezes, because disk load to high 2017-05-18 14-15-55

kisak-valve commented 7 years ago

Hello @steamlinux, Steam by itself should not be capable of causing a hard freeze (does the system recover?), but might be agitating something in the kernel. What I/O scheduler does Debian Sid use? Also, are you using a significant amount of swap?

Personally, I've only seen similar behavior when there is swap usage or when I tried out blk-mq.

steamlinux commented 7 years ago

I have swap 16gb and ram 8gb my I/O scheduler (correct command?) [code]# cat /sys/block/sda/queue/scheduler noop deadline [cfq][/code] vanilla kernel 4.9.0-3

if I run steam via eatmydate, I don't have this problem

P.S. my system have freezes always when HDD load to high

kisak-valve commented 4 years ago

Hello @steamlinux, are you still experiencing freezes where the system does not recover?

steamlinux commented 4 years ago

yes, I have high disk activity, when steam downloading game updates ex. download speed ~5 MB/s, disk 90-110MB (100%)

Haxk20 commented 4 years ago

This is an issue for lot of people not just me and OP. On windows this does happen but not to this extend. Like i have 600Mbps line and cant use it properly on steam cause async is hitting the drive full IO capability. Causing it to stop downloading until the drive can catch up and then download again. This is not fun.

Haxk20 commented 4 years ago

At start i get slowly to around 65MB/s and then once the steam starts putting real load on the drive it slows down and download goes to crazy numbers like 1MB/s.

steamlinux commented 4 years ago

I fid small solution: install eatmydata, and run "$ eatmydata steam"

Haxk20 commented 4 years ago

Oh yes. That did the trick for me as temporary solution for now. Full 75MB/s. Thank you for that temporary fix until i get 1TB SSD or switch even my second drive to BTRFS.

germaniii commented 3 years ago

Im having this problem right now, A temporary fix for me is to limit the download speed of the steam client to around 20MB/s or 20000KB/s

EDIT: Nevermind, it fixes the sudden download stops but it still locks down / lags my system

megatog615 commented 2 years ago

Would setting the I/O niceness to "idle" be a possible solution to this? Normally we use a program like 'ionice' with '-c3' as the flag to set that, but surely there is a way to do it in code.

megatog615 commented 2 years ago

Would games launched by Steam have fsync disabled as well if Steam is launched with eatmydata? I am reluctant to use it for that reason.

userofryzen commented 2 years ago

well I think is not just beta, and it's not just debian xD In manjaro stable with steam stable is happening to me too.

jpVm5jYYRE1VIKL commented 1 year ago

is ionice -c 3 /usr/bin/steam-runtime fix issue ?