Re: Bug report

Robin Thellend (robin@chatsystems.com)
Wed, 29 Dec 1999 15:52:21 -0600 (CST)


On Wed, 29 Dec 1999, Ulrik De Bie wrote:

> Robin, if you don't get an answer here, repost in a few days on
> linux-kernel, and make sure to include the kernel config you are
> using. (SMP is for instance a very important one .. is it the clean
> 2.2.13 kernel from kernel.org ?

We had SMP defined at the time I sent the first email this morning. I
removed it just a few minutes ago at Mark Riehl's advice. I don't know yet
whether it will help or not.

The only differences with the clean 2.2.13 files are in a diff attached at
this end of this mail.

> 0: c7 05 00 00 00 movl $0x0,0x0
> this line should not be there, so it would be very usefull to see if this
> code exists in the assembly generated from schedule.

Well, it IS in schedule.

695: c7 05 00 00 00 movl $0x0,0x0
69a: 00 00 00 00 00

I believe it is coming from:

if (in_interrupt())
goto scheduling_in_interrupt;
...

scheduling_in_interrupt:
printk("Scheduling in interrupt\n");
*(int *)0 = 0;
return;
}

It seems like the problem is that schedule() is called during an
interrupt. Now how would this ever happen?

> Kind regards
> Ulrik

Thanks again!
/Robin

diff -ru linux-2.2.13-vanilla/include/linux/fs.h linux-2.2.13/include/linux/fs.h
--- linux-2.2.13-vanilla/include/linux/fs.h Tue Oct 19 19:14:02 1999
+++ linux-2.2.13/include/linux/fs.h Wed Dec 29 12:20:06 1999
@@ -40,7 +40,7 @@
/* Fixed constants first: */
#undef NR_OPEN
#define NR_OPEN (1024*1024) /* Absolute upper limit on fd num */
-#define INR_OPEN 1024 /* Initial setting for nfile rlimits */
+#define INR_OPEN 4096 /* Initial setting for nfile rlimits */

#define BLOCK_SIZE_BITS 10
#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
@@ -50,7 +50,7 @@
extern int max_files, nr_files, nr_free_files;
extern int max_super_blocks, nr_super_blocks;

-#define NR_FILE 4096 /* this can well be larger on a larger system */
+#define NR_FILE 16384 /* this can well be larger on a larger system */
#define NR_RESERVED_FILES 10 /* reserved for root */
#define NR_SUPER 256

diff -ru linux-2.2.13-vanilla/include/linux/limits.h linux-2.2.13/include/linux/limits.h
--- linux-2.2.13-vanilla/include/linux/limits.h Tue Dec 2 15:44:40 1997
+++ linux-2.2.13/include/linux/limits.h Wed Nov 17 12:09:12 1999
@@ -1,12 +1,12 @@
#ifndef _LINUX_LIMITS_H
#define _LINUX_LIMITS_H

-#define NR_OPEN 1024
+#define NR_OPEN 16384

#define NGROUPS_MAX 32 /* supplemental group IDs are available */
#define ARG_MAX 131072 /* # bytes of args + environ for exec() */
#define CHILD_MAX 999 /* no limit :-) */
-#define OPEN_MAX 256 /* # open files a process may have */
+#define OPEN_MAX 4096 /* # open files a process may have */
#define LINK_MAX 127 /* # links a file may have */
#define MAX_CANON 255 /* size of the canonical input queue */
#define MAX_INPUT 255 /* size of the type-ahead buffer */
diff -ru linux-2.2.13-vanilla/include/linux/posix_types.h linux-2.2.13/include/linux/posix_types.h
--- linux-2.2.13-vanilla/include/linux/posix_types.h Tue Oct 19 19:14:02 1999
+++ linux-2.2.13/include/linux/posix_types.h Wed Nov 17 12:09:55 1999
@@ -22,7 +22,7 @@
#define __NFDBITS (8 * sizeof(unsigned long))

#undef __FD_SETSIZE
-#define __FD_SETSIZE 1024
+#define __FD_SETSIZE 4096

#undef __FDSET_LONGS
#define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS)

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu