Commit d8dc792
mm, pcp: reduce detecting time of consecutive high order page freeing
[ Upstream commit 6ccdcb6 ]
Conflict: none
In current PCP auto-tuning design, if the number of pages allocated is
much more than that of pages freed on a CPU, the PCP high may become the
maximal value even if the allocating/freeing depth is small, for example,
in the sender of network workloads. If a CPU was used as sender
originally, then it is used as receiver after context switching, we need
to fill the whole PCP with maximal high before triggering PCP draining for
consecutive high order freeing. This will hurt the performance of some
network workloads.
To solve the issue, in this patch, we will track the consecutive page
freeing with a counter in stead of relying on PCP draining. So, we can
detect consecutive page freeing much earlier.
On a 2-socket Intel server with 128 logical CPU, we tested
SCTP_STREAM_MANY test case of netperf test suite with 64-pair processes.
With the patch, the network bandwidth improves 5.0%. This restores the
performance drop caused by PCP auto-tuning.
Intel-SIG: commit 6ccdcb6 mm, pcp: reduce detecting time of consecutive high order page freeing.
Backport Auto-tune per-CPU pageset size.
Link: https://lkml.kernel.org/r/20231016053002.756205-10-ying.huang@intel.com
Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
[ Aubrey Li: amend commit log ]
Signed-off-by: Aubrey Li <aubrey.li@linux.intel.com>1 parent fc6a128 commit d8dc792
2 files changed
Lines changed: 16 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
714 | 713 | | |
715 | 714 | | |
716 | 715 | | |
| 716 | + | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2394 | 2394 | | |
2395 | 2395 | | |
2396 | 2396 | | |
2397 | | - | |
2398 | | - | |
| 2397 | + | |
| 2398 | + | |
2399 | 2399 | | |
2400 | | - | |
2401 | | - | |
2402 | | - | |
2403 | | - | |
| 2400 | + | |
2404 | 2401 | | |
2405 | 2402 | | |
2406 | 2403 | | |
| |||
2428 | 2425 | | |
2429 | 2426 | | |
2430 | 2427 | | |
2431 | | - | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
2432 | 2431 | | |
2433 | 2432 | | |
2434 | 2433 | | |
2435 | 2434 | | |
2436 | 2435 | | |
2437 | 2436 | | |
2438 | 2437 | | |
2439 | | - | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2440 | 2441 | | |
2441 | 2442 | | |
2442 | | - | |
| 2443 | + | |
2443 | 2444 | | |
2444 | 2445 | | |
2445 | 2446 | | |
| |||
2476 | 2477 | | |
2477 | 2478 | | |
2478 | 2479 | | |
2479 | | - | |
| 2480 | + | |
2480 | 2481 | | |
2481 | 2482 | | |
2482 | 2483 | | |
2483 | 2484 | | |
2484 | 2485 | | |
2485 | 2486 | | |
2486 | 2487 | | |
| 2488 | + | |
| 2489 | + | |
2487 | 2490 | | |
2488 | 2491 | | |
2489 | 2492 | | |
| |||
2880 | 2883 | | |
2881 | 2884 | | |
2882 | 2885 | | |
2883 | | - | |
| 2886 | + | |
2884 | 2887 | | |
2885 | 2888 | | |
2886 | 2889 | | |
| |||
5508 | 5511 | | |
5509 | 5512 | | |
5510 | 5513 | | |
5511 | | - | |
| 5514 | + | |
5512 | 5515 | | |
5513 | 5516 | | |
5514 | 5517 | | |
| |||
0 commit comments