Whamcloud - gitweb
LU-56 libcfs: implementation of cpu partition
authorLiang Zhen <liang@whamcloud.com>
Thu, 5 Apr 2012 15:46:21 +0000 (23:46 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 22 May 2012 06:06:12 +0000 (02:06 -0400)
commit617e8e1229637908d4cce6725878dd5668960420
tree7867c457e1983879eb3378401ca97d8efafe4f6b
parent19ec037c0a9427250b87a69c53beb153d533ab1c
LU-56 libcfs: implementation of cpu partition

This patch is implementation of CPU partition (CPT) and CPT table.

CPU partition (CPT) is conceptually similar to the 'cpuset' of Linux.
It is designed to provide an abstract layer that can be conveniently
used by kernel threads, unlike the 'cpuset' that is most accessible
from userspace.

CPT table is a set of CPTs:
- A CPT table can contain 1-N CPU partitions
- CPUs in one CPT shouldn’t overlap with CPUs in CPTs of the same
CPT table
- A CPT table can cover all CPUs in the system, or a subset of system
CPUs.

Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: Idd3168f21ea82891d11dffe06cbb386e1505889c
Reviewed-on: http://review.whamcloud.com/2461
Tested-by: Hudson
Reviewed-by: Doug Oucharek <doug@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
14 files changed:
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/Makefile.am
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/libcfs_cpu.h [new file with mode: 0644]
libcfs/include/libcfs/linux/Makefile.am
libcfs/include/libcfs/linux/libcfs.h
libcfs/include/libcfs/linux/linux-cpu.h [new file with mode: 0644]
libcfs/libcfs/Makefile.in
libcfs/libcfs/autoMakefile.am
libcfs/libcfs/libcfs_cpu.c [new file with mode: 0644]
libcfs/libcfs/linux/Makefile.am
libcfs/libcfs/linux/linux-cpu.c [new file with mode: 0644]
libcfs/libcfs/linux/linux-proc.c
libcfs/libcfs/module.c