public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: LTP Mailing List <ltp-list@lists.sourceforge.net>
Subject: [LTP] [PATCH] Fix MSGCTL10() to avoid un-necessary cluttering of whole system with all PIDs
Date: Fri, 19 Feb 2010 18:05:01 +0530	[thread overview]
Message-ID: <20100219123501.19085.64668.sendpatchset@subratamodak.linux.ibm.com> (raw)

Hi,

msgctl10() un-necessarily eats up all the PIDs of the system leading to
system becoming un-responsive. The changed no.s would better do the job.

Signed-off-by: Subrata Modak<subrata@linux.vnet.ibm.com>
---

--- ltp-full-20100131/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c.orig	2010-02-19 17:59:23.000000000 +0530
+++ ltp-full-20100131/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c	2010-02-19 18:01:13.000000000 +0530
@@ -65,12 +65,8 @@ extern int Tst_count;		/* Test Case coun
 
 int exp_enos[] = { 0 };		/* List must end with 0 */
 
-#ifndef CONFIG_COLDFIRE
-#define MAXNPROCS	1000000	/* This value is set to an arbitrary high limit. */
-#else
-#define MAXNPROCS	 100000	/* Coldfire can't deal with 1000000 */
-#endif
-#define MAXNREPS	100000
+#define MAXNPROCS	10000 	/*These should be sufficient*/
+#define MAXNREPS	10000	/*Else they srewup the system un-necessarily*/
 #define FAIL		1
 #define PASS		0
 

---
Regards--
Subrata


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

             reply	other threads:[~2010-02-19 13:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-19 12:35 Subrata Modak [this message]
2010-04-20 10:00 ` [LTP] [PATCH] Fix MSGCTL10() to avoid un-necessary cluttering of whole system with all PIDs Caspar ZHANG
2010-04-20 10:38   ` Rishikesh K Rajak
     [not found] <239293073.562841271760559982.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com>
2010-04-20 10:49 ` Caspar ZHANG
2010-04-20 11:47   ` Rishikesh K Rajak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100219123501.19085.64668.sendpatchset@subratamodak.linux.ibm.com \
    --to=subrata@linux.vnet.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox