Re: Swap

2016-02-04 Thread Dave Horsfall
My rule of thumb on any system is to max out the memory, then allocate twice as much swap; hasn't let me down yet. -- Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."

Re: Swap

2016-02-04 Thread Jos Collin
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

Re: Debian 32-bit or 64-bit

2016-02-04 Thread Dan Hart
From my experience, unless you are doing major graphics/video or audio editing, 32bit should suffice...but as another thread indicated, evaluate all your apps and see what will be beneficial in the long run. Dan On 02/04/2016 01:49 PM, Boris wrote: Am 04.02.2016 um 20:32 schrieb Stefan Monnie

Re: Swap

2016-02-04 Thread Stefan Monnier
> option, swap is where the memory image is put, and it should be at least > as large as real memory. Actually no: when hibernating, the requirement is that the currently unused swap space (which should usually be pretty much the whole swap space), be large enough to contain a *compressed* form of

Re: Swap

2016-02-04 Thread Tom Dial
I do not know where the various rules-of-thumb came from, but suspect it mostly was from production multiuser/multiprocess systems where the emphasis was on throughput, I/O wait was common, and it throughput could be increased by overcommitting real memory and thereby reducing the processor idle ti

Re: Swap

2016-02-04 Thread Eric S Fraga
On Thursday, 4 Feb 2016 at 12:53, Felipe Duque wrote: > I guess it depends on your RAM usage. Currently I have an 8GB RAM > laptop but my usage never goes beyond 6GB (even doing scientific > computations) so I didn't bother allocating more then 1GB for my swap > partition. I concur. For my use c

Re: Debian 32-bit or 64-bit

2016-02-04 Thread Boris
Am 04.02.2016 um 20:32 schrieb Stefan Monnier: >> I have been using Debian in my Lenovo Thinkpad T61 from 2007 onwards. >> I have the latest upgrade Stretch/sid on it. >> This laptop has Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40 GHz and was having >> 2GB RAM. But this week I have upgraded the RAM to

Re: Debian 32-bit or 64-bit

2016-02-04 Thread Stefan Monnier
> I have been using Debian in my Lenovo Thinkpad T61 from 2007 onwards. > I have the latest upgrade Stretch/sid on it. > This laptop has Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40 GHz and was having > 2GB RAM. But this week I have upgraded the RAM to 4GB and replaced the HDD > with a new Intel SSD 120

Re: Swap

2016-02-04 Thread Stefan Monnier
> How much swap space does 4GB ram ideally requires? RAM doesn't require sap space. It's the lack of RAM which does. There are typically 2 cases where you "lack" RAM: - when you're using more memory than you have. This was historically the justification for the "2x" rule, but nowadays it's fai

Re: Swap

2016-02-04 Thread real bas
So, what you say is if you don't have, you can't hibernate? 2016-02-04 15:49 GMT-03:00 Bennett Piater : > > I am curious: why and how? IIUC, neither suspend nor hibernate use > > swap. Or have I misunderstood? > > > > Hibernate, in particular, saves everything to disk so RAM should not be > > a

Re: Swap

2016-02-04 Thread real bas
Swap is not designed to 'increase the RAM'? So that when we don't have RAM will use the swap? For me the swap is only used when we don't have RAM then swap will be used (the access is very slow because is located in disk). 2016-02-04 15:10 GMT-03:00 Eric S Fraga : > On Thursday, 4 Feb 2016 at 16

Re: Swap

2016-02-04 Thread Bennett Piater
> I am curious: why and how? IIUC, neither suspend nor hibernate use > swap. Or have I misunderstood? > > Hibernate, in particular, saves everything to disk so RAM should not be > an issue. I could see, maybe, how suspend may need some swap, mind you, > as it does use RAM but very little over a

Re: Swap

2016-02-04 Thread Bennett Piater
On 02/04/2016 07:52 PM, real bas wrote: > So, what you say is if you don't have, you can't hibernate? Exactly. Without swap, only suspend will work, but not hibernate. -- GPG fingerprint: 871F 1047 7DB3 DDED 5FC4 47B2 26C7 E577 EF96 7808 signature.asc Description: OpenPGP digital signature

Re: Swap

