GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use len(os.sched_getaffinity(0)) instead of os.cpu_count() by avkarenow · Pull Request #591 · MagicStack/uvloop

Conversation

@avkarenow

@avkarenow avkarenow commented Jan 18, 2024

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@avkarenow
Use len(os.sched_getaffinity(0)) instead of os.cpu_count()
0bfc0ef
fantix
fantix approved these changes Aug 15, 2024
View reviewed changes

@fantix fantix left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Awesome! TIL

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
fantix added 3 commits August 15, 2024 12:08
@fantix
Merge branch 'master' into patch-1
509f349
@fantix
Turn off CI fail-fast
d68b083
@fantix
Falls back to cpu_count() if no sched_getaffinity()
a1c909a
@fantix
fantix merged commit c8531c2 into MagicStack:master Aug 15, 2024
fantix added a commit that referenced this pull request Aug 15, 2024
@fantix
uvloop 0.20.0
2d35f10
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
uvloop 0.20.0 #617
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@fantix fantix fantix approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@avkarenow @fantix
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.