Date: Tue, 1 Nov 2005 11:00:18 -0500 (EST) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: mailing-lists@msdi.ca (Ian Lord) Cc: freebsd-questions@freebsd.org Subject: Re: Swap space Message-ID: <200511011600.jA1G0I3T022144@clunix.cl.msu.edu> In-Reply-To: <6.2.3.4.2.20051101094812.030e2d20@pop.msdi.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Hi, > > I just bought 4 servers with 4 gigs of ram, the documentation > proposes to use 2 to 3 times the amount of ram for swap... I don't > think 12 gigs of swap would be useful lol, but do I really need to > put 4 gigs of ram. (It might be useful for kernel dump but...) > > What do you guys do with swap space in this scenario ? Swap space gets used for at least three things, swapping, paging and kernel crash dump space. If you are not concerned about dump space, then the rest of the decision depends a lot on the size and number of processes you expect to be running at any given time. Generally, for smaller memory sizes, swap space, via paging gives you a larger virtual space to run in. But, it looks like you may by trying to make it so everything gets to stay in memory and never have any of it paged out, much less swapped out. For our systems that have plenty of memory, I tend to use about 1 1/2 times memory for the size of swap - plenty of memory meaning as much as it can address or at least more than enough to cover all simultaneous processes. Remember that a lot of utilities and daemons fork off new processes for each incident they encounter rather than queueing stuff for the main process to handle. They sort of use it for poor mans queueing. ////jerry > > Thanks > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511011600.jA1G0I3T022144>