{"id":9115,"date":"2023-02-06T06:48:09","date_gmt":"2023-02-05T21:48:09","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=9115"},"modified":"2023-09-06T06:59:01","modified_gmt":"2023-09-05T21:59:01","slug":"linux%e3%81%a7%e3%83%97%e3%83%ad%e3%82%bb%e3%82%b9%e5%ae%9f%e8%a1%8c%e3%81%ae%e5%84%aa%e5%85%88%e5%ba%a6%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88nice%ef%bc%8frenice%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/9115","title":{"rendered":"Linux\u3067\u30d7\u30ed\u30bb\u30b9\u5b9f\u884c\u306e\u512a\u5148\u5ea6\u3092\u6307\u5b9a\u3059\u308b\uff01\uff08nice\uff0frenice\uff09"},"content":{"rendered":"<p>Linux\u3067\u30d7\u30ed\u30bb\u30b9\u5b9f\u884c\u306e\u512a\u5148\u5ea6\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u512a\u5148\u5ea6\u3092\u78ba\u8a8d\u3059\u308b\uff01\uff08ps -el\uff09<\/h2>\n<p>\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u512a\u5148\u5ea6\u3092\u300c-l\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002NI\u5217\u304c\u512a\u5148\u5ea6\u306b\u306a\u308a\u3001-20\uff08\u512a\u5148\u5ea6\u9ad8\uff09\u301c19\uff08\u512a\u5148\u5ea6\u4f4e\uff09\u3067\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f\u300c0\u300d\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ps -efl | head\r\nF S UID          PID    PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD\r\n4 S root           1       0  0  80   0 - 46726 -      Feb05 ?        00:00:02 \/usr\/lib\/systemd\/systemd --switched-root --system --deserialize 17\r\n1 S root           2       0  0  80   0 -     0 -      Feb05 ?        00:00:00 &#x5B;kthreadd]\r\n1 I root           3       2  0  60 -20 -     0 -      Feb05 ?        00:00:00 &#x5B;rcu_gp]\r\n1 I root           4       2  0  60 -20 -     0 -      Feb05 ?        00:00:00 &#x5B;rcu_par_gp]\r\n1 I root           6       2  0  60 -20 -     0 -      Feb05 ?        00:00:00 &#x5B;kworker\/0:0H-events_highpri]\r\n1 I root           9       2  0  60 -20 -     0 -      Feb05 ?        00:00:00 &#x5B;mm_percpu_wq]\r\n1 S root          10       2  0  80   0 -     0 -      Feb05 ?        00:00:00 &#x5B;ksoftirqd\/0]\r\n1 I root          11       2  0  80   0 -     0 -      Feb05 ?        00:00:00 &#x5B;rcu_sched]\r\n1 S root          12       2  0 -40   - -     0 -      Feb05 ?        00:00:00 &#x5B;migration\/0]\r\n<\/pre>\n<h2>\u512a\u5148\u5ea6\u3092\u6307\u5b9a\u3057\u3066\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b\uff01<\/h2>\n<p>\u512a\u5148\u5ea6\u3092\u6307\u5b9a\u3057\u3066\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001nice\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u512a\u5148\u5ea6\u3092\u3068\u3057\u3066\u300119\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,4,6]; title: ; notranslate\" title=\"\">\r\n$ nice -n 19 sleep 600\r\n^Z\r\n&#x5B;1]+  Stopped                 nice -n 19 sleep 600\r\n$ bg\r\n&#x5B;1]+ nice -n 19 sleep 600 &amp;\r\n$ ps -efl | grep &quot;sleep 600&quot; | grep -v grep\r\n0 S usradmin   14366   13472  0  99  19 -  1827 -      06:41 pts\/0    00:00:00 sleep 600\r\n<\/pre>\n<h2>\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u512a\u5148\u5ea6\u3092\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>\u512a\u5148\u5ea6\u3092\u6307\u5b9a\u3057\u3066\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001renice\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u512a\u5148\u5ea6\u3092\u300118\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n$ sudo renice 18 14366\r\n14366 (process ID) old priority 19, new priority 18\r\n$ ps -efl | grep &quot;sleep 600&quot; | grep -v grep\r\n0 S usradmin   14366   13472  0  98  18 -  1827 -      06:41 pts\/0    00:00:00 sleep 600\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u9577\u6642\u9593\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306a\u3069\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u512a\u5148\u5ea6\u3092\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u3001nice\u30b3\u30de\u30f3\u30c9\u3042\u308b\u3044\u306frenice\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u306e\u512a\u5148\u5ea6\u3092\u8abf\u6574\u3057\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/9073\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u884c\u3092\u5236\u5fa1\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u884c\u3092\u5236\u5fa1\u3059\u308b\uff01<\/div><div class=\"substr\">Linux\u3067\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u884c\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H5qkUu\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51ZPkoBGdZL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u3067\u30d7\u30ed\u30bb\u30b9\u5b9f\u884c\u306e\u512a\u5148\u5ea6\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[200],"tags":[282,1048,1049,25,876,1050],"class_list":["post-9115","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-process","tag-linux","tag-nice","tag-renice","tag-25","tag-876","tag-1050"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=9115"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9115\/revisions"}],"predecessor-version":[{"id":14898,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9115\/revisions\/14898"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=9115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=9115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=9115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}