Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

ashridah (ashridah@pobox.com)
12 May 2001 21:17:57 EST


On Sun, 13 May 2001 01:00:39 +0200 (CEST), BERECZ Szabolcs said:

> Hi!
>
> root@kama3:/home/szabi# cat /proc/mounts
> ...
> /dev/hdb2 /usr ext2 rw 0 0
> ...
> root@kama3:/home/szabi# swapon /dev/hdb2
[snip]

hmm. while the technical issues of this situation are fairly interesting,
can i make a suggestion? if you're running out of swap every now and
then, perhaps you need to use swapd (a userspace daemon, that adds
more swap from swapfiles as you need it, and recovers the space when
things become less pressing). that's much better than trying it by hand
when necessary. As you've noticed, we're all only human, and mistakes
can be made.

swapd: http://cvs.linux.hr/swapd/

as a side bonus, you get to keep that partition as a filesystem, and also
dedicate it to being the swapfile holder.

while this is a solution i'd never go in for (userspace is slightly more
fallible
than i like (which doesn't stop me from using devfsd) given the situation
swapd needs to act in), but it's better than doing it by hand, no?

Andrew 'ashridah' Pilley

> do you need any other information?
>
> Bye,
> Szabi
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/