public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Suspend to swap on a diskless host
@ 2007-05-23 16:59 Dan Farrell
  2007-05-23 18:56 ` Alan McKinnon
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Dan Farrell @ 2007-05-23 16:59 UTC (permalink / raw
  To: Gentoo-users Mailing List

I know this is a long shot, and not many people run diskless hosts.  I
have one with kind of a loud fan that uses a lot of energy - it's a
pentium 4 in a slimline case and it runs pretty hot, so I can't adjust
the fan speed based on temperature, because it seems like turning the
fan off at 70+ degrees C is a bad idea.  

Instead, I'd like to be able to suspend to ram or swap so that the
fans can stop spinning and the cpu can cool down -- all in one fell
swoop!  -- but I've had troubles doing so.  While working on that, I
was thinking I might have better luck if the kernel was allowed to
restart itself.  I would like to set up swsuspend on the machine, but
I'm a little unclear as to how I would do so.  

I know swapon doesn't work on regular files, so to add my swap I need
to first use losetup to set up /dev/loop0 as my swap device.  Then
swapon /dev/loop0 works.  but how can I enable swap on loop0 before the
initscripts boot (right now I have it done in local.start).  Don't I
need to be able to mount the swap as swap right away to resume from
it?  Or will it be enought to specify the location?  If not, is there
some way to specify loop settings at boot time, on the kernel command
line?  

		Thanks for any help you might be able to provide,
						
						Dan Farrell

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-05-31 11:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 16:59 [gentoo-user] Suspend to swap on a diskless host Dan Farrell
2007-05-23 18:56 ` Alan McKinnon
2007-05-24 21:48   ` Dan Farrell
2007-05-23 20:05 ` Hans-Werner Hilse
2007-05-24 21:29   ` Dan Farrell
2007-05-27 14:21 ` Michal 'vorner' Vaner
2007-05-31  1:09   ` Dan Farrell
2007-05-31 11:28   ` Hans-Werner Hilse
2007-05-31 11:40     ` Michal 'vorner' Vaner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox