読者です 読者をやめる 読者になる 読者になる

TenForward

技術ブログ。はてなダイアリーから移転しました

kernel 2.6.36 での cgroup

設定項目増えてますね.

 .config - Linux Kernel v2.6.36 Configuration
 ──────────────────────────────────────────────────────────────────────────────
  ┌───────────────────────── Control Group support ─────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus --->.          │
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, │
  │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> │
  │  for Search.  Legend: [*] built-in  [ ] excluded  <M> module  < >       │
  │ ┌─────────────────────────────────────────────────────────────────────┐ │
  │ │    --- Control Group support                                        │ │
  │ │    [ ]   Example debug cgroup subsystem                             │ │
  │ │    [*]   Namespace cgroup subsystem                                 │ │
  │ │    [*]   Freezer cgroup subsystem                                   │ │
  │ │    [*]   Device controller for cgroups                              │ │
  │ │    [*]   Cpuset support                                             │ │
  │ │    [*]     Include legacy /proc/<pid>/cpuset file                   │ │
  │ │    [*]   Simple CPU accounting cgroup subsystem                     │ │
  │ │    [*]   Resource counters                                          │ │
  │ │    [*]     Memory Resource Controller for Control Groups            │ │
  │ │    [*]       Memory Resource Controller Swap Extension              │ │
  │ │    [*]   Group CPU scheduler  --->                                  │ │
  │ │    <*>   Block IO controller                                        │ │
  │ │    [*]     Enable Block IO controller debugging                     │ │
  │ │                                                                     │ │
  │ └─────────────────────────────────────────────────────────────────────┘ │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                    <Select>    < Exit >    < Help >                     │
  └─────────────────────────────────────────────────────────────────────────┘

cgroup ファイルシステム内も色々増えました.blkio.* とか net_cls.* とか目新しい所ですね.

root@plamo001:/cgroup# ls
2887/                   cpuset.memory_pressure_enabled
2893/                   cpuset.memory_spread_page
blkio.avg_queue_size    cpuset.memory_spread_slab
blkio.dequeue           cpuset.mems
blkio.empty_time        cpuset.sched_load_balance
blkio.group_wait_time   cpuset.sched_relax_domain_level
blkio.idle_time         devices.allow
blkio.io_merged         devices.deny
blkio.io_queued         devices.list
blkio.io_service_bytes  libvirt/
blkio.io_service_time   memory.failcnt
blkio.io_serviced       memory.force_empty
blkio.io_wait_time      memory.limit_in_bytes
blkio.reset_stats       memory.max_usage_in_bytes
blkio.sectors           memory.memsw.failcnt
blkio.time              memory.memsw.limit_in_bytes
blkio.weight            memory.memsw.max_usage_in_bytes
blkio.weight_device     memory.memsw.usage_in_bytes
cgroup.event_control    memory.move_charge_at_immigrate
cgroup.procs            memory.oom_control
cpu.shares              memory.soft_limit_in_bytes
cpuacct.stat            memory.stat
cpuacct.usage           memory.swappiness
cpuacct.usage_percpu    memory.usage_in_bytes
cpuset.cpu_exclusive    memory.use_hierarchy
cpuset.cpus             net_cls.classid
cpuset.mem_exclusive    notify_on_release
cpuset.mem_hardwall     release_agent
cpuset.memory_migrate   tasks
cpuset.memory_pressure