Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708230 - sys-process/procps fails tests: FAIL: ps SCHED_BATCH scheduler
Summary: sys-process/procps fails tests: FAIL: ps SCHED_BATCH scheduler
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 916095
  Show dependency tree
 
Reported: 2020-02-04 17:09 UTC by Toralf Förster
Modified: 2024-06-17 18:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.20 KB, text/plain)
2020-02-04 17:09 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,9.31 KB, text/plain)
2020-02-04 17:09 UTC, Toralf Förster
Details
environment (environment,66.89 KB, text/plain)
2020-02-04 17:09 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.07 KB, application/x-bzip)
2020-02-04 17:09 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,20.17 KB, application/x-bzip)
2020-02-04 17:09 UTC, Toralf Förster
Details
sys-process:procps-3.3.16:20200204-083947.log (sys-process:procps-3.3.16:20200204-083947.log,54.20 KB, text/plain)
2020-02-04 17:09 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.11 KB, application/x-bzip)
2020-02-04 17:09 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-02-04 17:09:15 UTC
Running ./ps.test/ps_personality.exp ...
Running ./ps.test/ps_sched_batch.exp ...
FAIL: ps SCHED_BATCH scheduler

		=== ps Summary ===


  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-test-20200203-215003

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *



Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.8 (fallback)
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)






repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 04 Feb 2020 07:33:32 +0000

emerge -qpvO sys-process/procps
[ebuild     U ] sys-process/procps-3.3.16 [3.3.15-r1] USE="kill ncurses nls (split-usr) test* unicode -elogind -modern-top (-selinux) -static-libs -systemd"
Comment 1 Toralf Förster gentoo-dev 2020-02-04 17:09:18 UTC
Created attachment 611570 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-04 17:09:21 UTC
Created attachment 611572 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-04 17:09:24 UTC
Created attachment 611574 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-04 17:09:27 UTC
Created attachment 611576 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-04 17:09:30 UTC
Created attachment 611578 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-04 17:09:32 UTC
Created attachment 611580 [details]
sys-process:procps-3.3.16:20200204-083947.log
Comment 7 Toralf Förster gentoo-dev 2020-02-04 17:09:35 UTC
Created attachment 611582 [details]
temp.tbz2
Comment 8 Jannik Glückert 2020-06-09 08:46:12 UTC
I only get this error when the package is emerged with SCHED_IDLE scheduling policy, i.e. via 
PORTAGE_IONICE_COMMAND="chrt -i -p 0 \${PID}"
commenting that out / creating a seperate package.env fixes it - looks to me like the sched_batch test fails if it's not started as SCHED_RR

tested with both 3.3.15-r1 and 3.3.16-r2
Comment 9 Agostino Sarubbo gentoo-dev 2022-02-13 09:59:05 UTC
Update summary. [something] is used when something refers to an overlay
Comment 10 matoro archtester 2023-12-16 16:19:42 UTC
Is there any way to restrict PORTAGE_SCHEDULING_POLICY on a per-ebuild basis?  Even if it's just a bail-out in pkg_setup etc?
Comment 11 Arniii 2024-06-17 17:18:58 UTC
reproducible with sys-process/procps-3.3.17-r2
Comment 12 Mike Gilbert gentoo-dev 2024-06-17 18:07:13 UTC
The test-schedbatch command outputs the following when the scheduling policy is SCHED_IDLE.

% chrt -i 0 ./test-schedbatch
sched_setscheduler(0,SCHED_BATCH,{.sched_priority=0}: Operation not permitted
setpriority(PRIO_PROCESS, 0, 19): Operation not permitted
Comment 13 Larry the Git Cow gentoo-dev 2024-06-17 18:28:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b72995b011025251afeb92030e825c05d92e815

commit 6b72995b011025251afeb92030e825c05d92e815
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-06-17 18:27:34 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-06-17 18:27:34 +0000

    sys-process/procps: skip tests under SCHED_IDLE
    
    Closes: https://bugs.gentoo.org/708230
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-process/procps/procps-4.0.4-r1.ebuild | 10 ++++++++--
 sys-process/procps/procps-4.0.4.ebuild    | 10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)