-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpf: Initialize same number of free nodes for each pcpu_freelist #3969
Conversation
Upstream branch: 2590609 |
e32397b
to
603c9c2
Compare
Upstream branch: 2590609 |
10f1588
to
7a2e824
Compare
603c9c2
to
aeee334
Compare
Upstream branch: 2590609 |
7a2e824
to
83f6435
Compare
aeee334
to
8c45253
Compare
Upstream branch: 2590609 |
83f6435
to
e475e2d
Compare
8c45253
to
23f0c73
Compare
Upstream branch: e8f50c4 |
e475e2d
to
baed2c8
Compare
23f0c73
to
baf812c
Compare
Upstream branch: e5659e4 |
baed2c8
to
b36fb07
Compare
baf812c
to
62942a5
Compare
Upstream branch: e5659e4 |
b36fb07
to
f2843da
Compare
Upstream branch: e5659e4 |
f2843da
to
5df9fce
Compare
62942a5
to
8cb1b7d
Compare
Upstream branch: 15157d2 |
Upstream branch: c7028aa |
6890665
to
54234a4
Compare
Upstream branch: c7028aa |
54234a4
to
6eddfdc
Compare
f873e74
to
3899fc4
Compare
Upstream branch: c7028aa |
6eddfdc
to
a71aacb
Compare
3899fc4
to
473e648
Compare
Upstream branch: c7028aa |
a71aacb
to
51fcfe1
Compare
473e648
to
c7f1538
Compare
Upstream branch: 42597aa |
51fcfe1
to
e33760e
Compare
c7f1538
to
6c60dfc
Compare
Upstream branch: 656234e |
e33760e
to
c097257
Compare
6c60dfc
to
bb99a5b
Compare
Upstream branch: d9c982d |
c097257
to
bb08cf3
Compare
bb99a5b
to
3f5149e
Compare
Upstream branch: 1cfa97b |
pcpu_freelist_populate() initializes nr_elems / num_possible_cpus() + 1 free nodes for some CPUs, and then possibly one CPU with fewer nodes, followed by remaining cpus with 0 nodes. For example, when nr_elems == 256 and num_possible_cpus() == 32, CPU 0~27 each gets 9 free nodes, CPU 28 gets 4 free nodes, CPU 29~31 get 0 free nodes, while in fact each CPU should get 8 nodes equally. This patch initializes nr_elems / num_possible_cpus() free nodes for each CPU firstly, then allocates the remaining free nodes by one for each CPU until no free nodes left. Signed-off-by: Xu Kuohai <xukuohai@huawei.com> Acked-by: Yonghong Song <yhs@fb.com>
bb08cf3
to
015a46e
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=694510 irrelevant now. Closing PR. |
Pull request for series with
subject: bpf: Initialize same number of free nodes for each pcpu_freelist
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=692654