Re: FreeBSD 5.1-Release freezes

From: Robert Watson (rwatson_at_freebsd.org)
Date: 06/25/03

  • Next message: Robert Watson: "Re: FreeBSD 5.1-Release freezes"
    Date: Wed, 25 Jun 2003 16:44:56 -0400 (EDT)
    To: Socketd <db@traceroute.dk>
    
    

    On Wed, 25 Jun 2003, Socketd wrote:

    > I have just installed 5.1 Release on my laptop (6gb harddisk and 60 mb
    > ram). I only installed the base system + man pages and the port
    > collection. A little info: / 128M Swap 256M /var 128M /var/tmp 256M
    > (/tmp is symlinked to this) /home 256M /usr The rest
    >
    > I compiled a new kernel, with no support for SCSI, RAID, IPv6 and all
    > but my USB NIC (also removed a few USB things). I added: options
    > SC_DISABLE_REBOOT options MAC device pcm
    >
    > It compiled fine and I installed it. Now, if I run with this kernel the
    > system freezes! I can boot, login and run a few commands, but that's it.
    > There is nothing in the logs, but when I tried ssh'ing to the mashine I
    > got this before it froze: fork() - Not enough ressources available at
    > this time
    >
    > (or something like that).
    >
    > Is there a memory leak somewhere or am I doing something wrong? (I
    > compiled and installed the kernel with:
    > make buildkernel KERNCONF=SOCKETD
    > make installkernel KERNCONF=SOCKETD)
    >
    > btw please cc to me as I am not on the list.

    Sounds like a memory leak to me; it might also be a locking problem. Are
    you actually running with any MAC policies, or just with the framework?

    The code most likely to cause a memory leak in the MAC Framework is the
    label management code, since that's the only code that really does much in
    the way of memory allocaiton. Try compiling options MAC_DEBUG into your
    kernel, which causes the MAC Framework to track the number of labels it
    has allocated/free'd in a series of variables:

    static unsigned int nmacmbufs, nmaccreds, nmacifnets, nmacbpfdescs,
        nmacsockets, nmacmounts, nmactemp, nmacvnodes, nmacdevfsdirents,
        nmacipqs, nmacpipes, nmacprocs;

    You can inspect them using a series of sysctls in the security.mac.debug
    tree; I'd be interested to see how those values change as you approach the
    hang. If you have DDB compiled into the kernel (which you probably will
    want for debugging this problem), I'd be interested in seeing if you can
    break into DDB using a console break or serial console break. If so,
    print out the values of those variables and see if any are through the
    roof. Also, you might do a ps in DDB and see if processes are blocked on
    anything in particular.

    The most likely locking problem is a vnode deadlock; if you can get into
    DDB, try "show lockedvnods" to see whether any locks are held, etc. If
    you don't have a serial console set up, you might want to set one up
    because it will make copying and pasting all this stuff into e-mail a lot
    easier.

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Network Associates Laboratories

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Robert Watson: "Re: FreeBSD 5.1-Release freezes"

    Relevant Pages

    • Getting no sound from ALSA under 2.6.7
      ... I finally decided it was time to upgrade to the 2.6 kernel. ... Has anybody got ALSA working with the alsa-base and alsa-utils currently ... First I tried compiling most stuff into the kernel, ... hear a lot of noise on the speakers. ...
      (Debian-User)
    • 6.1 kernel unable to find /dev ?
      ... the previously-good kernel would no longer ... | exec /sbin/oinit: error 20 ... | Automatic reboot in 15 seconds - press a key on the console to abort ... Should I perhaps to a make installkernel installworld ...
      (freebsd-stable)
    • Re: kernel prbs w/ext USB equip
      ... I guess I'll have to roll my own kernel, ... I don't do any compiling on Ubuntu so I don't know the package ... turn yet one more medium into a coaster. ... alan at linuxholdings dot co dot za ...
      (Ubuntu)
    • Re: [FreeBSD 5.3 STABLE/RC2] SMP crashes
      ... While compiling ATLAS library and working with some other applications, ... With SMP disabled, the box was now stable for over 7 days, also under heavy load. ... > I was in good luck taking the panic kernel report. ... > resetting SCSI bus! ...
      (comp.unix.bsd.freebsd.misc)
    • Re: nvidia driver works w/ new kernel and inittab 3, but not 5
      ... > compiling of the driver, ... The sentence "a *reboot* ... compilation it is loaded running kernel .2179 while after a reboot the ...
      (Fedora)