Skip to content

Respect shadow's initial CPU affinity#1575

Merged
sporksmith merged 1 commit intoshadow:mainfrom
sporksmith:affinity
Aug 13, 2021
Merged

Respect shadow's initial CPU affinity#1575
sporksmith merged 1 commit intoshadow:mainfrom
sporksmith:affinity

Conversation

@sporksmith
Copy link
Copy Markdown
Contributor

@sporksmith sporksmith commented Aug 13, 2021

Previously, with pinning enabled, Shadow would ignore its initial CPU affinity when assigning threads to CPUs. With this change, it checks the initial affinity, and only considers assigning to CPUs in the initial affinity set.

Progress on #1565

@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Aug 13, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 13, 2021

Codecov Report

Merging #1575 (3b24bef) into main (aa01a2c) will decrease coverage by 0.03%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1575      +/-   ##
==========================================
- Coverage   52.73%   52.69%   -0.04%     
==========================================
  Files         141      141              
  Lines       21243    21260      +17     
  Branches     5376     5381       +5     
==========================================
+ Hits        11202    11203       +1     
- Misses       7080     7086       +6     
- Partials     2961     2971      +10     
Flag Coverage Δ
tests 52.69% <50.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/main/host/affinity.c 72.34% <50.00%> (-3.10%) ⬇️
src/test/futex/test_futex.c 63.97% <0.00%> (-1.08%) ⬇️
src/main/host/descriptor/descriptor.c 74.26% <0.00%> (-0.74%) ⬇️
src/main/core/worker.c 74.65% <0.00%> (-0.69%) ⬇️
src/main/host/descriptor/socket.c 65.64% <0.00%> (-0.39%) ⬇️
src/main/host/tracker.c 38.64% <0.00%> (-0.34%) ⬇️
src/main/routing/packet.c 70.94% <0.00%> (-0.29%) ⬇️
src/main/host/syscall/socket.c 78.45% <0.00%> (+0.14%) ⬆️
src/main/host/descriptor/epoll.c 77.45% <0.00%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa01a2c...3b24bef. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants