Re: >2GB Bugs still exist in FreeBSD 4.9 ?

From: Gerrit Nagelhout (gnagelhout_at_sandvine.com)
Date: 02/24/04

  • Next message: Jeff Fisher: "Re: Can't kill process"
    To: "'freebsd-stable@freebsd.org'" <freebsd-stable@freebsd.org>
    Date: Tue, 24 Feb 2004 15:31:05 -0500
    
    

    I think this problem happens when the kernel_map runs out of memory. The
    actual crash happens because in vfs_subr.c around line 704, if zalloc
    returns NULL, the bzero will cause that trap:

    simple_unlock(&vnode_free_list_slock);
    vp = (struct vnode *) zalloc(vnode_zone);
    bzero((char *) vp, sizeof *vp); ******************
    simple_lock_init(&vp->v_interlock);
    vp->v_dd = vp;
    cache_purge(vp);
    LIST_INIT(&vp->v_cache_src);
    TAILQ_INIT(&vp->v_cache_dst);
    numvnodes++;

    The size of the kernel memory region can be configured, and is typically
    around 1GB. The more RAM is present in the system, the more of this will be
    used up by various data structures that are tuned differently depending how
    much RAM is present. I think there are a few more places where running out
    of kernel memory will cause similar problems. Most of these places don't
    seem trivial to fix, and the only solution I have come up with (so far) is
    to tune the kernel differently to leave more memory available.

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


  • Next message: Jeff Fisher: "Re: Can't kill process"

    Relevant Pages

    • Re: Problems with users logging in
      ... This could very well be kernel memory ... Microsoft MVP - Terminal Server ... This server has 4gb ram and ...
      (microsoft.public.windows.terminal_services)
    • Re: [ckrm-tech] RFC: Memory Controller
      ... Yes, I agree if there is no swap space, then anonymous memory is pinned. ... I'd pay more attention to kernel memory accounting and less ... allocated directly from buddy allocator. ...
      (Linux-Kernel)
    • Re: Problems with users logging in
      ... This could very well be kernel memory ... Microsoft MVP - Terminal Server ... This server has 4gb ram and ...
      (microsoft.public.windows.terminal_services)
    • Re: [patch 3/9] Guest page hinting: volatile page cache.
      ... from the page cache while there are still page references floating ... To prevent multiple removals from the page cache the discarded ... There are struct pages for all memory, ... mem_mapis in kernel memory. ...
      (Linux-Kernel)
    • Re: [linux-pm] [RFC] userland swsusp
      ... >> attack you mention is a lot less feasible, as the attacker has no access ... >> to the memory being written out to the suspend partition, ... The problem is that, whatever the security model, if you have access to the ... Apart from this, IMO, if it's necessary to access the kernel memory directly ...
      (Linux-Kernel)