← Documents Documentation/ABI/removed/sysfs-kernel-uids GitHub 원문 ↗

Linux 6.18.37 · ABI / removed

제거된 UID cpu_shares ABI

사용자별 CPU bandwidth를 비례 배분하던 /sys/kernel/uids/<uid>/cpu_shares tunable을 설명합니다.

Source pathDocumentation/ABI/removed/sysfs-kernel-uids
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

사용자별 CPU share

sysfs-kernel-uids:1-14

Share 값의 비율에 따라 CPU bandwidth를 배분하던 interface로 kernel v2.6.34-rc1에서 제거됐습니다.

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
15

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

UID별 cpu_shares

1-14
항목
What/sys/kernel/uids/<uid>/cpu_shares
Date2007년 12월, kernel v2.6.34-rc1에서 최종 제거
ContactDhaval Giani <[email protected]>, Srivatsa Vaddagiri <[email protected]>

/sys/kernel/uids/<uid>/cpu_shares tunable은 한 사용자에게 허용할 CPU bandwidth를 설정하는 데 사용했다. 값은 비례값이다. 로그인한 두 사용자의 share 수가 같으면 동일한 CPU bandwidth를 받는다. User A의 shares가 1024이고 user B가 2048이면 user B는 user A의 두 배에 해당하는 CPU bandwidth를 받는다.

자세한 내용은 Documentation/scheduler/sched-design-CFS.rst를 참조한다.