Thread View: news.software.nntp
8 messages
8 total messages
Started by David Swanger
Fri, 26 Mar 1999 00:00
INN 2.2, RAM, Solaris, Swapfiles, partitions
Author: David Swanger
Date: Fri, 26 Mar 1999 00:00
Date: Fri, 26 Mar 1999 00:00
65 lines
2688 bytes
2688 bytes
I have a Sun Ultra 1 running INN 2.2 (the os is a
heavily patched Solaris 2.5.1). This computer has
192mb of ram, has a 32mb swap partition and has an
additional 132mb swap file on the system disk. I
added this swap file because INN sometimes ran out
of memory/swap.
I ordered 256mb of additional ram, this should arrive
either today or early next week. I'm thinking about
just removing the 132mb swap file since the total
ram/swap space (440mb + 32mb swap) will be greater than
it is now (192mb + 164mb swap). However, I'm also
considering keeping the additional swap space just to
be safe.
If I keep the extra swap space, I'm thinking of moving
it to a different disk. The disks I have are:
---
First scsi controller
/ - 2g disk, contains solaris and inn executables and conf files
/var/log/news - 2g disk, contains inn log files
/var/news/spool/over.view - 8g striped partiton (2 4g disks)
for the overview database
/var/news/etc - 8g striped partition (2 4g disks) contains history*,
newsgroups and active files
---
Second scsi controller
/var/news/spool/articles - 36g striped partition (4 9g disks)
---
Using iostat, the least busy partition by far is
/var/log/news and it has plenty of free space, I thought
about putting the extra swap file there. Or should I
just remove the old swap file and not replace it unless
I see a problem? If I have a memory shortage in the future
then I could put it on the /var/log/news partition.
Another question, I have the history and active files on
the 8g partition that was built from 2 4g disks (using
Sun's Online DiskSuite). Would it be more efficient
to split this up to 2 separate disks, one for the
history* files and one for active/newsgroups? Or is
the load balanced better as it is?
TIA...
--
David Swanger
University Computing
Auburn University, AL
swangdb@mail.auburn.edu
Re: INN 2.2, RAM, Solaris, Swapfiles, partitions
Author: Ricardo Stella
Date: Fri, 26 Mar 1999 00:00
Date: Fri, 26 Mar 1999 00:00
17 lines
1309 bytes
1309 bytes
Sun recommends swap partitions to be 2x memory. In general, swap partitions are created at 4x memory. My .02... David Swanger wrote: > > I have a Sun Ultra 1 running INN 2.2 (the os is a > heavily patched Solaris 2.5.1). This computer has > 192mb of ram, has a 32mb swap partition and has an > additional 132mb swap file on the system disk. I > added this swap file because INN sometimes ran out > of memory/swap. >
Re: INN 2.2, RAM, Solaris, Swapfiles, partitions
Author: Frank Ederveen
Date: Fri, 26 Mar 1999 00:00
Date: Fri, 26 Mar 1999 00:00
38 lines
2058 bytes
2058 bytes
David Swanger wrote: > I ordered 256mb of additional ram, this should arrive > either today or early next week. I'm thinking about > just removing the 132mb swap file since the total > ram/swap space (440mb + 32mb swap) will be greater than > it is now (192mb + 164mb swap). However, I'm also > considering keeping the additional swap space just to > be safe. I would certainly keep it. Diskspace is so cheap and you don't want to run out. We have 1G of memory and not too many readers, about 300 or so. Still it uses quite some swap: zonnetje:[~] % swap -s total: 109184k bytes allocated + 30256k reserved = 139440k used, 1418208k available > Another question, I have the history and active files on > the 8g partition that was built from 2 4g disks (using > Sun's Online DiskSuite). Would it be more efficient > to split this up to 2 separate disks, one for the > history* files and one for active/newsgroups? Or is > the load balanced better as it is? The disk with active/newsgroups would hardly get used and the one with history would be beaten to death, imho. Keep them striped is what I would advice. But then again, I've been known to be wrong before ;) Frank Ederveen
Re: INN 2.2, RAM, Solaris, Swapfiles, partitions
Author: Russ Allbery
Date: Fri, 26 Mar 1999 00:00
Date: Fri, 26 Mar 1999 00:00
18 lines
1339 bytes
1339 bytes
Ricardo Stella <stellaNO-SPAM@poseidon.rider.edu> writes: > Sun recommends swap partitions to be 2x memory. In general, swap > partitions are created at 4x memory. However, keep in mind that Solaris is not SunOS. Solaris doesn't need to have any swap at all to function; swap doesn't have to be at least as large as memory. Swap is used when the machine runs out of memory, not all the time. So how much swap to use depends on how much memory you're using; if you have enough physical memory, you may not need any at all (although having it for emergencies is still nice, and it's cheap). 4x memory is probably excessive for most Solaris machines. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: INN 2.2, RAM, Solaris, Swapfiles, partitions
Author: Per Hedeland
Date: Sat, 27 Mar 1999 00:00
Date: Sat, 27 Mar 1999 00:00
43 lines
2656 bytes
2656 bytes
In article <yl90cjew76.fsf@windlord.stanford.edu> Russ Allbery <rra@stanford.edu> writes: >Ricardo Stella <stellaNO-SPAM@poseidon.rider.edu> writes: > >> Sun recommends swap partitions to be 2x memory. In general, swap >> partitions are created at 4x memory. > >However, keep in mind that Solaris is not SunOS. Solaris doesn't need to >have any swap at all to function; swap doesn't have to be at least as >large as memory. Yes, the advice above is clearly inappropriate for Solaris, and perhaps in particular for a news server. > Swap is used when the machine runs out of memory, not >all the time. Depends on what you mean by "run out of memory" though - physical memory is also used for things that are never pushed out to the swap area, in particular the file system cache. Remember that Solaris (like most modern Unices) uses the available memory interchangeably for processes and fs cache, which means that if there is high fs I/O activity (as on a news server:-), the fs cache will increase in size and cause inactive processes to be paged/swapped out, even though the machine hasn't really "run out" of memory. > So how much swap to use depends on how much memory you're >using; if you have enough physical memory, you may not need any at all >(although having it for emergencies is still nice, and it's cheap). Well, per above, it isn't just for emergencies - if you don't have any swap, those inactive processes will have to sit in memory, taking up space that could be better used by the fs cache. I.e. no matter how much memory you have (within reasonable limits), some amount of swap is always better than none. Just how much you'd want depends on a lot of things of course, for a news server running INN the number of inactive nnrpd's you typically have hanging around may be the most relevant factor (plus some 50M for all the crud that Solaris fires up at boot:-). --Per Hedeland per@erix.ericsson.se
Re: INN 2.2, RAM, Solaris, Swapfiles, partitions
Author: Ricardo Stella
Date: Mon, 29 Mar 1999 00:00
Date: Mon, 29 Mar 1999 00:00
14 lines
1225 bytes
1225 bytes
Russ Allbery wrote: > > However, keep in mind that Solaris is not SunOS. Umm... Solaris includes SunOS 5.x :) > 4x memory is probably excessive for most Solaris machines. Well, that was my Sun Certified Educator told me when I was getting certified, and a couple of other Admins (not related to the Educator).
Re: INN 2.2, RAM, Solaris, Swapfiles, partitions
Author: David Swanger
Date: Mon, 29 Mar 1999 00:00
Date: Mon, 29 Mar 1999 00:00
34 lines
1952 bytes
1952 bytes
Ricardo Stella (stellaNO-SPAM@poseidon.rider.edu) wrote: : Russ Allbery wrote: : > : > However, keep in mind that Solaris is not SunOS. : Umm... Solaris includes SunOS 5.x :) : > 4x memory is probably excessive for most Solaris machines. : Well, that was my Sun Certified Educator told me when I was getting : certified, and a couple of other Admins (not related to the Educator). In one of my Solaris 2.x Admin classes (around 2.3) I was told swap wasn't necessary above 64mb of ram (or maybe it was 32mb, heck I'm getting old) for Solaris unless your apps needed it. On some of our servers, we need a ton of swap, on others we've been able to do without much (though I normally try to have some, force of habit I guess, a throwback to my 4.x days). The 440mb of ram for this server seems like a lot to me (the chips still have not arrived!) and I wanted to at least move the extra swapfile off the root disk and maybe just do away with it. -- David Swanger University Computing Auburn University, AL swangdb@mail.auburn.edu
Re: INN 2.2, RAM, Solaris, Swapfiles, partitions
Author: Russ Allbery
Date: Tue, 30 Mar 1999 00:00
Date: Tue, 30 Mar 1999 00:00
38 lines
2545 bytes
2545 bytes
Ricardo Stella <stellaNO-SPAM@poseidon.rider.edu> writes: > Russ Allbery wrote: >> 4x memory is probably excessive for most Solaris machines. > Well, that was my Sun Certified Educator told me when I was getting > certified, and a couple of other Admins (not related to the Educator). I have a very low opinion of your Sun Certified Educator. The other admins have the excuse that this used to be true for a very long time due to the BSD mechanism for allocating swap and was true of SunOS. (And when I refer to SunOS, I mean SunOS 4; I say Solaris when referring to SunOS 5. That's the common way of designating the operating systems, at least among all the people I talk to regularly.) A Certified Educator should know better. As other people have pointed out, you do want *some* swap so that the system can more effectively use physical memory for the file system cache, but under any current version of Solaris, none is required and you generally don't need very much. Swap is only useful if you have running programs that go idle and can be swapped out for extended periods of time. This isn't the case on, say, a news server, where most of what's running is going to be running all the time and you don't want or expect it to swap out. In those cases, you want to add up the memory usage of all of your running processes (taking into account expire!), add a bit for overhead, and ideally install that much physical memory, with some amount of swap for emergencies and to let the system swap out those few processes that aren't active. My server is currently running with 512MB of physical memory and 256MB of swap because when I was building it originally I ended up using a 1GB system disk. It's not having any difficulties at all in that configuration. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads