Samba 1.9.15p8 + linux 1.2.13 + ~50 users = CRASH!

Samba 1.9.15p8 + linux 1.2.13 + ~50 users = CRASH!

Post by Jim Carls » Fri, 18 Oct 1996 04:00:00



We have a PC lab set up with Win95 connecting to a PC samba server running
linux 1.2.13 and are having strange problems when we get about 50 or more
users logged in.

As the user load increases they have a hard time getting logged in and often
have to try 4 or 5 times before getting attached.  As things progress problems
start showing up when logged directly into the server.  Here's an example of
what happens immediately after logging in:
        Last login: Thu Oct 17 10:41:04 from westelk
        Linux 1.2.13.
        cat: can't open '/dev/zero'
        cat: can't open '/dev/zero'
        cat: can't load library 'libc.so.5'
        Segmentation fault
        cllserver:~# ps augx|grep smbd
        /bin/ps: File table overflow.
        /usr/bin/grep: File table overflow.
        cllserver:~# ls
        Segmentation fault
        cllserver:~#

Sometimes when telneting to the server I get "Protocol error" or "login: File
table overflow."

We started with 64Meg of ram and tried adding 16Meg more to see if that would
help, but linux does not see anythin above 64Meg.  Is this a limitation of
this version of linux?  My co-worker is starting to look into the new version
of linux, but it will likely be a while before we are ready to upgrade.

Initially I was running smbd as a daemon, but when the load got heavy it would
just quit.  I am now running it through inetd, and it behaves as I stated
above.

Any pointers as to just what is going on here?  I suspect it is a linux
problem, because I have a Solaris box running samba with ~70 users attached
with no problems.

Thanks for any help with this * problem.

Jim Carlson
PC Manager
College of Natural Resources
Colorado State University

 
 
 

Samba 1.9.15p8 + linux 1.2.13 + ~50 users = CRASH!

Post by Malcolm Beatt » Sat, 19 Oct 1996 04:00:00




>We have a PC lab set up with Win95 connecting to a PC samba server running
>linux 1.2.13 and are having strange problems when we get about 50 or more
>users logged in.

>As the user load increases they have a hard time getting logged in and often
>have to try 4 or 5 times before getting attached.  As things progress problems
>start showing up when logged directly into the server.  Here's an example of
>what happens immediately after logging in:
>    Last login: Thu Oct 17 10:41:04 from westelk
>    Linux 1.2.13.
>    cat: can't open '/dev/zero'
>    cat: can't open '/dev/zero'
>    cat: can't load library 'libc.so.5'
>    Segmentation fault
>    cllserver:~# ps augx|grep smbd
>    /bin/ps: File table overflow.
>    /usr/bin/grep: File table overflow.
>    cllserver:~# ls
>    Segmentation fault
>    cllserver:~#

>Sometimes when telneting to the server I get "Protocol error" or "login: File
>table overflow."

You're running out of kernel file structs and inodes. You can either
stick with kernel 1.2.13, tweak the relevant kernel includes and
recompile it or upgrade to 2.0.22 and just do
    echo 4096 > /proc/sys/kernel/file-max
    echo 12288 > /proc/sys/kernel/inode-max
to raise the limits on the fly after each reboot. The defaults are
1024/3072. Keep the 1:3 ratio (black magic) and just raise them if
you still have problems. It's like raising MAXUSERS on a BSD derived
system only finer grained and you can do it on the fly.

Quote:>We started with 64Meg of ram and tried adding 16Meg more to see if that would
>help, but linux does not see anythin above 64Meg.  Is this a limitation of
>this version of linux?  

Not really, it's a limitation of the darn PC architecture. There's
no BIOS call which is *completely* portable to report memory over 64Mb.
If you boot with LILO, just add "mem=80m" or whatever at boot time
or add
    append = "mem=80m"
to the relevant section of /etc/lilo.conf.

Quote:>                     My co-worker is starting to look into the new version
>of linux, but it will likely be a while before we are ready to upgrade.

Shame. 2.0.x is significantly better (including performance-wise)
than 1.2.13. I'd reconsider if at all possible in your particular
situation.

Quote:>Initially I was running smbd as a daemon, but when the load got heavy it would
>just quit.  I am now running it through inetd, and it behaves as I stated
>above.

Go back to running it as a standalone daemon once you've upped the
files/inodes. You lose performance by running it from inetd.

--Malcolm

--

Oxford University Computing Services
"Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee

 
 
 

1. Unusual Samba errors on Linux 1.3.59 and Samba 1.9.15p8

We are getting the following errors in the smb.log file, any idea how
to fix them or what they mean?

======================= cut here =====================================
Warning: You appear to have a trapdoor uid system
Warning: You appear to have a trapdoor gid system
couldn't open lock file /usr/local/samba/var/locks/STATUS..LCK
02/05/96 09:41:18 netadmin.pmihwy.com (156.46.170.100) connect to
service george
k as user georgek (uid=501,gid=100) (pid 5138)
Warning: You appear to have a trapdoor uid system
Warning: You appear to have a trapdoor gid system
couldn't open lock file /usr/local/samba/var/locks/STATUS..LCK
02/05/96 09:51:34 netadmin.pmihwy.com (156.46.170.100) connect to
service george
k as user georgek (uid=501,gid=100) (pid 5151)
======================= cut here =====================================

Thanks,

===[George R. Kasica]===        +1 414 241 6745
Network Manager                 +1 414 241 6753 FAX
Preferred Emergency Physicians  Mequon, WI USA

2. os9/68030 with SCSI drive/How to check drive errors?

3. URGENT -- Samba 1.9.15p8 Problems With LInux 1.3.59 and WIN95/NT

4. New URL

5. Samba 1.9.14 fails on Slackware 3.0 (Linux 1.2.13)

6. SESSION_PRIORITY: What exactly does it do?

7. Compiling Samba on Linux-FT 1.2.13: parse error compliling fault.c

8. SMTP mail and return receipts from lotus notes

9. Samba 1.9.15p8 Solaris win95 HELP!

10. ksmbfs,smbfs + linux 1.2.13

11. Differences between Samba Versions 1.9.15p8 and 1.9.18p3?

12. ERRSRV-22 Samba 1.9.15p8 OS/390