On 2021/04/11 15:30, Carlos E. R. wrote:
Telcontar:~ # killall sync Telcontar:~ # killall sync Telcontar:~ # killall -9 sync Telcontar:~ # killall -9 sync Telcontar:~ # --- Often 'sync' can be in io-wait state -- that can't be killed.
Not sure what you were trying to do w/sync, but it's usually pointless as syncs occur in seconds, at most. Lately, I've noticed more problems with tasks waiting on memory even though most memory should be "free" (used as readcache for files). Thing I don't understand is why "dropcaches" takes so long -- often near 10s, but occasionally 30-40s. I have it setup as a unprivileged (in that 'sudo' is 'built-in') shell script on my system. Because it takes so long, often, I always run it with time in front:
cat dropcaches #!/bin/bash function dropcaches () { echo -n "3"|sudo dd status=none of=/proc/sys/vm/drop_caches } time dropcaches
-----
dropcaches 12.10sec 0.01usr 11.62sys (96.10% cpu)
But the memory it releases -- most of it is supposedly read-cached files.