Richard Melville wrote:
On 5 December 2014 at 20:27, Bruce Dubbs <[email protected]> wrote:

Richard Melville wrote:

Just a point of information: the swap script set to run at S20swap in
/etc/rc.d/rcS.d comes up too soon and displays an error message, but
S60swap works OK.

Obviously, working with USB flash media slows everything down a tad.
Maybe
the run order could be changed in the book; I can't see that it would
effect anybody else adversely.


This is the first time I've seen this.  I agree that putting swap at the
end of rcS wouldn't affect anything, but I'm not sure why that is
necessary.  After all / is already mounted so the disk should be available.

Do you have swap on a drive separate from the / partition?

I'll note that if your system actually uses swap, then the speed of the
process is really slowed.  Actual use of swap on a USB flash system would
be truly awful.  IMO, no swap at all would be better.

I'm open to changing when swap is initiated, but question if it's really
needed.


Yes, swap is on a separate USB flash partition, but it's not used (I have
8GB of RAM), and / is on an SSD.  The main reason for the swap partition is
for hibernate; I'm running desktop computers and servers from external
batteries.

I realise that this is an unusual setup, but I wouldn't claim it to be
unique.  The SSDs are formatted with btrfs, and btrfs doesn't support swap
so I had to place it somewhere else.  As I use USB flash drives for
booting, and /boot is only 100MB, it made sense to me to use some of the
otherwise wasted capacity for swap/hibernate.  As I say, swapping hasn't
been necessary thus far, and hibernate is a failsafe in case a battery
dies, so, again. probably rarely used (he says in hope).

I wonder if you could use a swap file for hibernation?

  -- Bruce


--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to