Linux-Misc Digest #926, Volume #24               Sun, 25 Jun 00 14:13:05 EDT

Contents:
  Limiting processes per user (Philip)
  Shell scripting and chmod +s ([EMAIL PROTECTED])
  Re: Sun Sparc faster then intel pentium: is this true???? (Rich Teer)
  Re: Who is loading the system and why? (Robert Heller)
  Re: Limiting processes per user (Hal Burgiss)
  Re: loadlin setup: win98 boots despite choosing linux in menu (David Turley)
  Re: X server crashes with nvidia-driver (herman dumont)

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

From: Philip <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Limiting processes per user
Date: Sun, 25 Jun 2000 17:34:12 GMT


I am running a shellaccount server where I want to put a limit on the
max number of processes per user. I'e already took a look at
include/asm-i386/resource.h but I don't think that this will solve my
problem. 

so I was thinking about a crontab script that checks every ten seconds
for the number of processes per user.

So in pseudo code ...

allusers=get the list of all users

x=0
for allusers
 begin
        x = 0
        processes = ps aux | grep currentuser
        for all prcoesses
         begin
                increase x
                if x > 6 then kill -9 currectprocess
         end
 end


But now in a correct bash shell script :) and in a crontab that happens
each ten seconds.

OR is there a WAY better solution for this? if so .. please inform me
about it :)



-- 
Philip van Hoof aka freax         _/_/_/                                
http://users.pandora.be/skatan  _/_/  _/ _/_/   _/_/_/    _/_/   _/   _/
mailto:[EMAIL PROTECTED]        _/_/     _/ _/  _/       _/  _/   _/  _/ 
Grow a beard,drink Jolt Cola_/_/_/_/   _/  _/ _/_/    _/_/_/_/   _/_/   
and come join the fun (Alan: _/_/     _/     _/      _/    _/  _/  _/   
Beginning Linux Programing) _/_/     _/      _/_/_/ _/    _/ _/     _/

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

Date: Sun, 25 Jun 2000 19:18:54 +0200
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Subject: Shell scripting and chmod +s

Hi out there,

I have a little problem with a shell script that has to call programs only accessible 
to root.

PROBLEM:

I want to provide Internet dialup using ISDN/Modem to a group of people. To 
configure/initializing

the dialup they have to call programs that are only accesible to root (isdnctrl for 
example) but I

don't want the programs 'chmod +s'. Instead I wrote a shell script, that does the 
technical configuration

stuff for the logged in user. To gain access to the root-programs I 'chmod +s' this 
script.

BUT: It didn't worked. Even if the script has the setuid bit set, it is still denied 
to execute the root-programs.

Why? And what can I do to make it work?

--
Wolfgang Gross
[EMAIL PROTECTED]




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

Crossposted-To: comp.sys.sun.hardware,comp.sys.sun.misc
From: Rich Teer <[EMAIL PROTECTED]>
Subject: Re: Sun Sparc faster then intel pentium: is this true????
Date: Sun, 25 Jun 2000 17:41:47 GMT

On 24 Jun 2000, Carl J. Boll wrote:

> No, DOS doesn't have crash recovery, neither does Solaris.  If the
> kernel crashes you are SOL.  That is what we are talking about,

Typically, auto-boot will be set to true on a Sun machine.  In that
case, if the kernel panics, the machine *will* reboot and be running
again.

> As to poor programming.  I've seen too much of it.  Not just under
> DOS either.  You name the OS and there are examples of poor
> programming.  If you have to powerdown to change the configuration
> there is something wrong with either the hardware or software.

This I do agree with.

> >Unix systems have always had a high learning curve,but  what exactly is
> >UNIX-standard?  They're both SVr4 and posix compliant, what more need there
> >be?
> 
> Standard utilities and file management would be a start.  This a 
> wish that will never come true and there is the same problem with
> the different Linux "providers".  Slackware's file management 
> (organization) is different from Red Hat's, etc.

But Linux != UNIX.  UNIX itself *is* standard, to a large degree.
As well as the previously mentioned SVR4 and POSIX standards, there's
also the UNIX '98 and UNIX 2000 standards (both of which Solaris is
compliant with).  I agree that Linux has some work to do in the
are of standards conformance (though Linux advocaters may diagree with
me here!).

> to $10,000.00.  I personally would opt for Book PC on the desktop with
> a 400 Mhz Celeron CPU and a good 15" monitor.  Fully configured with

I'd argue that "a good 15" monitor" is an oxymoron...

--
Rich Teer

NT tries to do almost everything UNIX does, but fails - miserably.

The use of Windoze cripples the mind; its use should, therefore, be
regarded as a criminal offence.  (With apologies to Edsger W. Dijkstra)

Voice: +1 (250) 979-1638
WWW: www.rite-group.com


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

From: Robert Heller <[EMAIL PROTECTED]>
Subject: Re: Who is loading the system and why?
Date: Sun, 25 Jun 2000 17:41:43 GMT

  David Steuber <[EMAIL PROTECTED]>,
  In a message on Sun, 25 Jun 2000 17:00:01 GMT, wrote :

DS> [EMAIL PROTECTED] (J Bland) writes:
DS> 
DS> ' >Why do you think it is being loaded? 
DS> ' 
DS> ' Because there is roughly an average of 1 process waiting in the queue, but
DS> ' the cpu is practically idle. This can be confusing if you consider LA to be
DS> ' cpu-based only.
DS> 
DS> Aye, it is the load average I am concerned about.
DS> 
DS> ' What is most probably causing it is an IO process of some sort; a big ftp
DS> ' job, copying lots of files, that sort of thing, which doesn't use much cpu
DS> ' but hammers the various IO devices.
DS> 
DS> The disk is quiet.  The network is quiet.
DS> 
DS> ' Do a ps aux, and see if there's anything obviously working away that shifts
DS> ' data.
DS> 
DS> david@solo:> uptime
DS>  12:37pm  up 13:09,  3 users,  load average: 1.00, 1.00, 1.00
DS> david@solo:> ps aux
DS> USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
DS> at         162  0.0  0.4  1264   552  ?  S    23:28   0:00 /usr/sbin/atd
DS> david      248  0.0  3.3  6640  4332  ?  S    23:29   0:03 kwm
DS> david      314  0.0  2.6  6024  3364  ?  S    23:29   0:00 kwmsound
DS> david      317  0.0  3.7  8468  4752  ?  S    23:29   0:01 kfm -d
DS> david      323  0.0  2.9  6452  3756  ?  S    23:29   0:01 kbgndwm
DS> david      326  0.0  2.7  6108  3580  ?  S    23:29   0:00 krootwm
DS> david      329  0.0  3.4  6736  4448  ?  S    23:29   0:01 kpanel
DS> david      330  0.0  1.2  6224  1652  ?  S    23:29   0:00 kaudioserver
DS> david      331  0.0  1.9  6264  2468  ?  S    23:29   0:00 maudio -media 0
DS> david      336  0.0  3.2  6568  4144  ?  S    23:29   0:12 kvt -restore kvtrc.27
DS> david      342  0.0  1.0  2308  1388  p0 S    23:29   0:00 bash
DS> david      491  0.4 12.8 18612 16496  ?  S    23:57   3:07 /usr/X11R6/bin/xemacs
DS> david      633  0.0  2.1  3696  2728  ?  S    00:02   0:00 /usr/bin/ispell -a -m
DS> david      806  0.0  3.3  6656  4228  ?  S    00:16   0:00 kvt -T ption Terminal
DS> david      807  0.0  1.0  2292  1340  p1 S    00:16   0:00 bash
DS> david      821  0.0  0.4  1436   588  p1 S    00:16   0:00 rlogin interloper
DS> david      824  0.0  0.4  1440   596  p1 S    00:17   0:00 rlogin interloper
DS> david      967  0.0  9.0 18228 11576  ?  S    01:39   0:03 /opt/netscape128/nets
DS> david      968  0.0  2.6 14828  3388  ?  S    01:40   0:00 (dns helper)
DS> david     2178  0.0  0.4  1188   544  p0 R    12:37   0:00 ps aux
DS> root         1  0.0  0.1   368   196  ?  S    23:27   0:05 init [3]
DS> root         2  0.0  0.0     0     0  ?  SW   23:27   0:00 (kflushd)
DS> root         3  0.0  0.0     0     0  ?  SW   23:27   0:00 (kupdate)
DS> root         4  0.0  0.0     0     0  ?  SW   23:27   0:00 (kpiod)
DS> root         5  0.0  0.0     0     0  ?  SW   23:27   0:00 (kswapd)
DS> root        81  0.0  0.4  1240   620  ?  S    23:28   0:00 /sbin/cardmgr
DS> root       122  0.0  0.5  1472   648  ?  S    23:28   0:00 /usr/sbin/syslogd
DS> root       125  0.0  0.6  1452   768  ?  S    23:28   0:00 /usr/sbin/klogd -c 1
DS> root       157  0.0  0.3  1124   468  ?  D    23:28   0:00 /usr/sbin/apmd -w 10
DS> root       158  0.0  0.3  1124   468  ?  S    23:28   0:00 /usr/sbin/apmd -w 10
DS> root       164  0.0  0.0     0     0  ?  SW   23:28   0:00 (rpciod)
DS> root       167  0.0  0.4  1440   572  ?  S    23:28   0:00 /usr/sbin/inetd
DS> root       180  0.0  0.4  1492   624  ?  S    23:28   0:00 /usr/sbin/lpd
DS> root       201  0.0  0.4  1288   632  ?  S    23:28   0:00 /usr/sbin/cron
DS> root       208  0.0  0.6  1556   804  ?  S    23:28   0:00 /usr/sbin/nscd
DS> root       209  0.0  0.6  1556   804  ?  S    23:28   0:00 /usr/sbin/nscd
DS> root       210  0.0  0.6  1556   804  ?  S    23:28   0:00 /usr/sbin/nscd
DS> root       211  0.0  0.6  1556   804  ?  S    23:28   0:00 /usr/sbin/nscd
DS> root       212  0.0  0.6  1556   804  ?  S    23:28   0:00 /usr/sbin/nscd
DS> root       213  0.0  0.6  1556   804  ?  S    23:28   0:00 /usr/sbin/nscd
DS> root       214  0.0  0.6  1556   804  ?  S    23:28   0:00 /usr/sbin/nscd
DS> root       222  0.0  0.3  1112   448   1 S    23:28   0:00 /sbin/mingetty --nocl
DS> root       223  0.0  0.3  1112   448   2 S    23:28   0:00 /sbin/mingetty tty2
DS> root       224  0.0  0.3  1112   448   3 S    23:28   0:00 /sbin/mingetty tty3
DS> root       225  0.0  0.3  1112   448   4 S    23:28   0:00 /sbin/mingetty tty4
DS> root       226  0.0  0.3  1112   448   5 S    23:28   0:00 /sbin/mingetty tty5
DS> root       227  0.0  0.3  1112   448   6 S    23:28   0:00 /sbin/mingetty tty6
DS> root       228  0.0  1.7  5728  2272  ?  S    23:28   0:00 /opt/kde/bin/kdm
DS> root       230  0.1  5.7 15872  7364  ?  S    23:28   0:55 /usr/X11R6/bin/X :0 v
DS> root       231  0.0  2.4  6124  3152  ?  S    23:28   0:00 -:0
DS> root       477  0.0  0.9  2224  1152  ?  S    23:56   0:00 sendmail: accepting c
DS> david@solo:> netstat
DS> Active Internet connections (w/o servers)
DS> Proto Recv-Q Send-Q Local Address           Foreign Address         State
DS> tcp        0      0 solo.david-steuber:1086 interloper.david-s:nntp ESTABLISHED
DS> tcp        0      0 solo.david-steuber:1048 websites.steuber.co:www CLOSE
DS> tcp        1      0 solo.david-steuber:1047 interloper.david-st:www CLOSE_WAIT
DS> tcp        1      0 solo.david-steuber:1046 interloper.david-st:www CLOSE_WAIT
DS> tcp        1      0 solo.david-steuber:1044 interloper.david-st:www CLOSE_WAIT
DS> tcp        0      0 solo.david-steuber:1023 interloper.david-:login ESTABLISHED
DS> udp        0      0 solo.david-steuber:1024 world4.bellatlan:domain
DS> Active UNIX domain sockets (w/o servers)
DS> Proto RefCnt Flags       Type       State         I-Node Path
DS> unix  1      [ ]         STREAM     CONNECTED     328    @0000003f
DS> unix  1      [ ]         STREAM     CONNECTED     326    @0000003e
DS> unix  1      [ ]         STREAM     CONNECTED     312    @00000038
DS> unix  1      [ ]         STREAM     CONNECTED     1047   @000000fd
DS> unix  1      [ ]         STREAM     CONNECTED     324    @0000003d
DS> unix  1      [ ]         STREAM     CONNECTED     314    @00000039
DS> unix  1      [ ]         STREAM     CONNECTED     322    @0000003c
DS> unix  1      [ ]         STREAM     CONNECTED     196    @0000000f
DS> unix  1      [ N ]       STREAM     CONNECTED     320    @0000003b
DS> unix  1      [ N ]       STREAM     CONNECTED     690    @000000ae
DS> unix  1      [ N ]       STREAM     CONNECTED     1171   @00000112
DS> unix  1      [ ]         STREAM     CONNECTED     101    @00000002
DS> unix  1      [ ]         STREAM     CONNECTED     591    @0000008d
DS> unix  1      [ ]         STREAM     CONNECTED     97     @00000001
DS> unix  1      [ ]         STREAM     CONNECTED     241    @00000022
DS> unix  1      [ ]         STREAM     CONNECTED     155    @00000006
DS> unix  1      [ N ]       STREAM     CONNECTED     337    @00000041
DS> unix  1      [ ]         STREAM     CONNECTED     136    @00000004
DS> unix  1      [ ]         STREAM     CONNECTED     112    @00000003
DS> unix  1      [ ]         STREAM     CONNECTED     1172   /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     1048   /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     691    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     592    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     338    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     329    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     327    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     325    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     323    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     321    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     315    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     313    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     242    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     199    /tmp/.X11-unix/X0
DS> unix  1      [ ]         STREAM     CONNECTED     156    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     137    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     113    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     102    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     98     /dev/log  
DS> 
DS> So what process is pushing my load average up from the normal 0.0, when 
DS> all is quiet?  My other machine seems to have nothing going on:
DS> 
DS> david@Interloper:> uptime
DS>  12:42pm  up 14 days, 10:04,  4 users,  load average: 0.00, 0.00, 0.00
DS> david@Interloper:> ps aux
DS> USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
DS> at         212  0.0  0.0  1160   112  ?  S   Jun 11   0:00 /usr/sbin/atd
DS> bin        144  0.0  0.1  1052   216  ?  S   Jun 11   0:00 /sbin/portmap
DS> david     2090  0.0  0.4  2204   596   1 S   Jun 17   0:00 -bash
DS> david    10013  0.0  0.5  2180   692   2 S   Jun 20   0:00 -bash
DS> david    17963  0.0  0.4  2176   552   3 S   Jun 22   0:00 -bash
DS> david    24777  0.0  1.0  2196  1336  ?  S    00:16   0:00 -bash
DS> david    26069  0.0  0.4  1088   524  ?  R    12:42   0:00 ps aux
DS> news     25905  0.0  4.2  5988  5424  ?  S    10:51   0:02 leafnode
DS> root         1  0.0  0.0   368    64  ?  S   Jun 11   0:13 init [2]
DS> root         2  0.0  0.0     0     0  ?  SW  Jun 11   0:10 (kflushd)
DS> root         3  0.0  0.0     0     0  ?  SW  Jun 11   1:51 (kupdate)
DS> root         4  0.0  0.0     0     0  ?  SW  Jun 11   0:00 (kpiod)
DS> root         5  0.0  0.0     0     0  ?  SW  Jun 11   0:06 (kswapd)
DS> root         6  0.0  0.0     0     0  ?  SW  Jun 11   0:00 (md_thread)
DS> root       148  0.0  0.0  1132     0  ?  SW  Jun 11   0:00 (rpc.ugidd)
DS> root       155  0.0  0.0  1064    44  ?  S   Jun 11   0:14 /usr/sbin/scanlogd
DS> root       161  0.1  0.1  1364   216  ?  S   Jun 11  21:36 /usr/sbin/syslogd
DS> root       165  0.0  0.1  1356   168  ?  S   Jun 11   0:09 /usr/sbin/klogd -c 1
DS> root       197  0.0  0.2  1644   380  ?  S   Jun 11   0:00 /usr/sbin/rpc.mountd
DS> root       199  0.0  0.3  1724   400  ?  S   Jun 11   2:17 /usr/sbin/rpc.nfsd
DS> root       219  0.0  0.0  1332    68  ?  S   Jun 11   0:00 /usr/sbin/inetd
DS> root       229  0.0  0.0  1380     0  ?  SW  Jun 11   0:00 (lpd)
DS> root       231  0.0  0.0  4620    60  ?  S   Jun 11   0:00 /usr/sbin/httpd -f /e
DS> root       245  0.0  0.2  2112   308  ?  S   Jun 11   0:00 sendmail: accepting c
DS> root       256  0.0  0.0  1184   120  ?  S   Jun 11   0:00 /usr/sbin/cron
DS> root       260  0.0  0.0  1012     0   4 SW  Jun 11   0:00 (mingetty)
DS> root       261  0.0  0.0  1012     0   5 SW  Jun 11   0:00 (mingetty)
DS> root       262  0.0  0.0  1012     0   6 SW  Jun 11   0:00 (mingetty)
DS> root       265  0.0  0.3  1476   448  ?  S   Jun 11   0:00 /usr/sbin/nscd
DS> root       266  0.0  0.3  1476   448  ?  S   Jun 11   0:00 /usr/sbin/nscd
DS> root       267  0.0  0.3  1476   448  ?  S   Jun 11   0:00 /usr/sbin/nscd
DS> root       268  0.0  0.3  1476   448  ?  S   Jun 11   0:00 /usr/sbin/nscd
DS> root       269  0.0  0.3  1476   448  ?  S   Jun 11   0:00 /usr/sbin/nscd
DS> root       270  0.0  0.3  1476   448  ?  S   Jun 11   0:01 /usr/sbin/nscd
DS> root       271  0.0  0.3  1476   448  ?  S   Jun 11   0:00 /usr/sbin/nscd
DS> root       272  0.0  0.2  1800   268  ?  S   Jun 11   0:00 sh /usr/local/bin/ads
DS> root       332  0.0  0.0  1596     0   1 SW  Jun 11   0:00 (login)
DS> root      1928  0.0  0.0  1596     0   2 SW  Jun 11   0:00 (login)
DS> root     11065  0.0  0.2  1596   364   3 S   Jun 20   0:00 login -- david
DS> root     24775  0.0  0.7  2212  1004  ?  S    00:16   0:00 in.rlogind
DS> root     24776  0.0  0.6  1632   860  ?  S    00:16   0:00 login -- david
DS> root     24963  0.0  0.5  1404   656  ?  S    00:33   0:00 /usr/sbin/pppd pty /u
DS> root     24964  0.0  0.3  1032   436  ?  S    00:33   0:02 /usr/local/bin/pppoe
DS> wwwrun     237  0.0  0.0  4692     0  ?  SW  Jun 11   0:00 (httpd)
DS> wwwrun     238  0.0  0.7  4692   920  ?  S   Jun 11   0:00 /usr/sbin/httpd -f /e
DS> wwwrun     239  0.0  0.8  4692  1060  ?  S   Jun 11   0:00 /usr/sbin/httpd -f /e
DS> wwwrun     240  0.0  0.7  4692   920  ?  S   Jun 11   0:00 /usr/sbin/httpd -f /e
DS> wwwrun     241  0.0  0.0  4692    40  ?  S   Jun 11   0:00 /usr/sbin/httpd -f /e
DS> wwwrun   17317  0.0  0.0  4692     0  ?  SW  Jun 13   0:00 (httpd)
DS> wwwrun   17318  0.0  0.7  4692   920  ?  S   Jun 13   0:00 /usr/sbin/httpd -f /e
DS> wwwrun   17319  0.0  0.0  4692     0  ?  SW  Jun 13   0:00 (httpd)
DS> wwwrun   17320  0.0  0.0  4692     0  ?  SW  Jun 13   0:00 (httpd)
DS> wwwrun   17321  0.0  0.0  4692     0  ?  SW  Jun 13   0:00 (httpd)  
DS> david@Interloper:> netstat
DS> Active Internet connections (w/o servers)
DS> Proto Recv-Q Send-Q Local Address           Foreign Address         State
DS> tcp        0      0 Interloper.david-s:nntp solo.david-steuber:1086 ESTABLISHED
DS> tcp        0    124 Interloper.david-:login solo.david-steuber:1023 ESTABLISHED
DS> Active UNIX domain sockets (w/o servers)
DS> Proto RefCnt Flags       Type       State         I-Node Path
DS> unix  1      [ ]         STREAM     CONNECTED     262990 @000023ab
DS> unix  1      [ ]         STREAM     CONNECTED     229293 @0000166e
DS> unix  1      [ ]         STREAM     CONNECTED     263001 @000023ae
DS> unix  1      [ ]         STREAM     CONNECTED     246165 @00001b3d
DS> unix  1      [ ]         STREAM     CONNECTED     106    @00000002
DS> unix  1      [ ]         STREAM     CONNECTED     101    @00000001
DS> unix  1      [ ]         STREAM     CONNECTED     255149 @00002168
DS> unix  1      [ ]         STREAM     CONNECTED     242682 @0000192d
DS> unix  1      [ ]         STREAM     CONNECTED     262871 @000023a1
DS> unix  1      [ ]         STREAM     CONNECTED     206    @00000006
DS> unix  1      [ ]         STREAM     CONNECTED     198    @00000005
DS> unix  1      [ ]         STREAM     CONNECTED     179    @00000004
DS> unix  1      [ ]         STREAM     CONNECTED     124    @00000003
DS> unix  1      [ ]         STREAM     CONNECTED     263002 /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     262991 /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     262872 /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     255152 /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     246166 /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     242683 /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     229296 /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     207    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     199    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     180    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     125    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     107    /dev/log
DS> unix  1      [ ]         STREAM     CONNECTED     102    /dev/log 
DS> 
DS> Something on solo is keeping the load average up.  Whatever that
DS> process is didn't go away with a full power down and boot up cycle.

Solo has X11 up (looks like KDE), interloper does not.  The X server has
a loop (as does most of the X11 clients), that is periodically checking
to see if the silly user has moved the mouse, clicked a button, or typed
a key on the keyboard. These loops are not *individually* cpu bound, but
there is some cumulatively cpu and I/O usage.  So, 10 processes using 
1/10 of the system resources == a load average of 1.  Or 10 processes
using 1/100 of the system 10 times each during some 'period' also equals
a load average of 1.  Your system is working, but is doing many *brief*
little things every few milisecs or so.  A load average of 1 is not a
big deal, unless you have a '386 at 20mhz or something.  I just counted:
12 X11 clients, plus the X server.  Note: you are running kdm on solo,
but not on interloper.  What happens is you do this:

Log out of your X session.
do a CTRL-ALT-F2
login to the console there.
do:

telinit 3

NOW wait a minute or so and do a top now.

Watch as the load average drifts down to about 0.








                                                                          
-- 
                                     \/
Robert Heller                        ||InterNet:   [EMAIL PROTECTED]
http://vis-www.cs.umass.edu/~heller  ||            [EMAIL PROTECTED]
http://www.deepsoft.com              /\FidoNet:    1:321/153

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

From: [EMAIL PROTECTED] (Hal Burgiss)
Subject: Re: Limiting processes per user
Reply-To: [EMAIL PROTECTED]
Date: Sun, 25 Jun 2000 17:44:31 GMT

On Sun, 25 Jun 2000 17:34:12 GMT, Philip <[EMAIL PROTECTED]> wrote:
>
>I am running a shellaccount server where I want to put a limit on the
>max number of processes per user. I'e already took a look at
>include/asm-i386/resource.h but I don't think that this will solve my
>problem. 

Won't 'ulimit' do what you want?

[hal@feenix hal]$ ulimit -a

[...]

max user processes          256

-- 
Hal B
[EMAIL PROTECTED]
--

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

From: David Turley <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: loadlin setup: win98 boots despite choosing linux in menu
Date: Sun, 25 Jun 2000 17:45:41 GMT

On 25 Jun 2000 04:29:06 GMT, Ted apparently wrote:

> 
> When I boot the system, I get a menu, as desired.  However, Win98 boots 
> even if I choose the Linux option.  I have doublechecked every filename and 
> all of the syntax can't seem to get this to work.  I tried eliminating the 
> bootopts.txt file and adding that information to config.sys, as directed by 
> the loadlin manual pages.  I know loadlin itself is not the problem - does 
> anyone know what I can do?  I suspect something is configured somewhere in 
> Win98 that needs to be changed.
> 
> Thank you,
> Ted Schuman

Copy my example at http://www.binary.net/dturley/linux/easylinux.html


-- 
David Turley
[EMAIL PROTECTED]

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

From: herman dumont <[EMAIL PROTECTED]>
Crossposted-To: 
alt.uu.comp.os.linux.questions,comp.os.linux.hardware,comp.os.linux.x,nl.comp.os.linux.overig,nl.comp.os.linux.x
Subject: Re: X server crashes with nvidia-driver
Date: Sun, 25 Jun 2000 20:09:55 +0200

This is a multi-part message in MIME format.
==============5EC54E70F30CDE040955ACA2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

FROZEN_Steam wrote:
> 
> Didn't work, should it be in a special subsection?
> 
> PS. FROZEN_Steam and  Floris Hammer are the same person, just sometimes
> posting from windows, sometimes from linux...
> 
> herman dumont wrote:
> > Hi,
> >
> > try this one:
> > in XFConfig put in Section Screen:
> > Option   "NvAgp" "0"
> >
> > HTH
Hi,
i attached my Section Screen of XF86Config:
ik voeg hierbij mijn Section Screen van XF86config :)


HTH ( HDDH :)
==============5EC54E70F30CDE040955ACA2
Content-Type: text/plain; charset=us-ascii;
 name="screen"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="screen"

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
    Identifier  "Screen 1"
    Device      "TNT2"
    Monitor     "Dell"
    DefaultDepth 24
   Option   "NvAgp" "0"
    Subsection "Display"
        Depth       8
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes      "1024x768"
        ViewPort    0 0
    EndSubsection
EndSection

==============5EC54E70F30CDE040955ACA2==


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


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to