sandervanvugt

linux performance April 22

Apr 11th, 2022
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. ncore fips-finish-install firewalld fixparts
  2. [root@localhost queue]# history
  3. 1 modinfo softdog
  4. 2 modprobe soft_active_on_boot=true softdog
  5. 3 modprobe softdog soft_active_on_boot=true
  6. 4 cd /etc
  7. 5 vim modprobe.d/firewalld-sysctls.conf
  8. 6 echo h > /proc/sysrq-trigger
  9. 7 dmesg
  10. 8 echo f > /proc/sysrq-trigger
  11. 9 journactl | grep OOM
  12. 10 journalctl | grep OOM
  13. 11 journalctl | less
  14. 12 ps aux | grep gdm
  15. 13 cd /proc/976
  16. 14 ls
  17. 15 cat oom_score
  18. 16 man proc
  19. 17 echo -17 > oom_adj
  20. 18 echo h > /proc/sysrq-trigger
  21. 19 dmesg
  22. 20 echo f > /proc/sysrq-trigger
  23. 21 cd /proc/sys
  24. 22 ls
  25. 23 vim /etc/rsyslog.conf
  26. 24 systemctl restart rsyslog
  27. 25 echo h > /proc/sysrq-trigger
  28. 26 less /var/log/kern.log
  29. 27 grep kern /etc/rsyslog.conf
  30. 28 pwd
  31. 29 ls
  32. 30 cd kernel/
  33. 31 ls
  34. 32 cat pid_max
  35. 33 echo 65535 > pid_max
  36. 34 cat pid_max
  37. 35 for i in $(ls /proc/*/oom_score); do echo "$(cat $i) score $i "; done
  38. 36 for i in $(ls /proc/*/oom_score); do echo "$(cat $i) score $i "; done | sort -n
  39. 37 ps aux | grep 4280
  40. 38 cd ../..
  41. 39 echo -17 4280/oom_adj
  42. 40 echo -17 > 4280/oom_adj
  43. 41 history -w
  44. 42 cd /proc/sys
  45. 43 ls
  46. 44 vim /etc/rsyslog.conf
  47. 45 systemctl restart rsyslog
  48. 46 echo h > /proc/sysrq-trigger
  49. 47 less /var/log/kern.log
  50. 48 grep kern /etc/rsyslog.conf
  51. 49 pwd
  52. 50 ls
  53. 51 cd kernel/
  54. 52 ls
  55. 53 cat pid_max
  56. 54 echo 65535 > pid_max
  57. 55 cat pid_max
  58. 56 for i in $(ls /proc/*/oom_score); do echo "$(cat $i) score $i "; done
  59. 57 for i in $(ls /proc/*/oom_score); do echo "$(cat $i) score $i "; done | sort -n
  60. 58 ps aux | grep 4280
  61. 59 cd ../..
  62. 60 echo -17 4280/oom_adj
  63. 61 echo -17 > 4280/oom_adj
  64. 62 history -w
  65. 63 echo f > /proc/sysrq-trigger
  66. 64 cd
  67. 65 cd performance/
  68. 66 ./countdown 12
  69. 67 cd /proc/sys
  70. 68 ls
  71. 69 cd vm
  72. 70 ls
  73. 71 cat swappiness
  74. 72 echo 30 > swappiness
  75. 73 echo 10 > swappiness
  76. 74 free -m
  77. 75 firefox &
  78. 76 free -m
  79. 77 killall firefox
  80. 78 free -m
  81. 79 echo 90 > swappiness
  82. 80 free -m
  83. 81 ls
  84. 82 free -m
  85. 83 echo 3 > drop_caches
  86. 84 free -m
  87. 85 poweroff
  88. 86 cd /proc/sys
  89. 87 cd vm/
  90. 88 ls
  91. 89 cat dirty_expire_centisecs
  92. 90 grep uge /proc/meminfo
  93. 91 free -m
  94. 92 echo 500 > nr_hugepages
  95. 93 free -m
  96. 94 grep uge /proc/meminfo
  97. 95 ls
  98. 96 cat panic_on_oom
  99. 97 echo 1 > panic_on_oom
  100. 98 history -w
  101. 99 cd /proc/sys
  102. 100 cd vm/
  103. 101 ls
  104. 102 cat dirty_expire_centisecs
  105. 103 grep uge /proc/meminfo
  106. 104 free -m
  107. 105 echo 500 > nr_hugepages
  108. 106 free -m
  109. 107 grep uge /proc/meminfo
  110. 108 ls
  111. 109 cat panic_on_oom
  112. 110 echo 1 > panic_on_oom
  113. 111 history -w
  114. 112 echo f > /proc/sysrq-trigger
  115. 113 cd /proc
  116. 114 cd net/
  117. 115 ls
  118. 117 sysctl -a
  119. 118 sysctl -a | wc
  120. 119 sysctl -a | grep swappi
  121. 120 sysctl -a | wc
  122. 121 sysctl -a
  123. 122 vim /etc/sysctl.conf
  124. 123 ls /etc/sysctl.d/
  125. 124 ls /usr/lib/sysctl.d/
  126. 125 less /usr/lib/sysctl.d/50-redhat.conf
  127. 126 cd ipv4
  128. 127 less /usr/lib/sysctl.d/50-redhat.conf
  129. 128 pwd
  130. 129 vim /etc/sysctl.d/swappi.conf
  131. 130 sysctl --help
  132. 131 sysctl -p /etc/sysctl.d/swappi.conf
  133. 132 sysctl -a | grep swappi
  134. 133 systemctl status tuned
  135. 134 dnf search tuned
  136. 135 dnf install tuned
  137. 136 systemctl enable --now tuned
  138. 137 systemctl status tuned
  139. 138 tuned-adm list
  140. 139 tuned-adm recommend
  141. 140 tuned-adm profile atomic-guest
  142. 141 tuned-adm profile virtual-guest
  143. 142 cd /usr/lib/tuned/
  144. 143 ls
  145. 144 cd virtual-
  146. 145 cd virtual-guest/
  147. 146 ls
  148. 147 vim tuned.conf
  149. 148 sysctl -a | grep swappi
  150. 149 reboot
  151. 150 sysctl -a | grep swapp
  152. 151 tuned-adm list
  153. 152 systemctl list-units
  154. 153 systemctl list-dependencies
  155. 154 systemctl status tuned
  156. 155 systemctl enabled tuned
  157. 156 systemctl enable tuned
  158. 157 reboot
  159. 158 sysctl -a | grep swapp
  160. 159 cat /proc/sys/vm/swappiness
  161. 160 cd /etc
  162. 161 find / -name "tuned.conf"
  163. 162 vim /etc/modprobe.d/tuned.conf
  164. 163 cd tuned/
  165. 164 ls
  166. 165 vim tuned-main.conf
  167. 166 reboot
  168. 167 cat /proc/sys/vm/swappiness
  169. 168 ps fax
  170. 169 cd performance/
  171. 170 ls
  172. 171 ./zombie &
  173. 172 ps aux | grep defunc
  174. 173 kill -9 2416
  175. 174 ps aux | grep defunc
  176. 175 ps fax | grep -B5 2416
  177. 176 kill -SIGCHLD 2415
  178. 177 ps fax | grep -B5 2416
  179. 178 kill 2415
  180. 179 ps aux | grep defunc
  181. 180 cd
  182. 181 cd /usr/lib/tuned/virtual-guest/
  183. 182 vim tuned.conf
  184. 183 cd
  185. 184 cd performance/
  186. 185 ./countdown 12
  187. 186 ls
  188. 187 pwd
  189. 188 history | grep git
  190. 189 git clone https://github.com/sandervanvugt/performance
  191. 190 vim stress1.service
  192. 191 vim stress2.service
  193. 192 cp stress* /etc/systemd/system/
  194. 193 systemctl daemon-reload
  195. 194 systemctl start stress1.service
  196. 195 systemctl start stress2.service
  197. 196 top
  198. 197 cd /sys/
  199. 198 ls
  200. 199 cd bus
  201. 200 ls
  202. 201 cd cpu/
  203. 202 ls
  204. 203 cd devices/
  205. 204 ls
  206. 205 ls cpu1/
  207. 206 online cpu1/online
  208. 207 cat cpu1/online
  209. 208 echo 0 > cpu1/online
  210. 209 lscpu
  211. 210 qtop
  212. 211 top
  213. 212 systemctl set-property CPUShare=8192 system.slice
  214. 213 systemctl set-property system.slice CPUShares=8192
  215. 214 top
  216. 215 killall dd
  217. 216 kill 3339
  218. 217 top
  219. 218 man 5 systemd.resource-control
  220. 219 mount grep cg
  221. 220 mount
  222. 221 cd /sys/fs/cgroup/
  223. 222 ls
  224. 223 cd system.slice/
  225. 224 ls
  226. 225 systemctl start stress1.service
  227. 226 systemctl start stress2.service
  228. 227 ls
  229. 228 cd stress1.service/
  230. 229 ls
  231. 230 cat memory.max
  232. 231 cat memory.high
  233. 232 cat cpu.weight
  234. 233 cd ..
  235. 234 cat stress2/cpu.weight
  236. 235 cat stress2.service/cpu.weight
  237. 236 man 5 systemd.resource-control
  238. 237 cd stress2.service/
  239. 238 echo 1000 > memory.max
  240. 239 top
  241. 240 journalctl
  242. 241 cd ..
  243. 242 cd stress1.service/
  244. 243 echo 1000 > memory.max
  245. 244 top
  246. 245 systemd-cgtop
  247. 246 systemd-cgls
  248. 247 systemd-cgls
  249. 248 cd
  250. 249 systemd-cgls
  251. 250 systemd-run --slice=exzample.slice sleep 10d
  252. 251 systemd-cgls
  253. 252 systemctl set-property sshd.service MemoryLimit=1M
  254. 253 ps aux | grep ssh
  255. 254 cat /sys/fs/cgroup/system.slice/sshd.service/memory.max
  256. 255 top
  257. 256 iotop
  258. 257 time dd if=/dev/zero of=/bigfile bs=1M count=1024
  259. 258 cd /sys/block/
  260. 259 ls
  261. 260 cd sda/
  262. 261 ls
  263. 262 cd queue/
  264. 263 ls
  265. 264 cat scheduler
  266. 265 echo none > scheduler
  267. 266 cat scheduler
  268. 267 time dd if=/dev/zero of=/bigfile bs=1M count=1024
  269. 268 history
  270.  
Advertisement
Add Comment
Please, Sign In to add comment