Skip to content

Use len(os.sched_getaffinity(0)) instead of os.cpu_count() - #591

Merged
fantix merged 4 commits into
MagicStack:masterfrom
avkarenow:patch-1
Aug 15, 2024
Merged

fantix merged 4 commits into
MagicStack:masterfrom
avkarenow:patch-1

Conversation

@avkarenow

Copy link
Copy Markdown
Contributor

This change allows to control number of processes by cpuset command.

@fantix fantix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! TIL

@fantix
fantix merged commit c8531c2 into MagicStack:master Aug 15, 2024
fantix added a commit that referenced this pull request Aug 15, 2024
Changes
=======

* Upgrade libuv to v1.48.0 (#600)
  (by @niklasr22 @fantix in 7777852 for #596 #615)

Fixes
=====

* Fix test_create_server_4 with Python 3.12.5 (#614)
  (by @shadchin in 62f9239)

* Use len(os.sched_getaffinity(0)) instead of os.cpu_count() (#591)
  (by @avkarenow in c8531c2 for #591)

* Inline _Py_RestoreSignals() from CPython (#604)
  (by @befeleme in 8511ba1 for #603)
@fantix fantix mentioned this pull request Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants