Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Open files per process
@ 1998-04-09 20:31 M. Nicklaus
  1998-04-09 21:19 ` kernel 2.1.94 Artimage
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: M. Nicklaus @ 1998-04-09 20:31 UTC (permalink / raw)
  To: axp-list; +Cc: mn1

Following up on my previous posts concerning the max. number
of open files per process.  This limit is 256 by default in
Linux (set in /usr/src/linux/include/linux/fs.h and limits.h
---does any of these two files take precedence if NR_OPEN
differs between them, BTW?)

In DU, the max. number of open files per process is 4096.
Since we need to run the same code on both platforms, I want
to increase NR_OPEN (and the other related limits such as
NR_FILE, NR_INODE) 16-fold and rebuild the Linux kernel.

Before I get myself into trouble:  Has anyone done this
(or a similarly significant increase) successfully?

(System is RPX164-2 w/ 21164 500 MHz, 256 MB RAM, RH 4.2 w/
kernel 2.0.30.)

Marc


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

* kernel 2.1.94
  1998-04-09 20:31 Open files per process M. Nicklaus
@ 1998-04-09 21:19 ` Artimage
  1998-04-10  3:02   ` James D. Freels
  1998-04-09 21:54 ` Open files per process Harvey J. Stein
  1998-04-14 20:32 ` kazushige Goto's affiliation Robert Williams
  2 siblings, 1 reply; 8+ messages in thread
From: Artimage @ 1998-04-09 21:19 UTC (permalink / raw)
  To: axp-list

Here was the error I got

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8
-Wno-uninitialized -Wa,-m21164a -DBWX_USABLE   -c -o aic7xxx.o aic7xxx.c
In file included from aic7xxx.c:120:
aic7xxx/sequencer.h:43: redefinition of `u_int8_t'
/usr/src/linux/include/linux/types.h:75: `u_int8_t' previously declared
here
make[3]: *** [aic7xxx.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.1.94/drivers/scsi'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.1.94/drivers/scsi'
make[1]: *** [sub_dirs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.1.94/drivers'
make: *** [linuxsubdirs] Error 2
[root@tick linux]# vi drivers/scsi/aic7xxx/sequencer.h 

So I removed the offending typedef. I then compiled the kernel and tried
to boot it. It seems the scsi driver didn't work.

dev_config: fixing up latency from 32 to 32 for 1095:6465
dev_config: don't know how to set hostid of SCSI device (9004:8178)
dev_config: fixing up latency from 32 to 32 for 9004:8178
dev_config: fixing up latency from 0 to 32 for 8086:484
Flash device is an Intel 28f008SA
     16 segments, eacho fo 0x10000 (65536) bytes
No environment present

Any ideas what I need to do to fix this?

Artimage.-


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

* Re: Open files per process
  1998-04-09 20:31 Open files per process M. Nicklaus
  1998-04-09 21:19 ` kernel 2.1.94 Artimage
@ 1998-04-09 21:54 ` Harvey J. Stein
  1998-04-14 20:32 ` kazushige Goto's affiliation Robert Williams
  2 siblings, 0 replies; 8+ messages in thread
From: Harvey J. Stein @ 1998-04-09 21:54 UTC (permalink / raw)
  To: axp-list; +Cc: mn1, hjstein

"M. Nicklaus" <mn1@helix.nih.gov> writes:

> Following up on my previous posts concerning the max. number
> of open files per process.  This limit is 256 by default in
> Linux (set in /usr/src/linux/include/linux/fs.h and limits.h
> ---does any of these two files take precedence if NR_OPEN
> differs between them, BTW?)
> 
> In DU, the max. number of open files per process is 4096.
> Since we need to run the same code on both platforms, I want
> to increase NR_OPEN (and the other related limits such as
> NR_FILE, NR_INODE) 16-fold and rebuild the Linux kernel.
> 
> Before I get myself into trouble:  Has anyone done this
> (or a similarly significant increase) successfully?

It's been discussed on the linux-kernel mailing list.  Try searching
for max open files on:

   http://www.uwsg.indiana.edu/search/AT-linux_kernel_mailquery.html.

In particular, there's a patch and a mod for the patch at:

   http://www.uwsg.indiana.edu/hypermail/linux/kernel/9612.1/0037.html

There's an explanation of how to modify the max # of open files on the
system (as opposed to max open files per process) while the system is
running:

   http://www.uwsg.indiana.edu/hypermail/linux/kernel/9611.1/0100.html

The above leads to a patch & discussion at:

   http://www.linux.org.za/filehandle.patch.linux

The above includes dynamic allocation of some memory, presumably so
that each process doesn't suck up more memory due to the larger
limits.

There's also a warning about how *not* to go about it at:

   http://www.uwsg.indiana.edu/hypermail/linux/kernel/9701.0/0058.html

-- 
Harvey J. Stein
Berger Financial Research
hjstein@bfr.co.il


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

* Re: kernel 2.1.94
  1998-04-09 21:19 ` kernel 2.1.94 Artimage
@ 1998-04-10  3:02   ` James D. Freels
  1998-04-10  4:59     ` Artimage
  0 siblings, 1 reply; 8+ messages in thread
From: James D. Freels @ 1998-04-10  3:02 UTC (permalink / raw)
  To: axp-list; +Cc: nelsonl


Just as a confirmation, I also got the same error and non-compile for
2.1.94 on the aic7xxx scsi driver.  No fix here.  the 2.1.92 kernel
compiled fine however.

>Here was the error I got
>
>gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
>-fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8
>-Wno-uninitialized -Wa,-m21164a -DBWX_USABLE   -c -o aic7xxx.o aic7xxx.c
>In file included from aic7xxx.c:120:
>aic7xxx/sequencer.h:43: redefinition of `u_int8_t'
>/usr/src/linux/include/linux/types.h:75: `u_int8_t' previously declared

-- 
/------------------------------------------------------------------\
|James D. Freels, P.E._i, Ph.D. |Phone:  (423)576-8645 |   | L | A |
|Oak Ridge National Laboratory  |FAX:    (423)574-9172 | H | I | L |
|Research Reactors Division     |work e-m: fea@ornl.gov| F | N | P |
|P. O. Box 2008                 |home e-m: fea@icx.net | I | U | H |
|Oak Ridge, Tennessee 37831-6392|world's best neutrons | R | X | A |
\------------------------------------------------------------------/


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

* Re: kernel 2.1.94
  1998-04-10  3:02   ` James D. Freels
@ 1998-04-10  4:59     ` Artimage
  1998-04-10  5:12       ` Matthew Geier
  0 siblings, 1 reply; 8+ messages in thread
From: Artimage @ 1998-04-10  4:59 UTC (permalink / raw)
  To: James D. Freels; +Cc: axp-list

The non-compile is trivial to fix, but I think it causes the problems at
boot time. As for 2.1.92, I couldn't seem to get it to load. I got an
error with gzip's uncompressing. :( 

Artimage.-

On Thu, 9 Apr 1998, James D. Freels wrote:

> 
> Just as a confirmation, I also got the same error and non-compile for
> 2.1.94 on the aic7xxx scsi driver.  No fix here.  the 2.1.92 kernel
> compiled fine however.
> 
> >Here was the error I got
> >
> >gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> >-fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8
> >-Wno-uninitialized -Wa,-m21164a -DBWX_USABLE   -c -o aic7xxx.o aic7xxx.c
> >In file included from aic7xxx.c:120:
> >aic7xxx/sequencer.h:43: redefinition of `u_int8_t'
> >/usr/src/linux/include/linux/types.h:75: `u_int8_t' previously declared
> 
> -- 
> /------------------------------------------------------------------\
> |James D. Freels, P.E._i, Ph.D. |Phone:  (423)576-8645 |   | L | A |
> |Oak Ridge National Laboratory  |FAX:    (423)574-9172 | H | I | L |
> |Research Reactors Division     |work e-m: fea@ornl.gov| F | N | P |
> |P. O. Box 2008                 |home e-m: fea@icx.net | I | U | H |
> |Oak Ridge, Tennessee 37831-6392|world's best neutrons | R | X | A |
> \------------------------------------------------------------------/
> 


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

* Re: kernel 2.1.94
  1998-04-10  4:59     ` Artimage
@ 1998-04-10  5:12       ` Matthew Geier
  0 siblings, 0 replies; 8+ messages in thread
From: Matthew Geier @ 1998-04-10  5:12 UTC (permalink / raw)
  To: axp-list

> > Just as a confirmation, I also got the same error and non-compile for
> > 2.1.94 on the aic7xxx scsi driver.  No fix here.  the 2.1.92 kernel
> > compiled fine however.
> > 

 Ive gotten .94 to compile and run on my noname - but I got a makefile
error in arch/alpha/Makefile where it tries to work out what version
of AS you have and make the appropiate changes.
 I hard wired the Makefile and the kernel has compiled and booted fine, the
first one for a while !.

 It has only been up for a couple of hours so far, but X is running with
several xterms, and network activity  and DU netscape runs.

-- 
Matthew Geier,                 | Australian Public Access Network Association
matthew@sleeper.apana.org.au   | +61 2 9587 9773  
matthew@law.usyd.edu.au        |   018 977 356


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

* kazushige Goto's affiliation
  1998-04-09 20:31 Open files per process M. Nicklaus
  1998-04-09 21:19 ` kernel 2.1.94 Artimage
  1998-04-09 21:54 ` Open files per process Harvey J. Stein
@ 1998-04-14 20:32 ` Robert Williams
  1998-04-14 20:39   ` Robert Williams
  2 siblings, 1 reply; 8+ messages in thread
From: Robert Williams @ 1998-04-14 20:32 UTC (permalink / raw)
  To: axp-list

Kazushige Goto is an examiner in theJapanese Patent Office.

I've succeeded in compiling your G94
without threads.  I'm rebuilding with
the latest and greatest libdgemm-980414,
which is even faster, as I write.
I haven't tested a version transferred
to Linux yet, but it runs nicely on your
DEC Unix machine.
It's in .../bob/g94/g94



--
Bob Williams, http://bob.usuf2.usuhs.mil/




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

* Re: kazushige Goto's affiliation
  1998-04-14 20:32 ` kazushige Goto's affiliation Robert Williams
@ 1998-04-14 20:39   ` Robert Williams
  0 siblings, 0 replies; 8+ messages in thread
From: Robert Williams @ 1998-04-14 20:39 UTC (permalink / raw)
  To: axp-list

I'm very sorry.  This message was not intended
for the list.

--
Bob Williams, http://bob.usuf2.usuhs.mil/




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

end of thread, other threads:[~1998-04-14 20:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-09 20:31 Open files per process M. Nicklaus
1998-04-09 21:19 ` kernel 2.1.94 Artimage
1998-04-10  3:02   ` James D. Freels
1998-04-10  4:59     ` Artimage
1998-04-10  5:12       ` Matthew Geier
1998-04-09 21:54 ` Open files per process Harvey J. Stein
1998-04-14 20:32 ` kazushige Goto's affiliation Robert Williams
1998-04-14 20:39   ` Robert Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox