Re: Removing kernel thread stack swapping

From: David Xu (davidxu_at_freebsd.org)
Date: 03/03/05

  • Next message: Scott Long: "Re: Removing kernel thread stack swapping"
    Date: Thu, 03 Mar 2005 22:37:19 +0800
    To: Ryan Sommers <ryans@gamersimpact.com>
    
    

    Ryan Sommers wrote:

    > David Schultz wrote:
    >
    >> Any objections to the idea of removing the feature of swapping out
    >> kernel stacks? Unlike disabling UAREA swapping, this has the
    >> small downside that it wastes 16K (give or take a power of 2) of
    >> wired memory per kernel thread that we would otherwise have
    >> swapped out. However, this disadvantage is probably negligible by
    >> today's standards, and there are several advantages:
    >
    >
    > I like the idea of fixing a lot of possible panics. However, I don't
    > know if we should nix it completely. Wasting this little memory won't
    > hurt anyone on a contemporary computer. However, our embedded systems
    > folks don't look at memory in the same light, and 16K here or there
    > can begin to really add up in a memory tight architecture. Of course
    > it could be argued that embedded systems probably don't have many
    > threads, many threads that can be swapped, or even swap space in the
    > first place.
    >
    > I guess it's a judgment call that one of our embedded systems
    > engineers could better answer.
    >
    Does your embedded system has swap device ? I have joined some embedded
    projects in the company, and there is no swap devices at all, no HDD
    etcs, just a CF card or flash memory card and swap is totally turned off.

    David Xu

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


  • Next message: Scott Long: "Re: Removing kernel thread stack swapping"

    Relevant Pages

    • Re: Removing kernel thread stack swapping
      ... Unlike disabling UAREA swapping, this has the ... Wasting this little memory won't ... could be argued that embedded systems probably don't have many threads, ...
      (freebsd-arch)
    • Re: Friday afternoon C trivia:
      ... memory under a VM. ... less true as embedded systems creep into bigger applications). ... physical memory it can have an accumulative effect. ... Many software compression of images routines require doing similar ...
      (comp.arch.embedded)
    • [PATCH 1/3] compressed RAM block device
      ... Creates RAM based block device which can be used as swap device. ... Pages swapped to this are compressed and stored in memory itself. ... In case backing swap device is provided, ... * Pages that compress to size greater than this are sent to ...
      (Linux-Kernel)
    • Re: [PATCH] A new entry for /proc
      ... > one with more features included. ... > which libraries can be reduced for embedded systems. ... our memory gone" for an embedded system. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Friday afternoon C trivia:
      ... memory under a VM. ... less true as embedded systems creep into bigger applications). ... However even gcc is able to optimize this away AIUI (gcc 4.4+, ... register and decrement it to zero - an idiom much used by old C ...
      (comp.arch.embedded)