Linux-Development-Sys Digest #797, Volume #7     Tue, 25 Apr 00 11:16:27 EDT

Contents:
  Adding new disks without rebooting? (Tim Shoppa)
  prot_ops struct (vinod tipparaju)
  File questions (John Jacques)
  Re: Two really easy (I'm sure) questions (M Sweger)
  Re: MS caught breaking web sites ([EMAIL PROTECTED])
  Enjoy it more! 71503152 ([EMAIL PROTECTED])
  cluster web server (Kaichuan He)
  /dev/nvram ("Sake")
  Re: MS caught breaking web sites (Jianmang Li)
  Re: PCI soundcard driver (Karl Heyes)
  Re: MS caught breaking web sites (Sean LeBlanc)
  MUTEX in device driver read/write (���ظ� Chun-Mok Chung)
  SIGACTION (David)
  Re: MS caught breaking web sites (Richard Steiner)
  Re: SIGACTION ("Arthur H. Gold")
  Re: Adding new disks without rebooting? (jwk)
  TCP implementation (=?iso-8859-1?Q?C=E9sar?= Espinosa)
  Re: cluster web server (Ratz)
  Re: fine tracing memory usage ? ([EMAIL PROTECTED])
  Re: fine tracing memory usage ? ("Eric GAUDET")
  Re: TCP implementation (Stefaan A Eeckels)
  Can somebody  tell me what is function free_pages_ok() in mm/page_alloc.c 
comprehensively? ("������")
  Re: TCP implementation (Kaz Kylheku)
  CDROM problem ([EMAIL PROTECTED])
  Re: MS caught breaking web sites (Gary Connors)

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

Date: Sun, 23 Apr 2000 16:07:41 -0400
From: Tim Shoppa <[EMAIL PROTECTED]>
Subject: Adding new disks without rebooting?

I'm using (at the moment) RedHat 6.1, and as far as I can
figure out, to add a new SCSI disk device I need to reboot the
system so that it properly configures the new disks and partitions
into the system.  If a disk device isn't connected and powered up
when the system is booted, it seems to be unavailable.

This makes my "hot-plug-in" hardware of dubious value, and I'm
convinced that there must be some way to add new disk devices
without having to reboot.  The RedHat documentation doesn't
help, though.  Where do I start?

Tim.

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

From: vinod tipparaju <[EMAIL PROTECTED]>
Subject: prot_ops struct
Date: Sun, 23 Apr 2000 16:25:52 -0400

Hello

i am using a i386 arch
I had a question about the prot_ops struct defined in the
include/linux/net.h
i believe all the function prototypes in that are protocol dependant...so
where exactly are all those functions defined?(the protocols that I am
concerned with are tcp and udp)I went thru tcp.c and udp.c, but wasnt
quite able to figure it out.
thank you
Vinod


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

From: John Jacques <[EMAIL PROTECTED]>
Subject: File questions
Date: Sun, 23 Apr 2000 21:07:58 GMT

Hello, I'm running Slackware 7.0 2.2.13 
Can anyone answer these questions? THANKS!

What is the max # of files per directory? I plan on having literally
millions of 1K files per directory if it is possible.

I read somewhere a while back that for every 47 files per directory the
read/writes for that directory double. Is this true?

If a file is read once is it kept in RAM until it gets updated or
flushed by the kernel? For example if I read 100 1K files will they be
kept in RAM, or are they read from the disk each time? I'm thinking the
files are read and kept in "buffers" when we use the "free" command??

Thanks!
John Jacques
[EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (M Sweger)
Crossposted-To: comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Two really easy (I'm sure) questions
Date: 23 Apr 2000 21:42:16 GMT
Reply-To: [EMAIL PROTECTED]

Sang Yong Lee ([EMAIL PROTECTED]) wrote:

: Tandem Guy wrote:

: > Hello.  I've recently installed Linux and am trying to do some C++
: > programming and have a couple of questions.
: >
: > First question:  I'm trying to compile the following code:
: >
: > BEGIN CODE
: >
: > #include <iostream.h>
: >
: > int
: > main( )
: > {
: >     cout << "Hello World\n";
: >     return 0;
: > }
: >
: > END CODE
: >
: > This code is in the file hello.cc and I'm issuing the following command:
: >
: > gcc hello.cc

: g++ hello.cc

: >
: >
: > The compiler spits back the following errors:
: >
: > /tmp/cc.JqnaTp.o: In function 'main':
: > /tmp/ccJqnaTp.o(.text+0x9): undefine reference to 'cout'
: > /tmp/ccJqnaTp.o(.text+0xe): undefined reference to
: > 'ostream::operator<<(char const *)'
: > collect2: Id returned 1 exit status
: >
: > What am I doing wrong.  I'm dying to see Hello World on my screen and I
: > can't make it happen :)
: >
: > Second question: How can I direct the compiler's output (the error
: > messages) to a file?  I've tried gcc hello.cc > testfile and testfile is
: > created but not written to.  So how can I do this?  Thanks in advance
: > for any help!

: You can redirect standard error output by "2>" like this:

: g++ hello.cc 2> testfile

: Sangyong.


Or do this.

g++ hello.cc 1>test.lst 2>test.err

--
        Mike,
        [EMAIL PROTECTED]


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

From: [EMAIL PROTECTED]
Crossposted-To: 
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
Date: 23 Apr 2000 22:02:51 -0000

In comp.os.linux.security Gary Connors <[EMAIL PROTECTED]> wrote:
> If its a "NT replacement" is not on the desktop.  In the real world, NT is
> not a desktop OS.

it appears on approx 4000 pc's in our company as a desktop OS actually.
-- 
Grobbebol's Home                 |  Don't give in to spammers.   -o)
http://www.xs4all.nl/~bengel     | Use your real e-mail address   /\
Linux 2.2.14 SMP 466MHz / 256 MB |        on Usenet.             _\_v  

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

From: [EMAIL PROTECTED]
Subject: Enjoy it more! 71503152
Date: Sun, 23 Apr 2000 16:37:59 -0800
Reply-To: [EMAIL PROTECTED]

1. Unplug your phones/cell, etc.
2. Light some candles.
3. Turn off the lights.
4. Have a little to drink, not a lot
5. Put on some music.

http://www.go2xmax.com/3355

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

From: Kaichuan He <[EMAIL PROTECTED]>
Subject: cluster web server
Date: Sun, 23 Apr 2000 19:03:55 -0500

Hi folks,

        We have recently developped a cluster web server project
on linux. It is used to connect one front-end linux machine to
multiple back-end linux web servers. So that incoming URL requests
are redistributed to backend on frontend by tcp connection handoff.
 But the whole cluster uses a single IP address, and the request
redistribution details are "transparent" to web clients. Different
request distribution strategy including "content aware/layor 7 
swithing" will be support.
        I 'm wondering whether similar project exists in the linux
envrironment and what kind of procedure we should go through if
we want to contribute it to the linux source base. (It's consist
of two piece software, front-end software is application level,
back-end software is kernel patching)

Thanks,


Kevin He

===========================
Computer Science Department, 
PURDUE UNIVERSITY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phone: (office) 765-49-47848
Email:[EMAIL PROTECTED]  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




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

From: "Sake" <[EMAIL PROTECTED]>
Subject: /dev/nvram
Date: Sun, 23 Apr 2000 21:44:32 -0400

Hi,

Has anyone played with /dev/nvram ?
What are the utilities avaliable for altering
the content of this CMOS RAM ?

e-mail reply is appreciated

[EMAIL PROTECTED]





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

From: Jianmang Li <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
Date: Mon, 24 Apr 2000 03:59:08 +0200

Gary Connors wrote:
> 
> in article [EMAIL PROTECTED], laugh at [EMAIL PROTECTED] wrote on
> 4/16/00 1:07 AM:
> 
> > Robert,
> 
> > And with Linux growing to 35% of all servers and 10% of desktops this year
> > alone
> > (half of those being NT replacements), there won't be much of an audience
> > for any future releases of windows when and if they do make it out.
> 
> If its a "NT replacement" is not on the desktop.  In the real world, NT is
> not a desktop OS.
I'm always puzzled when people calling Desktop and server. From software
point
of view, what is the different. MS had difficulties to let Windows9x
offering
network services so it call it Desktop. In Unix world, if you got the
right
hardware nobody stop you offering network services from your "Desktop" -
they
are the same. 
-- 
Jianmang Li
Stachanov
Phone: +31-72-5646664 +31-6-22977904
Fax:   +31-72-5627410

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

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: PCI soundcard driver
Date: Mon, 24 Apr 2000 02:08:42 GMT

In article <[EMAIL PROTECTED]>, "Hung P. Tran"
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Anyone knows of a linux PCI soundcard driver. I have a PCI based audio
> (ESS 1698S) in particular running under RedHat 6.1.
> 
> Thanks,

Not sure about 1698S.  If it's similar to the 1688 then your ok 
check www.linuxdoc.org and www.kernelnotes.org for details.


karl



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

Crossposted-To: 
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
From: Sean LeBlanc <[EMAIL PROTECTED]>
Date: Mon, 24 Apr 2000 02:25:44 GMT


Yes, but Unix world, you have the option to NOT run a GUI. Granted, Win9x can
do this, too, but I don't think Visual DOS, ahem, I mean, Win9x is up to the
task of a workstation, much less a robust server.

I think you have a valid point, but it's a matter of degrees. Servers should
be "tweaked" for serving, workstations "tweaked" for working as a station.

Both /could/ do the other's job, but it's a matter of using the right tool
for the job. Otherwise, I could argue that one programming language 
(say assembler) can fit all tasks for all people. 

>From a software point of view, BTW, there *are* differences...the various tasks
that are given priority comes to mind as an example. 

Jianmang Li <[EMAIL PROTECTED]> writes:

> Gary Connors wrote:
> > 
> > in article [EMAIL PROTECTED], laugh at [EMAIL PROTECTED] wrote on
> > 4/16/00 1:07 AM:
> > 
> > > Robert,
> > 
> > > And with Linux growing to 35% of all servers and 10% of desktops this year
> > > alone
> > > (half of those being NT replacements), there won't be much of an audience
> > > for any future releases of windows when and if they do make it out.
> > 
> > If its a "NT replacement" is not on the desktop.  In the real world, NT is
> > not a desktop OS.
> I'm always puzzled when people calling Desktop and server. From software
> point
> of view, what is the different. MS had difficulties to let Windows9x
> offering
> network services so it call it Desktop. In Unix world, if you got the
> right
> hardware nobody stop you offering network services from your "Desktop" -
> they
> are the same. 
> -- 
> Jianmang Li
> Stachanov
> Phone: +31-72-5646664 +31-6-22977904
> Fax:   +31-72-5627410

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

From: ���ظ� Chun-Mok Chung <[EMAIL PROTECTED]>
Subject: MUTEX in device driver read/write
Date: Mon, 24 Apr 2000 02:16:20 GMT

Hi.

I'm developing a device driver of some hardware for linux. Several processes
may be access the hardware at the same time. So, I want to support a
mutex(mutual exclusive) functionality at read and write function. And because
that hardware don't support interrupt, I willing to use polling mechanism.

I hope any related source, document, or advice.

Thanks in advance,
Chun-Mok Chung

--
���ظ� Chun-Mok Chung

LG Information and Communications, Ltd.
Seoul, Korea


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: David <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: SIGACTION
Date: Sun, 23 Apr 2000 11:36:59 +0200

Hi, I am triying to know segmentation fault direction in sigsegv.
I can do it diving into stack, but it is no portable, so I decided use
sa_sigaction in spite of sa_handler, so
 I make this program:

#include <stdio.h>
#include <signal.h>

void trat_segv ( int s , siginfo_t *si , void *extra ) // __attribute__
(( section( ".shared") ))
{
  printf( "----SEGV -------------------\n" ) ;
  printf( "SIGNAL_NUMBER: %d\n" , si -> si_signo ) ;
  printf( "Errno value: %d\n" , si -> si_errno ) ;
  printf( "Signal Code: %d\n" , si -> si_code ) ;
  printf( "PID_T: %d\n" , si -> si_pid  ) ;
  printf( "UID_T: %d\n" , si -> si_uid ) ;
  printf( "SI_STATUS: %d\n" , si -> si_status ) ; /* Exit value or
signal */
  printf( "SIGNAL VALUE: %d\n" , si -> si_value ) ;  /* Signal value */
  printf( "SIGNAL INT: %d\n" , si -> si_int ) ;    /* POSIX.1b signal */
  printf( "SI_PTR: %d\n" , si -> si_ptr ) ;    /* POSIX.1b signal */
  printf( "SI_ADDR: %d\n" , si -> si_addr ) ;   /* Maemory location
which caused fault */
  printf( "SI_BAND: %d\n" , si -> si_band ) ;   /* Band event */
  printf( "SI_FD: %d\n" , si -> si_fd );     /* File descriptor
*/                          =


  exit(0);
}

int main ( )
{
  stack_t segv_stack ;
  struct sigaction accion; =


  segv_stack.ss_sp    =3D (void *)malloc( SIGSTKSZ )  ;
  segv_stack.ss_size  =3D SIGSTKSZ   ;
  segv_stack.ss_flags =3D 0 ;

  printf("Direcci=F3n baja de pila: %p, Direcci=F3n alta de pila: %p\n",
        segv_stack.ss_sp, segv_stack.ss_sp+SIGSTKSZ);
  if ( sigaltstack ( &segv_stack , 0 ) < 0 )
    {
      perror( "SIGALTKSTACK: " ) ;
      printf( "ARGUMENTOS:\nSP: %p\nSIZE: %d\nFLAGS: %d\n" , =

              segv_stack.ss_sp , segv_stack.ss_size ,
segv_stack.ss_flags ) ;

      return ;
    }

  =

  accion.sa_sigaction =3D trat_segv ;
  sigemptyset(&accion.sa_mask);
  accion.sa_flags =3D SA_RESTART | SA_NOCLDSTOP | SA_ONSTACK | SA_SIGINFO=

;
  sigaction(SIGSEGV, &accion, NULL);

  {
    int *a =3D (int *)0x1 ;
    *a =3D 10 ;
  }
  return 0 ;
}


but the exit was:

Direcci=F3n baja de pila: 0x8049a40, Direcci=F3n alta de pila: 0x804ba40
----SEGV -------------------
SIGNAL_NUMBER: 11
Errno value: 0
Signal Code: 0
PID_T: 0
UID_T: 0
SI_STATUS: 11
SIGNAL VALUE: 11
SIGNAL INT: 11
SI_PTR: 11
SI_ADDR: 0
SI_BAND: 0
SI_FD: 0

LOOK , SI_ADDR IS 0 !!! and must be 0x1 !!!
Whats happening ???

thanks in advance,
DTM


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

From: [EMAIL PROTECTED] (Richard Steiner)
Crossposted-To: 
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
Reply-To: [EMAIL PROTECTED]
Date: Sun, 23 Apr 2000 23:33:48 -0500

Here in comp.os.linux.networking, Gary Connors <[EMAIL PROTECTED]>
spake unto us, saying:

>If its a "NT replacement" is not on the desktop.  In the real world,
>NT is not a desktop OS.

Windows NT 4 is used heavily in the corporate world as a desktop OS.

-- 
   -Rich Steiner  >>>--->  [EMAIL PROTECTED]  >>>--->  Bloomington, MN
      OS/2 + BeOS + Linux + Solaris + Win95 + WinNT4 + FreeBSD + DOS
       + VMWare + Fusion + vMac + Executor = PC Hobbyist Heaven! :-)
         Startling new evidence: Apes descended from Creationists!

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

Date: Mon, 24 Apr 2000 00:51:31 -0500
From: "Arthur H. Gold" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: SIGACTION

David wrote:
> =

> Hi, I am triying to know segmentation fault direction in sigsegv.
> I can do it diving into stack, but it is no portable, so I decided use
> sa_sigaction in spite of sa_handler, so
>  I make this program:
> =

> #include <stdio.h>
> #include <signal.h>
> =

> void trat_segv ( int s , siginfo_t *si , void *extra ) // __attribute__=

> (( section( ".shared") ))
> {
>   printf( "----SEGV -------------------\n" ) ;
>   printf( "SIGNAL_NUMBER: %d\n" , si -> si_signo ) ;
>   printf( "Errno value: %d\n" , si -> si_errno ) ;
>   printf( "Signal Code: %d\n" , si -> si_code ) ;
>   printf( "PID_T: %d\n" , si -> si_pid  ) ;
>   printf( "UID_T: %d\n" , si -> si_uid ) ;
>   printf( "SI_STATUS: %d\n" , si -> si_status ) ; /* Exit value or
> signal */
>   printf( "SIGNAL VALUE: %d\n" , si -> si_value ) ;  /* Signal value */=

>   printf( "SIGNAL INT: %d\n" , si -> si_int ) ;    /* POSIX.1b signal *=
/
>   printf( "SI_PTR: %d\n" , si -> si_ptr ) ;    /* POSIX.1b signal */
>   printf( "SI_ADDR: %d\n" , si -> si_addr ) ;   /* Maemory location
> which caused fault */
>   printf( "SI_BAND: %d\n" , si -> si_band ) ;   /* Band event */
>   printf( "SI_FD: %d\n" , si -> si_fd );     /* File descriptor
> */
> =

>   exit(0);
> }
> =

> int main ( )
> {
>   stack_t segv_stack ;
>   struct sigaction accion;
> =

>   segv_stack.ss_sp    =3D (void *)malloc( SIGSTKSZ )  ;
>   segv_stack.ss_size  =3D SIGSTKSZ   ;
>   segv_stack.ss_flags =3D 0 ;
> =

>   printf("Direcci=F3n baja de pila: %p, Direcci=F3n alta de pila: %p\n"=
,
>         segv_stack.ss_sp, segv_stack.ss_sp+SIGSTKSZ);
>   if ( sigaltstack ( &segv_stack , 0 ) < 0 )
>     {
>       perror( "SIGALTKSTACK: " ) ;
>       printf( "ARGUMENTOS:\nSP: %p\nSIZE: %d\nFLAGS: %d\n" ,
>               segv_stack.ss_sp , segv_stack.ss_size ,
> segv_stack.ss_flags ) ;
> =

>       return ;
>     }
> =

> =

>   accion.sa_sigaction =3D trat_segv ;
>   sigemptyset(&accion.sa_mask);
>   accion.sa_flags =3D SA_RESTART | SA_NOCLDSTOP | SA_ONSTACK | SA_SIGIN=
FO
> ;
>   sigaction(SIGSEGV, &accion, NULL);
> =

>   {
>     int *a =3D (int *)0x1 ;
>     *a =3D 10 ;
>   }
>   return 0 ;
> }
> =

