1 |
On Monday 21 June 2010 23:04:14 Walter Dnes wrote: |
2 |
> I just got a brand new custom-built 8 gig machine. There's an |
3 |
> outfit in north Toronto that has MSI motherboards with PS/2 ports, |
4 |
> so I can keep my genuine IBM PS/2 clickety-clack-keyboard; |
5 |
> wooooohooooo. And the integrated Intel graphics chip has *BOTH VGA |
6 |
> AND DIGITAL OUTPUTS*! |
7 |
|
8 |
I have a box with those two outputs, but I found that the display card |
9 |
stopped working if I connected both outputs to the same, dual-input |
10 |
monitor. Just a cautionary note in case you have some need for that. |
11 |
|
12 |
> Anyhow, I have 8 gigs of ram on the sytem (will obviously be 64-bit |
13 |
> Gentoo) and I want to know how much swap I need. The general rule of |
14 |
> thumb is twice the ram. In this case, it would be 16 gigs. I think |
15 |
> that it may not need swap when up, unless I do some heavy duty stuff. |
16 |
|
17 |
With 8 GB RAM I recommend putting /tmp into a tmpfs, thus: |
18 |
|
19 |
tmpfs /tmp tmpfs nodev,nosuid,size=16G 0 0 |
20 |
|
21 |
This box has 4 GB RAM, which is never all occupied unless I'm compiling |
22 |
something big, such as Open Office. I created two swap partitions: a 2G |
23 |
and a 20G. The 2G partition has pri=10 and the 20G has pri=1. Now the |
24 |
small swap will be used in ordinary operation (though it never is, as |
25 |
far as I know). When I'm emerging Open Office, the big swap is added when |
26 |
it's needed, and /tmp is rolled out to swap when it grows too big for |
27 |
the physical memory. |
28 |
|
29 |
You may think the small swap is an unnecessary complication, and I dare |
30 |
say it is, but when you have lots of space, why not play in it? Anyway, |
31 |
it seemed like a good idea at the time. |
32 |
|
33 |
(Actually, I've made it more complex still, by duplicating the swap |
34 |
arrangement on the second disk so that the kernel has maximum flexibility |
35 |
and can use the most efficient device at any time.) |
36 |
|
37 |
> My main concern about a swap partition is how much I need for |
38 |
> hibernate-to-disk to work. Is there a rule about this, or should I |
39 |
> simply allocate 16 gigs out of my terabyte drive, and play it safe? |
40 |
|
41 |
Can't help you there; sorry. |
42 |
|
43 |
-- |
44 |
Rgds |
45 |
Peter. Linux Counter 5290, 1994-04-23. |