You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that when using ZEN_INTERACTIVE, when copying large files between disks (internal/usb, it doesn't matter) after some time while the process is running the computer starts to stutter/lag. I can't move my mouse fluently, also the music starts to play with interruptions.
I've tracked down the issue being in setting dirty_background_ratio and dirty_ratio too high.
Leaving them on default will result in a fluent UX while copying files from a disk to another.
True; I've been running with dirty_bytes=256M and dirty_background_bytes=128M for a while here because of this problem. However, I don't know if these are broadly acceptable values and I certainly made no throughput benchmarks.
@damentz Should we change the interactive config similarly?
Copying the same 3 folders (8.5 GB in total) and doing a find / at the same time, free -m shows only 50MB of free memory (no swap), and everything is smooth.
Just to FYI. I've run dirty_bytes 256MB and dirty_background_bytes 64MB for ages on spinning rust.
I would think you could double or triple these on SSDs.
I assume dirty_background_bytes will get flushed in one shot. So I want to keep that within 1-2 seconds based on my max disk bandwidth. dirty_bytes also gets pruned during dirty_expire_centisecs, so that should be long enough to allow for tens of megabytes at a time to be written in chunks.
The problem is the slowest storage attached to the system. Apparently USB 2.0 thumbdrives top out at about 20MB/s.
I think keeping the system usable in a pinch is more important than optimizing throughput. With the old values, I had to hard reboot a system that hung while copying to a USB 3.0 HDD (multiple times).
In any case, the user can always adjust the values.
Activity
heftig commentedon Jul 5, 2015
True; I've been running with dirty_bytes=256M and dirty_background_bytes=128M for a while here because of this problem. However, I don't know if these are broadly acceptable values and I certainly made no throughput benchmarks.
@damentz Should we change the interactive config similarly?
zen-tune: Drastically reduce dirty limits
heftig commentedon Jul 5, 2015
Okay, I've drastically reduced the dirty limits. Please let me know how well it works.
StefanescuCristian commentedon Jul 5, 2015
Copying the same 3 folders (8.5 GB in total) and doing a find / at the same time, free -m shows only 50MB of free memory (no swap), and everything is smooth.
I think we can close this. I give you the honor.
weedy commentedon Aug 2, 2015
Just to FYI. I've run dirty_bytes 256MB and dirty_background_bytes 64MB for ages on spinning rust.
I would think you could double or triple these on SSDs.
I assume dirty_background_bytes will get flushed in one shot. So I want to keep that within 1-2 seconds based on my max disk bandwidth. dirty_bytes also gets pruned during dirty_expire_centisecs, so that should be long enough to allow for tens of megabytes at a time to be written in chunks.
heftig commentedon Aug 2, 2015
The problem is the slowest storage attached to the system. Apparently USB 2.0 thumbdrives top out at about 20MB/s.
I think keeping the system usable in a pinch is more important than optimizing throughput. With the old values, I had to hard reboot a system that hung while copying to a USB 3.0 HDD (multiple times).
In any case, the user can always adjust the values.
weedy commentedon Aug 2, 2015
I agree, that's how I settled on 64MiB.
Even with that I can still stall my system if I copy enough things concurrently.
You changing from _ratio to _bytes was the right move.
mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations
zen-tune: Implement zen-tune v4
zen-tune: Drastically reduce dirty limits
Don't lookup dos name entries for exfat
zen-tune: Implement zen-tune v4
72 remaining items
scsi: megaraid_sas: Fix deadlock on firmware crashdump
scsi: megaraid_sas: Fix deadlock on firmware crashdump
net: dsa: mv88e6xxx: fix marvell 6350 probe crash
net: dsa: mv88e6xxx: fix marvell 6350 probe crash
selftests/bpf: Remove flaky test_btf_id test
net: fix data-races around sk->sk_forward_alloc
net: fix data-races around sk->sk_forward_alloc
Bluetooth: iso: Fix circular lock in iso_conn_big_sync
Bluetooth: iso: Fix circular lock in iso_conn_big_sync
ACPICA: fix acpi operand cache leak in dswstate.c
ACPICA: Apply pack(1) to union aml_resource
perf unwind-libdw: skip non-regular files
kmsan: fix kmsan_handle_dma() to avoid false positives
Revert "usb: typec: ucsi: Update UCSI structure to have message in an…
wifi: ath12k: fix OF node refcount imbalance in WSI graph traversal