Skip to content

os.cpu_count() should return a count assigned to a container or that the process is restricted to #80235

Description

@keirlawson
BPO36054
Nosy@vstinner, @giampaolo, @tiran, @jab, @methane, @matrixise, @corona10, @Zheaoli, @mcnelsonphd, @NargiT, @Redeyed

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee=Noneclosed_at=Nonecreated_at=<Date2019-02-20.16:56:22.384>labels= ['interpreter-core', '3.8', '3.7', 'library', 'performance']
title='On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)'updated_at=<Date2021-10-11.14:25:34.762>user='https://github.com/keirlawson'

bugs.python.org fields:

activity=<Date2021-10-11.14:25:34.762>actor='corona10'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['Interpreter Core', 'Library (Lib)']
creation=<Date2019-02-20.16:56:22.384>creator='keirlawson'dependencies= []
files= []
hgrepos= []
issue_num=36054keywords= []
message_count=24.0messages= ['336117', '336126', '336146', '336148', '336149', '338724', '338778', '338780', '338783', '339401', '339404', '339429', '339439', '353690', '364894', '364898', '364901', '364902', '364916', '365071', '365075', '366811', '403622', '403654']
nosy_count=12.0nosy_names= ['vstinner', 'giampaolo.rodola', 'christian.heimes', 'jab', 'methane', 'matrixise', 'corona10', 'Manjusaka', 'mcnelsonphd', 'galen', 'nargit', 'RedEyed']
pr_nums= []
priority='normal'resolution=Nonestage=Nonestatus='open'superseder=Nonetype='performance'url='https://bugs.python.org/issue36054'versions= ['Python 3.7', 'Python 3.8']

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions