linux:kernel:cgroup:マウントオプション

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:kernel:cgroup:マウントオプション [2013/04/25 10:46] – [mount option] tenforwardlinux:kernel:cgroup:マウントオプション [2013/04/25 11:01] (現在) – [release_agent=] tenforward
行 175: 行 175:
  return false;  return false;
 } }
 +</code>
 +
 +===== release_agent= =====
 +<code>
 +root@plamo50:/# mount -t cgroup -o cpu,release_agent=/test.sh cgroup /cgroup
 +root@plamo50:/# cd cgroup/
 +root@plamo50:/cgroup# cat release_agent 
 +/test.sh
 +root@plamo50:/cgroup# cat notify_on_release 
 +0
 +root@plamo50:/cgroup# echo 1 > notify_on_release 
 +root@plamo50:/cgroup# cat notify_on_release 
 +1
 +root@plamo50:/cgroup# mkdir test01
 +root@plamo50:/cgroup# echo 2810 > test01/tasks 
 +root@plamo50:/cgroup# cat test01/tasks 
 +2810
 +root@plamo50:/cgroup# cat test01/tasks 
 +root@plamo50:/cgroup# tail -n 1 /var/log/syslog
 +Apr 25 19:59:49 plamo50 logger: Release!!Release!!
 +</code>
 +
 +/test.sh は
 +<code bash>
 +#!/bin/bash
 +/bin/logger "Release!!Release!!"
 </code> </code>
  • linux/kernel/cgroup/マウントオプション.1366886788.txt.gz
  • 最終更新: 2013/04/25 10:46
  • by tenforward