> but the exit was:
> =

> Direcci=F3n baja de pila: 0x8049a40, Direcci=F3n alta de pila: 0x804ba4=
0
> ----SEGV -------------------
> SIGNAL_NUMBER: 11
> Errno value: 0
> Signal Code: 0
> PID_T: 0
> UID_T: 0
> SI_STATUS: 11
> SIGNAL VALUE: 11
> SIGNAL INT: 11
> SI_PTR: 11
> SI_ADDR: 0
> SI_BAND: 0
> SI_FD: 0
> =

> LOOK , SI_ADDR IS 0 !!! and must be 0x1 !!!
> Whats happening ???
> =

> thanks in advance,
> DTM
What versions are you running (kernel, libc)? That may help.
Also, ISTR this coming up recently. You might want to do a Deja search,
or a search on the libc lists at sourceware.cygnus.com.

HTH,
--ag

[BTW, I've been using a second parameter of type 'struct sigcontext' for
my handler, though it's not a well-documented interface]
-- =

Artie Gold, Austin, TX  (finger the cs.utexas.edu account for more info)
mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED]
--
A: Look for a lawyer who speaks Aramaic...about trademark infringement.

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

From: [EMAIL PROTECTED] (jwk)
Subject: Re: Adding new disks without rebooting?
Date: 24 Apr 2000 06:44:51 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 23 Apr 2000 16:07:41 -0400, Tim Shoppa
<[EMAIL PROTECTED]> wrote:
>I'm using (at the moment) RedHat 6.1, and as far as I can
>figure out, to add a new SCSI disk device I need to reboot the
>system so that it properly configures the new disks and partitions
>into the system.  If a disk device isn't connected and powered up
>when the system is booted, it seems to be unavailable.
>
>This makes my "hot-plug-in" hardware of dubious value, and I'm
>convinced that there must be some way to add new disk devices
>without having to reboot.  The RedHat documentation doesn't
>help, though.  Where do I start?
>
>Tim.

with this script, perhaps? I found it at http://ftpsearch.unit.no,
called 'rescan-scsi-bus.sh'. Call it an linux rescans all scsi-devices.


Good luck,
Jurriaan

Here goes:


#!/bin/bash
# Skript to rescan SCSI bus, using the 
# scsi add-single-device mechanism
# (w) 98/03/19 Kurt Garloff <[EMAIL PROTECTED]> (c) GNU GPL

# Return hosts. /proc/scsi/HOSTADAPTER/? must exist
findhosts ()
{
  hosts=
  for name in /proc/scsi/*/?; do
    name=${name#/proc/scsi/}
    if test ! $name = scsi
      then hosts="$hosts ${name#*/}"
      echo "Host adapter ${name#*/} (${name%/*}) found."
    fi
  done
}

# Test if SCSI device $host $channen $id $lun exists
# Outputs description from /proc/scsi/scsi, returns new
testexist ()
{
  grepstr="scsi$host Channel: 0$channel Id: 0*$id Lun: 0$lun"
  new=`cat /proc/scsi/scsi|grep -e"$grepstr"`
  if test ! -z "$new"
    then cat /proc/scsi/scsi|grep -e"$grepstr"
    cat /proc/scsi/scsi|grep -A2 -e"$grepstr"|tail -2|pr -o4 -l1
  fi
}

# Perform search (scan $host)
dosearch ()
{
  for channel in $channelsearch; do
    for id in $idsearch; do
      for lun in $lunsearch; do
        new=
        devnr="$host $channel $id $lun"
        echo "Scanning for device $devnr ..."
        printf "OLD: "
        testexist
        if test ! -z "$remove" -a ! -z "$new"
          then echo "scsi remove-single-device $devnr" >/proc/scsi/scsi
          echo "scsi add-single-device $devnr" >/proc/scsi/scsi
          printf "\r\x1b[A\x1b[A\x1b[AOLD: "
          testexist
          if test -z "$new"; then printf "\rDEL: \r\n\n\n\n"; let rmvd+=1; fi
        fi
        if test -z "$new"
          then printf "\rNEW: "
          echo "scsi add-single-device $devnr" >/proc/scsi/scsi
          testexist
          if test -z "$new"; then printf "\r\x1b[A"; else let found+=1; fi
        fi
      done
    done
  done
}
          
  
# main
if test @$1 = @--help -o @$1 = @-h
  then 
    echo "Usage: rescan-scsi-bus.sh [-l] [-w] [-c] [host [host ...]]"
    echo " -l activates scanning for LUNs 0 .. 7 [default: 0]"
    echo " -w enables scanning for device IDs 0 .. 15 [def.: 0 .. 7]"
    echo " -r enables removing of devices        [default: disabled]"
    echo " -c enables scanning of channels 0 1   [default: 0]"
    echo " If hosts are given, only these are scanned [default: all]"
    exit 0
fi

# defaults
lunsearch="0"
idsearch="0 1 2 3 4 5 6 7"
channelsearch="0"
remove=""

# Scan options
opt="$1"
while test ! -z "$opt" -a -z "${opt##-*}"; do
  opt=${opt#-}
  case "$opt" in
    l) lunsearch="0 1 2 3 4 5 6 7" ;;
    w) idsearch="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" ;;
    c) channelsearch="0 1" ;;
    r) remove=1 ;;
    *) echo "Unknown option -$opt !" ;;
  esac
  shift
  opt="$1"
done    

# Hosts given ?
if test @$1 = @; then findhosts; else hosts=$*; fi

declare -i found=0
declare -i rmvd=0
for host in $hosts; do dosearch; done
echo "$found new device(s) found.               "
echo "$rmvd device(s) removed.                 "
-- 
I do not want people to be agreeable, as it saves me the trouble of liking them.
Linux 2.2.15pre17 SMP 3 users load av: 0.26 0.39 0.38

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

From: =?iso-8859-1?Q?C=E9sar?= Espinosa <[EMAIL PROTECTED]>
Subject: TCP implementation
Date: Mon, 24 Apr 2000 11:04:42 +0200

    Hi all,

    I need to know which implementation of TCP (Reno, Tahoe, etc) is
used in Linu RedHat 6.1.

    Cheers,

                C�sar Espinosa


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

From: Ratz <[EMAIL PROTECTED]>
Subject: Re: cluster web server
Date: Mon, 24 Apr 2000 12:24:39 +0200

Kaichuan He wrote:
> 
> Hi folks,
> 
>         We have recently developped a cluster web server project
> on linux. It is used to connect one front-end linux machine to
> multiple back-end linux web servers. So that incoming URL requests
> are redistributed to backend on frontend by tcp connection handoff.
>  But the whole cluster uses a single IP address, and the request
> redistribution details are "transparent" to web clients. Different
> request distribution strategy including "content aware/layor 7
> swithing" will be support.
>         I 'm wondering whether similar project exists in the linux
> envrironment and what kind of procedure we should go through if
> we want to contribute it to the linux source base. (It's consist
> of two piece software, front-end software is application level,
> back-end software is kernel patching)
> 
> Thanks,
> 
> Kevin He
> 
> ---------------------------
> Computer Science Department,
> PURDUE UNIVERSITY
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Phone: (office) 765-49-47848
> Email:[EMAIL PROTECTED]
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

check out www.linux-vs.org!

Roberto Nibali, ratz

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

From: [EMAIL PROTECTED]
Subject: Re: fine tracing memory usage ?
Date: Mon, 24 Apr 2000 10:55:26 +0100

Eric GAUDET <[EMAIL PROTECTED]> wrote:
: hi all, I'm looking for some way to ask the kernel all sort of
: informations about memory usage :
: - list of all the current mallocs
: - which process owns one malloc
: - buffers informations
: - cache informations

: I need that in order to release "lost" mallocs and flush unused caches and
: buffer, or at least know which process is eating all available memory.

Write a wrapper around malloc to give the information
you need.

: Is there any way to limit the maximum memory usage of one process ?

Look at bash's ulimit command.

Rich.

-- 
[EMAIL PROTECTED] | Free email for life at: http://www.postmaster.co.uk/
BiblioTech Ltd, Unit 2 Piper Centre, 50 Carnwath Road, London, SW6 3EG.
+44 171 384 6917 | Click here to play XRacer: http://xracer.annexia.org/
--- Original message content Copyright � 2000 Richard Jones ---

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

From: "Eric GAUDET" <[EMAIL PROTECTED]>
Subject: Re: fine tracing memory usage ?
Date: Mon, 24 Apr 2000 22:00:41 +0900

"Mark Graybill" <[EMAIL PROTECTED]> wrote:
> 
> 
> You might also use the 'top' command.  You can use this program to kill
> tasks that are taxing the system.
> 
> Linux should free resources when the program terminates.  You probably
> wouldn't want to be able to free memory out from under a running
> program.
> 

Actually I suspect Linux is not freeing resources, as it should, when a
program terminates (perhaps not fast enough ?). What I want is to list all
these resources and make sure they all belong to a running (or sleeping or
whatever) process.

Top is of little help for that, I'm afraid.


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

From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Subject: Re: TCP implementation
Date: 24 Apr 2000 10:08:13 GMT

In article <[EMAIL PROTECTED]>,
        C�sar Espinosa <[EMAIL PROTECTED]> writes:
>     Hi all,
> 
>     I need to know which implementation of TCP (Reno, Tahoe, etc) is
> used in Linu RedHat 6.1.
The IP stack in Linux is an independent re-implementation of 
the standard.

Take care

-- 
Stefaan
-- 
--PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)--
Ninety-Ninety Rule of Project Schedules:
        The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.

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

From: "������" <[EMAIL PROTECTED]>
Subject: Can somebody  tell me what is function free_pages_ok() in mm/page_alloc.c 
comprehensively?
Date: Tue, 25 Apr 2000 00:47:03 +0900

Hello,
  I am studying  especially about memory menagement.
 Today I have tried to understand file page_alloc.c and Buddy system.
 But I can't figure out the meaning of the function "free_pages_ok()" and I
long to know that.
 Anyone have complete knowldege about linux Buddy system and that function?

Please mail me..
Hyunuk, Cha
[EMAIL PROTECTED]




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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: TCP implementation
Reply-To: [EMAIL PROTECTED]
Date: Mon, 24 Apr 2000 15:49:34 GMT

On Mon, 24 Apr 2000 11:04:42 +0200, C�sar Espinosa <[EMAIL PROTECTED]>
rote:
>    Hi all,
>
>    I need to know which implementation of TCP (Reno, Tahoe, etc) is
>used in Linu RedHat 6.1.

These are names of the TCP implementations in the BSD operating system.  The
Linux stack isn't derived from BSD, but written from scratch.

Also, the version of TCP depends on your kernel, not on Red Hat.  Red Hat only
packages the free software and puts it on a CD ROM. If you are running, say,
kernel 2.2.12, you have the same TCP stack as a Debian, SuSE or Slackware user
who is also running kernel 2.2.12.

-- 
#exclude <windows.h>

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

From: [EMAIL PROTECTED]
Subject: CDROM problem
Date: 24 Apr 2000 16:05:03 GMT

Hey all,

I've got a weird CDROM problem with my Gateway Solo 2300 laptop.

Running kernel 2.2.14, with the ATAPI CDROM driver compiled in.  When I run
workman or workbone, sometimes it works fine.  Other times, I get:

hdc: lost interrupt

over and over on the console.  Also shows up in dmesg.

Any ideas?  What other information would be helpful to debug this problem?  Are
there any known bugs or enhancements in the 2.3.xx kernel series that might
be worth looking at?

Thanks for any help.

--J

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

From: [EMAIL PROTECTED] (Gary Connors)
Crossposted-To: 
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip
Subject: Re: MS caught breaking web sites
Date: 24 Apr 2000 16:25:43 GMT

Sean LeBlanc <[EMAIL PROTECTED]> writes:
> Gary Connors <[EMAIL PROTECTED]> writes:
> 
> I'm not sure what you mean by "NT is not a desktop OS"...when I contracted
> at Corning-Asahi in State College, they had switched EVERYBODY to NT (in 1998).
> 
> "Everybody"
> includes software engineers on down to secretaries...before they switched
> everybody to NT, the group I worked with (IT) had been using NT since at
> least 1996 (that means NT 3.51). NT was also used for server end, too, with
> a healthy mix of VMS for legacy stuff. I think Corning counts as the real
> world.
> 
> NT may not be without problems, but it
> makes the perfect desktop, IMHO, given the right hardware. 95/98 only
> create maintenance and security nightmares in the corporate environment.
> 
> Arguments that NT is not really fit for high-end server stuff I could believe,
> but not fit to be a workstation? You've got to be kidding.

Corporate Workstation is NOT a desktop.
Second I NEVER once claimed NT is "not fit to be a workstation".  There is
a difference between workstation and desktop.  Workstations you get work
done on, desktops are for solitare, web browsing, and balancing your
checkbook.
Third, The reason corporations switched to NT from 9X is because MS's
support to corporations in the pre-Y2K no-glitch was the mantra, "switch
to NT, its the future".  Which I read as "Switch to NT, then we can charge
you for 9X and NT"


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


** 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.development.system) 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-Development-System Digest
******************************

Reply via email to