[Prev][Next][Index][Thread]
Re: 486-100/16mb. linux is slow
In message <324E43B8.69A70316@vocaltec.com> you write:
|I have dx4/100 with 24MB, and I still need to use swap when running x.
|
|If you want to add swap, you don't have to repartition the disk. You can
|create a swap file (known as "filesystem paging") and use it instead.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
is it? First time I hear this term.
|
|Here's a list of commands to do it, taken from Oreilly's "Essential
|System Admin.":
|
|# dd if=/dev/zero of=/swap1 bs=1024 count=8192 (8MB swap file named
|swap1)
|# mkswap /swap1 8192
|# sync; sync
|# swapon /swap1
|
|This will create and activate a swap file of 8192K on the root
|filesystem called swap1.
|
|You can add more files if you need more space.
|
|I admit I didn't use this on Linux myself, but I did use it on solaris
|several times (the procedure is similar) and it works like a charm.
|
|I've heard there might be a slight performance penalty since this is a
|file and not a dedicated partition, but I haven't noticed it yet.
There might be more than a slight performance hit since the blocks are
copied through the cache and the disk is accessed through the
filesystem.
It is a good solution as a backup or for temporary situations, but I'd
recommand to be a good boy and go through the chore of backing up the
disk, re-partitioning it (basic rule of thumb - at least twice as much
as RAM, and with large disks even more, spreading partitions on all
available disks as space permits) and re-installing linux.
Cheers,
--Amos
--Amos Shapira | "Of course Australia was marked for
133 Shlomo Ben-Yosef st. | glory, for its people had been chosen
Jerusalem 93 805 | by the finest judges in England."
ISRAEL amos@dsi.co.il | -- Anonymous
Follow-Ups:
References: