All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v3 0/6] cfs_bandwidth01 and CGroup API
@ 2021-06-01 10:55 Richard Palethorpe
  2021-06-01 10:55 ` [LTP] [PATCH v3 1/6] API/cgroups: Allow fetching of CGroup name Richard Palethorpe
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Richard Palethorpe @ 2021-06-01 10:55 UTC (permalink / raw)
  To: ltp

Hello,

This adds a test scheduler test which uses the cpu controller.

Also included are some additions and fixes to the CGroup API related
to the test.

V3:
* Reverse order of writing cpu.cfs_period_us and cpu.cfs_quota_us to fix V1.
* Add may_have_waiters to indicate we should try waking and cleaning up
  children during cleanup. At worst this can result in timeout warnings if there
  are less than 9 children waiting.
  Which is probably better than failing to cleanup the CGroups.

V2:
* Simpler check for unrecognised controller name
* Dropped whitespace patch which was already merged
* Moved subgroup creation to setup. Otherwise it leaks memory between iterations.
  Although the test still worked because it doesn't error if the group already
  exists.

Richard Palethorpe (6):
  API/cgroups: Allow fetching of CGroup name
  API/cgroups: Remove obsolete function in API
  API/cgroups: Add cpu controller
  API/cgroups: Auto add controllers to subtree_control in new subgroup
  API/cgroups: tst_require fail gracefully with unknown controller
  sched/cgroup: Add cfs_bandwidth01

 include/tst_cgroup.h                          |   4 +
 lib/tst_cgroup.c                              |  58 ++++--
 runtest/sched                                 |   1 +
 .../kernel/sched/cfs-scheduler/.gitignore     |   1 +
 testcases/kernel/sched/cfs-scheduler/Makefile |   4 +-
 .../sched/cfs-scheduler/cfs_bandwidth01.c     | 184 ++++++++++++++++++
 6 files changed, 236 insertions(+), 16 deletions(-)
 create mode 100644 testcases/kernel/sched/cfs-scheduler/cfs_bandwidth01.c

-- 
2.31.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-06-02 10:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 10:55 [LTP] [PATCH v3 0/6] cfs_bandwidth01 and CGroup API Richard Palethorpe
2021-06-01 10:55 ` [LTP] [PATCH v3 1/6] API/cgroups: Allow fetching of CGroup name Richard Palethorpe
2021-06-01 10:55 ` [LTP] [PATCH v3 2/6] API/cgroups: Remove obsolete function in API Richard Palethorpe
2021-06-01 10:55 ` [LTP] [PATCH v3 3/6] API/cgroups: Add cpu controller Richard Palethorpe
2021-06-01 10:55 ` [LTP] [PATCH v3 4/6] API/cgroups: Auto add controllers to subtree_control in new subgroup Richard Palethorpe
2021-06-01 10:55 ` [LTP] [PATCH v3 5/6] API/cgroups: tst_require fail gracefully with unknown controller Richard Palethorpe
2021-06-01 10:55 ` [LTP] [PATCH v3 6/6] sched/cgroup: Add cfs_bandwidth01 Richard Palethorpe
2021-06-02  7:02 ` [LTP] [PATCH v3 0/6] cfs_bandwidth01 and CGroup API Li Wang
2021-06-02 10:05   ` Richard Palethorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.