2016-02-04 Thread Eric S Fraga
On Thursday, 4 Feb 2016 at 16:12, f...@bluewin.ch wrote: > Hi, > swap space is crucial if you suspend or hibernate your system. I am curious: why and how? IIUC, neither suspend nor hibernate use swap. Or have I misunderstood? Hibernate, in particular, saves everything to disk so RAM should not

Re: Swap

2016-02-04 Thread Peter Funk
> 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 s

Re: Swap

2016-02-04 Thread Jos Collin
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, "f...@bluewin.ch" wrote: >

Re: Swap

2016-02-04 Thread Jos Collin
I have never monitored my RAM usage. I have been allocating RAM Size x 2 until now for all my systems. On 04-Feb-2016 9:32 PM, "Matus UHLAR - fantomas" wrote: > On 04.02.16 21:12, Jos Collin wrote: > >> How much swap space does 4GB ram ideally requires ? I have been using the >> rule "RAM size x

Re: Swap

2016-02-04 Thread f...@bluewin.ch
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

Re: Swap

2016-02-04 Thread Felipe Duque
I guess it depends on your RAM usage. Currently I have an 8GB RAM laptop but my usage never goes beyond 6GB (even doing scientific computations) so I didn't bother allocating more then 1GB for my swap partition. On 02/04/2016 01:49 PM, Leslie S Satenstein wrote: -

Re: Swap

2016-02-04 Thread Matus UHLAR - fantomas
On 04.02.16 21:12, Jos Collin wrote: 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 ? yes. I mean, is it okay if I use 1 GB of swap space (or

Re: Swap

2016-02-04 Thread babhs chalios
I think that 4GB of RAM is not that big nowadays so the "RAM size x 2" still holds. If you go over 8GB then it might be an overkill. It depends though what kind of stuff you 're gonna use the system for. If you want to run many applications that will require in general much more than "total RAM

Swap

2016-02-04 Thread Jos Collin
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 suspe

Re: Debian 32-bit or 64-bit

2016-02-04 Thread stefano gozzi
Even Android/ARM is going to use 64bit as a standard... so I would use everywhere (desktop/notebook/server/hypervisor/virtual guest) 64bit arch, except for ultra-small systems, as a small virtual server with 512Mb or Raspberry/embedded systems or very old system <1Gb of Ram. In many new systems, li

Re: Debian 32-bit or 64-bit

2016-02-04 Thread Aleksandar Atanasov
Hi Jos :) ​Yes, there are some performance benefits but it really depends on the scenario. Many Linux applications have lived a lot longer in a 32bit environment hence they are better tested than their 64bit counterparts. As for the minimum RAM required it's the same as the 32bit version (see http

Re: Debian 32-bit or 64-bit

2016-02-04 Thread Matus UHLAR - fantomas
On 04.02.16 18:04, Jos Collin wrote: Yes, I'm using PAE enabled kernel at the moment. So from your replies and from the stackexchange url, I understand that using 64 bit Debian is better and having better performance than 32-bit. Unless there is a good reason to use 32-bit OS. So I would like to

Re: Debian 32-bit or 64-bit

2016-02-04 Thread Jos Collin
Yes, I'm using PAE enabled kernel at the moment. So from your replies and from the stackexchange url, I understand that using 64 bit Debian is better and having better performance than 32-bit. Unless there is a good reason to use 32-bit OS. So I would like to go for a 64-bit Debian installation. Wh

Fwd: Debian 32-bit or 64-bit

2016-02-04 Thread Aleksandar Atanasov
​Hi, Jos :) Well, in order to produce 64bit binaries you would need a 64bit system (although maybe with QEMU you can omit that but it's not worth it). RAM-wise it's no problem to stay with 32bit because of the PAE (physical address extension) that is a feature of the Linux kernel that you either a

Re: Debian 32-bit or 64-bit

2016-02-04 Thread Jos Collin
Thanks for the quick response. I'm planning to use the system for programming purposes. Like C++, java, python, Qt, eclipse, Android studio, ssh, ftp etc. I will be using icedove, iceweasel all the time. Will 64-bit programs slows down the system, as it doubles the memory allocation than 32-bit p

Debian 32-bit or 64-bit

2016-02-04 Thread Jos Collin
Hello, I have been using Debian in my Lenovo Thinkpad T61 from 2007 onwards. I have the latest upgrade Stretch/sid on it. This laptop has Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40 GHz and was having 2GB RAM. But this week I have upgraded the RAM to 4GB and replaced the HDD with a new Intel SSD