I have 120GB HDD with 3.8GB swap at the moment. I have monitored the
swap usage for sometime, running frequently used applications and
then hibernate. It uses around 175MB even after hibernation. My new
SSD is 120GB and I'm having 4GB RAM now. So as per the discussion
with you, I'm planning to have a swap space of 5 - 6 GB (considering
the worst case). I have the following questions:
1. Will the use of swap file instead of a swap partition affect
performance ? I feel that if it was a swap file, I can change the
size of it anytime I want and it is easier.
2. Allocating swap in an SSD is a bad idea ? Some people says it
affects the life of the SSD. Please see the following urls.
http://askubuntu.com/questions/652337/why-no-swap-partitions-on-ssd-drives
http://www.makeuseof.com/tag/optimize-linux-ssds/
Please suggest.
Thanks.
On 02/05/2016 11:27 AM, Leslie S
Satenstein wrote:
What percentage of
your hard disk size is that if the swap partition? 8gigs of a
300gig drive? or 8 gigs of a 1 terrabyte drive? Playing with
swap sizes will not make your system faster. The oonsideration
for a swap file regarding performance is a) place it next to /
partition, and make sure it is contigious on the disk. This
is hard to do if it is allocated after system updates.
A dedicated swap partition guarantees that the space allocated
is contigious.
Is it time to move to
more important topics.
Regards
Leslie
Mr. Leslie
Satenstein
Montréal
Québec, Canada
I think that's a good idea. I will
create a swap file instead of a swap partition,
so that I can monitor and change it easily at a
later point of time. In that case, I will
partition my SSD as a single 120GB ext4, which
is having a 5gb swap file.
On
04-Feb-2016 9:50 PM, " f0g@bluewin.ch"
< f0g@bluewin.ch>
wrote:
Hi,
swap space is crucial if you suspend or
hibernate your system. If you want to be
able to do that, your swap should be at
least the same size of your RAM. That said,
the old rule "RAM size x 2" had sense some
time ago, with much smaller sizes than
nowadays. Nowaday it's not really needed. In
your case, if you want to be able to suspend
and hibernate you need at least 4GB, but 8GB
wouldn't make much sense. I'd go with 5 GB,
or 6 if you work with software that requires
an awful lot of RAM.
For more infos, see also https://wiki.debian.org/Swap
FG
----
Messaggio originale ----
Da : joscollin@gmail.com
Data : 04/02/2016 - 16:42 (CET)
A : debian-laptop@lists.debian.org
Oggetto : Swap
Hello,
How much swap space does
4GB ram ideally requires ? I have been
using the rule "RAM size x 2" for
calculating the size of swap. But as
the RAM sizes are bigger nowadays, is
this a wrong calculation ? I mean, is
it okay if I use 1 GB of swap space
(or lesser) for a 4gb RAM ?
(I use to suspend my
system everyday by pressing
alt+shutdown menu in gnome 3)
Please suggest.
Thanks,
Jos Collin
|