From: teffta@cs690-3.erie.ge.com (Andrew R. Tefft) Subject: Re: "Memory exhausted" problem in X solved Date: Mon, 20 Sep 1993 16:00:41 GMT
In article 748445167@ness, hancu@crim.ca (Marius Hancu) writes:
>Following his advice on a related query, I inserted the following
>lines in my /etc/rc file:
>
>mkswap -c /dev/hda2 16500
>swapon -a
>
>and
>
>/dev/hda2 none swap defauts in the /etc/fstab file.
>Would someone comment on why I had to insert these lines in those
>files? I would have expected to get by just by the commands at
>partitioning time. Don't they have a lasting effect?
You don't need to do the mkswap in your /etc/rc. just the swapon.
This is pretty standard Unix operating procedure, nothing magical
here.
>If they don't, this should be mentioned in the FAQs
FAQ's are not the best documentation (highly overrated in my opinion).
Get a Unix book and perhaps one on general Unix system administration.
At any rate, it *is* in black and white in the FAQ, question VIII.09.
It says to put the swapon command in your rc file for specific devices,
which of course would have worked for you, and hints that you can do it
via the fstab as well. For that method you would have had to dig a bit
but then again it's a pretty normal Unixy thing to do.
>By the way fellows, it seems that any fear that not enough
>pty's are generated, that I had, seems to be unfounded. In another
>post, someone else mentioned that (naturally!) linux automatically
>generates as many pty's as it needs. This as I tried in vain to use
>mknod to generate more pty's for my xterms and emacses.
You do need to use mknod to make them but you don't have to do
anything in the kernel to allow you to use any set amount.