Skip to content

Commit 901572d

Browse files
committed
update
1 parent 22d9316 commit 901572d

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

linux/linux-swap-space-note.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
<https://ntk148v.github.io/blog/posts/linux-swap-space-note/>
44

5+
Source:
6+
- [RedHad guideline](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/sect-disk-partitioning-setup-x86#sect-recommended-partitioning-scheme-x86)
7+
- [Chris Down's post](https://chrisdown.name/2018/01/02/in-defence-of-swap.html)
8+
- [Linux Hint - Understanding vm.swappiness](https://linuxhint.com/understanding_vm_swappiness/)
9+
510
## 1. What is Swap?
611

712
Swap file systems support virtual memory, data is written to a swap file system when there is not enough RAM to store the data your system is processing.
@@ -68,10 +73,10 @@ swap <= 10% * total-size-hard-drives && swap <= 128GB (if hibernation is allowed
6873

6974
- Swap is not generally about getting emergency memory, it's about making memory reclamation egalitarian and efficient. In fact, using it as "emergency memory" is generally actively harmful.
7075

71-
## 4. References
72-
73-
1. [RedHad guideline](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/sect-disk-partitioning-setup-x86#sect-recommended-partitioning-scheme-x86)
76+
## 4. Check which processes are eating swap on linux
7477

75-
2. [Chris Down's post](https://chrisdown.name/2018/01/02/in-defence-of-swap.html)
78+
Source: <https://superuser.com/questions/1677225/check-which-processes-are-eating-swap-on-linux>
7679

77-
3. [Linux Hint - Understanding vm.swappiness](https://linuxhint.com/understanding_vm_swappiness/)
80+
- Use [smem](https://manpages.debian.org/bullseye/smem/smem.8.en.html):
81+
- Use [smemstat](http://manpages.org/smemstat/8): `smemstat -mT`
82+
- Use `top` and `htop` by adding SWAP column.

linux/tuned.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# TuneD
2+
3+
Soruce:
4+
5+
- <https://documentation.ubuntu.com/server/explanation/performance/perf-tune-tuned/>
6+
- <https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/performance_tuning_guide/chap-red_hat_enterprise_linux-performance_tuning_guide-tuned>
7+
8+
TuneD*1 is a service used to tune your system and optimise the performance under certain workloads. At the core of TuneD are profiles, which tune your system for different use cases. TuneD is distributed with a number of predefined profiles for use cases such as:
9+
- High throughput
10+
- Low latency
11+
- Saving power
12+
13+
It is possible to modify the rules defined for each profile and customise how to tune a particular device. When you switch to another profile or deactivate TuneD, all changes made to the system settings by the previous profile revert back to their original state.

0 commit comments

Comments
 (0)