1 |
Beso <givemesugarr@×××××.com> posted |
2 |
d257c3560710200721v2aa321fak9a7bbf3b0eb3b145@××××××××××.com, excerpted |
3 |
below, on Sat, 20 Oct 2007 16:21:39 +0200: |
4 |
|
5 |
>> With mainline kernel suspend-to-disk working |
6 |
> |
7 |
> it doesn't work well with xpress200m chipset and tends to break the |
8 |
> system stability. or at least the last time i tried it (2.6.22). it |
9 |
> works for me the suspend to ram, but that consumes the battery and on |
10 |
> shutdown it releases everything stored into ram. |
11 |
|
12 |
That's interesting... most docs I've read, including most of the docs in |
13 |
the kernel Documentation dir (mostly in Documentation/power) indicate |
14 |
that suspend-to-RAM is considerably more iffy than suspend-to-disk (aka |
15 |
hibernate). I've not tried suspend-to-RAM in ages, mainly because it |
16 |
doesn't shut all the fans and etc. off on my system, so it's hardly worth |
17 |
the hassle, particularly when support is iffy anyway, tho I did have it |
18 |
sort of working at one point... |
19 |
|
20 |
Hibernate, however, I'm very glad I have, and that it works... most of |
21 |
the time anyway. I will note that it breaks from time to time with -rc |
22 |
kernels and etc, and I've had problems when I was trying to use an image |
23 |
larger than the swap partition I was putting it on (I tried 4 gig at one |
24 |
point, but with headers and etc, the actual available size is slightly |
25 |
under that... that one was hard to diagnose because it takes awhile to |
26 |
get a 4 gig memory set, so it would work for several suspends, then |
27 |
break...) or when I (experimentally) forced it to suspend to RAID, which |
28 |
apparently isn't up when the resume attempt is made. |
29 |
|
30 |
I'd try with 2.6.23. They did do some major changes re hibernate |
31 |
with .23, which broke it until rc-7 or so. Maybe whatever they did fixed |
32 |
it for your system. |
33 |
|
34 |
Do note that in many cases, the video drivers don't properly restore into |
35 |
X after a hibernate. If you CTRL-ALT-Fn out of X to a text console, you |
36 |
may have better results. Additionally, if you are running a framebuffer |
37 |
console, consider trying text mode vgacon. Resuming from it may work |
38 |
better. |
39 |
|
40 |
Also, my (self-developed) hibernate script stops the ntp and ntp-client |
41 |
services and restarts them after resume. You probably don't have those |
42 |
on a laptop, but it's possible other services you have interfere. It's |
43 |
often recommended that you build your NIC drivers as modules, for |
44 |
instance, and shut down your network and remove the modules before |
45 |
hibernate. That tends to work better on some systems. You may wish to |
46 |
consider dropping to single-user mode (telinit 1) for initial testing. |
47 |
If that works reliably, you know it's possible. From there, you can |
48 |
create a new runlevel that's almost empty, and add services one or two at |
49 |
a time, until you find what's causing the problem. |
50 |
|
51 |
To reduce the chance of filesystem issues due to a bad shutdown when it |
52 |
doesn't resume correctly, always sync the disk at least three times in a |
53 |
row before you hibernate. You can either make this part of your |
54 |
hibernate script or, if you have the emergency SYSRQ keys configured into |
55 |
your kernel, use that (Alt-SysRq-S) to sync. That has saved me corrupted |
56 |
filesystem hassles a number of times, when I was testing -rcs or for some |
57 |
other reason ended up not being able to suspend properly. |
58 |
|
59 |
Finally, I don't know a lot about it, but a lot of people who can't get |
60 |
the mainline kernel hibernate to work swear by swsusp2. It's worth |
61 |
trying a kernel patched with that and the related userspace tools and |
62 |
config, if you haven't. |
63 |
|
64 |
Anyway, if you are truly shutting all the way down multiple times per day |
65 |
as it looks like, yes, I can certainly understand the irritation you'd |
66 |
have with portage, because it indeed takes a quite a bit of time to do |
67 |
its thing from a cold cache. |
68 |
|
69 |
> my notebook does only |
70 |
> support a 80gb (i'm planning an upgrade to 160 when it runs out of |
71 |
> waranty - on february) so i don't have neither the space needed for a |
72 |
> great swap neither a raid array on it. i'm also meditating to acquire a |
73 |
> new notebook the next year so i really wonder how much would it repay a |
74 |
> disk upgrade to the old one. |
75 |
|
76 |
Well, you haven't mentioned what size swap you /are/ running, or what |
77 |
size memory, for that matter. I originally referenced 4 gig since that's |
78 |
what each of my four swap partitions are, but anything larger than the |
79 |
default half gig hibernate image_size is going to be dramatically |
80 |
better. If you have a single 1-gig swap partition, checking the exact |
81 |
size in KB (as found in /proc/swaps) and setting that in /sys/power/ |
82 |
image_size will double it from the default, and that alone will be quite |
83 |
noticeable. A gig of swap is the normally recommended size for a half- |
84 |
gig of memory. If you happen to have a gig of memory and two gigs of |
85 |
swap, so much the better. (I honestly don't know if two gigs swap/ |
86 |
suspend-image with only a half gig memory is worth it or not.) Beyond |
87 |
that, I'd not worry about unless you really do have the resources to |
88 |
spare. |
89 |
|
90 |
|
91 |
> for what i've learned portage is not thread safe. thus, i've myself been |
92 |
> using 2 or three paludis threads at the same time after verifying that |
93 |
> the packages compile in one terminal don't relate to other ones. but |
94 |
> having something that actually does this without me needing to worry for |
95 |
> that would be better. |
96 |
|
97 |
It didn't used to be, but portage has been relatively parallel-build safe |
98 |
for quite some time now, altho there are very occasional bugs at least in |
99 |
~arch portage related to it, but occasional bugs are expected in ~arch, |
100 |
and even then, I've not read of any corruption for quite some time. At |
101 |
the worst, one has to manually stop one of the parallel merges to let the |
102 |
other proceed, if they get deadlocked. There's a single bug open on that |
103 |
ATM, but it's pretty rare to hit it. (I've never hit it myself and only |
104 |
noticed it browsing thru bugs out of curiosity.) |
105 |
|
106 |
> by the way, i've seen a thread of you speaking of a tyan |
107 |
> with opteron and i'd like to think what you think of opteron vs athlon. |
108 |
> i'm planning a desktop middle ranged home server with some db, mail, |
109 |
> rsync, mythtv, compilation server and occasionally running some games |
110 |
> and i'd like to know if it worths buying an opteron dualcore or it's |
111 |
> better an athlonx2. |
112 |
|
113 |
The differences aren't that great, really, if you are staying with a |
114 |
single socket, and I'd actually recommend going with the desktop rather |
115 |
than the server version, not so much for performance, but simply due to |
116 |
cost, unless you do need a dual (or more) socket system -- which with |
117 |
dual-cores and now quad-cores you probably don't. |
118 |
|
119 |
The main reason I went Opteron originally was to get dual socket support |
120 |
and the close cooperation of the Opteron Hyper-transport CPU interlink |
121 |
between them, back before the dual-cores came out. I had never run a |
122 |
dual CPU system before, but after having been very happy with the upgrade |
123 |
to my original Athlon 500 MHz way back when, I had been disappointed with |
124 |
my single-CPU upgrades since then. It just didn't seem they did all that |
125 |
much better than the half-gigahertz Athlon of several generations |
126 |
earlier. I realized that what I really wanted/needed for my workload was |
127 |
a real dual CPU system, and took the chance when the Opterons came out |
128 |
with their close cooperation over the Hyper-transport link, to upgrade to |
129 |
64-bit and dual CPU both at the same time. |
130 |
|
131 |
I wasn't disappointed. Both the AMD64 architecture and the dual Opterons |
132 |
in SMP way more than met my expectations. The press was and to a degree |
133 |
still is complaining about how folks don't /need/ dual-core or dual-CPU, |
134 |
and much of the time one sits there idle. That's true to some extent, |
135 |
yes, but OTOH, it /really/ makes a difference on responsiveness, |
136 |
especially when one CPU/core is going flat-out, perhaps because it got |
137 |
stuck in a runaway loop or whatever. I'd honestly have a very hard time |
138 |
going back to a single core single CPU system (and in fact, find myself |
139 |
frustrated sometimes, working on other systems... that seem so /slow/). |
140 |
|
141 |
However, dual socket mobos are relatively expensive, generally more than |
142 |
twice what a comparative single-socket mobo would cost, because they |
143 |
simply aren't mainstream enough. With the introduction of dual-cores, |
144 |
and now quad-cores, there's really little reason to go dual-socket at the |
145 |
mainboard. If one's not doing that, there's little reason to go Opteron. |
146 |
|
147 |
Add to that the fact that AFAIK, Opterons still require registered |
148 |
memory, while Athlon-X2s use standard memory at a MUCH lower cost, and |
149 |
the balance clearly tips toward the consumer/desktop chip. As a |
150 |
practical matter of cost, I'd tend to recommend a quad-core Barton or |
151 |
whatever they call the desktop targeted version now, over a quad or dual |
152 |
dual-core Opteron. I'd certainly go at least dual-core, but that's |
153 |
almost a given, these days. |
154 |
|
155 |
The other thing is memory. While registered memory is expensive |
156 |
overkill, one of the reasons I do NOT recommend an Opteron now, it can be |
157 |
worth getting a mobo and memory that support ECC. ECC is arguably worth |
158 |
the extra money, while registered memory is not. Of course, it's up to |
159 |
you, and many don't wish to spend that money, but I've had enough memory |
160 |
issues to appreciate solid memory and the stability it brings, and ECC |
161 |
does bring a bit of additional assurance in that regard. I'm not |
162 |
positive that the AthlonX2s and X4s or whatever they call them support |
163 |
ECC now, but if they do, I'd certainly consider that. If they don't, the |
164 |
balance tips back toward Opterons a bit, but I still don't think the |
165 |
registered memory is worth it, and believe Opterons require it, so I'd |
166 |
still say AthlonX2 or quad-core, and if ECC isn't available, just buy |
167 |
good memory and possibly run it slightly underclocked, if you want that |
168 |
extra stability. |
169 |
|
170 |
MHO, FWIW. |
171 |
|
172 |
-- |
173 |
Duncan - List replies preferred. No HTML msgs. |
174 |
"Every nonfree program has a lord, a master -- |
175 |
and if you use the program, he is your master." Richard Stallman |
176 |
|
177 |
-- |
178 |
gentoo-amd64@g.o mailing list |