요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
1
What: /sys/kernel/uids/<uid>/cpu_shares
2
Date: December 2007, finally removed in kernel v2.6.34-rc1
3
Contact: Dhaval Giani <[email protected]>
4
Srivatsa Vaddagiri <[email protected]>
5
Description:
6
The /sys/kernel/uids/<uid>/cpu_shares tunable is used
7
to set the cpu bandwidth a user is allowed. This is a
8
proportional value. What that means is that if there
9
are two users logged in, each with an equal number of
10
shares, then they will get equal CPU bandwidth. Another
11
example would be, if User A has shares = 1024 and user
12
B has shares = 2048, User B will get twice the CPU
13
bandwidth user A will. For more details refer
14
Documentation/scheduler/sched-design-CFS.rst
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
사용자별 CPU share
sysfs-kernel-uids:1-14Share 값의 비율에 따라 CPU bandwidth를 배분하던 interface로 kernel v2.6.34-rc1에서 제거됐습니다.