Skip to contentSkip to conversation

sched: Remove process.c

RFC PATCH New Petr Vorel 3 participants 4 messages Sep 13, 2021 – Sep 14, 2021

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

RFC PATCH 1/1 sched: Remove process.c

Test was removed as buggy from the runtest file nearly 20 years ago in:
576f1ee56 ("Removed a test that was not correctly running.")

Test is probably obsolete, not using even legacy API, non-zero exit:

$ ./process -d 8 -b 2 -t 1; echo $?
total number of process to be created nodesum (511) is greater
 than the allowed SEMMSL value (250)
reseting the value of nodesum to SEMMSL
Terminated
143

+ leaving very high load after being terminated.

---
Hi,

alternative approach to trying to cleanup the testsuite a bit [1].

Kind regards,
Petr

[1] https://patchwork.ozlabs.org/project/ltp/list/?series=261770&state=*

 .../kernel/sched/process_stress/.gitignore    |    1 -
 .../kernel/sched/process_stress/Makefile      |   29 -
 .../kernel/sched/process_stress/process.c     | 1270 -----------------
 3 files changed, 1300 deletions(-)
 delete mode 100644 testcases/kernel/sched/process_stress/.gitignore
 delete mode 100644 testcases/kernel/sched/process_stress/Makefile
 delete mode 100644 testcases/kernel/sched/process_stress/process.c
testcases/kernel/sched/process_stress/.gitignore deleted +0 -1
deleted file mode 100644
index b2d4946e6..000000000
@@ -1 +0,0 @@
-/process
testcases/kernel/sched/process_stress/Makefile deleted +0 -29
deleted file mode 100644
index 011017c65..000000000
@@ -1,29 +0,0 @@
-#
-#    kernel/sched/process_test testcases Makefile.
-#
-#    Copyright (C) 2009, Cisco Systems Inc.
-#
-#    This program is free software; you can redistribute it and/or modify
-#    it under the terms of the GNU General Public License as published by
-#    the Free Software Foundation; either version 2 of the License, or
-#    (at your option) any later version.
-#
-#    This program is distributed in the hope that it will be useful,
-#    but WITHOUT ANY WARRANTY; without even the implied warranty of
-#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#    GNU General Public License for more details.
-#
-#    You should have received a copy of the GNU General Public License along
-#    with this program; if not, write to the Free Software Foundation, Inc.,
-#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Ngie Cooper, July 2009
-#
-
-top_srcdir		?= ../../../..
-
-include $(top_srcdir)/include/mk/env_pre.mk
-
-CPPFLAGS		+= -D_LINUX
-
-include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/sched/process_stress/process.c deleted +0 -1270

1,270 lines not on this page · raw message

Signature · 1 line
2.33.0
#1 lore raw

RFC PATCH 1/1 sched: Remove process.c

Hi!

Quoted 12 lines

Test was removed as buggy from the runtest file nearly 20 years ago in:
576f1ee56 ("Removed a test that was not correctly running.")

Test is probably obsolete, not using even legacy API, non-zero exit:

$ ./process -d 8 -b 2 -t 1; echo $?
total number of process to be created nodesum (511) is greater
 than the allowed SEMMSL value (250)
reseting the value of nodesum to SEMMSL
Terminated
143
Quoted 4 lines

+ leaving very high load after being terminated.

I was looking at the test and while the idea seems to valid and interesting, the implementation is buggy, it does not take much to make it segfault and it tends to leave processes unterminated, so it would be probably easier to implement something from scratch.[

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

RFC PATCH 1/1 sched: Remove process.c

In reply to Petr Vorel
Quoted 12 lines · Petr Vorel

Test was removed as buggy from the runtest file nearly 20 years ago in:
576f1ee56 ("Removed a test that was not correctly running.")

Test is probably obsolete, not using even legacy API, non-zero exit:

$ ./process -d 8 -b 2 -t 1; echo $?
total number of process to be created nodesum (511) is greater
 than the allowed SEMMSL value (250)
reseting the value of nodesum to SEMMSL
Terminated
143
Quoted 5 lines

+ leaving very high load after being terminated.

Signature · 5 lines
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210914/8a2d8425/attachment.htm>
author
#3 lore raw

RFC PATCH 1/1 sched: Remove process.c

Hi Li, Cyril,

thanks a lot, merged!

Kind regards,
Petr