From: https://bbs.archlinux.org/viewtopic.php? PID = 1, 1002264
$ Su
# Mkdir/tmp/memgroup
# Mount-T cgroup NONE/tmp/memgroup-O memory
# Cd/tmp/memgroup
# Mkdir 0
# CD 0
# Echo 100 m> memory. limit_in_bytes
# Echo <pid from another shell> tasks
> In another shell as an user
$ Echo $
$ Rsync-AV from_big to_big
I am not a supporter who supports setting swappiness to 0. Most of the time
It is better to save the File Cache than to save the program cache. For example, visit Firefox,
Because swappiness is set to 0, the File Cache will refresh the hard disk, resulting in
Firefox does not respond because browsers need to map databases, Web caches, and
Library files, some interface elements, and so on.
In fact, you want some programs (rsync, locate, (<various indexers> occupy memory,
Some pages that may not be accessed.
Instead of limiting processes like rsync, you should stick to the cgroup tips. You should
Ensure that there is 3 GB space for Firefox and other processes.
Does rsync-AV from_big to_big bring data Disk Synchronization?