the importance of providing swap space

2009-10-23 Thread Mikus Grinbergs
Helped a friend install os8 on his XO-1.  When we got done, he 
decided to enter the command 'yum install gparted'.  Yum failed with 
a not enough memory error.

I happened to have an SD card with me that had a swap partition 
defined on it.  The XO's SD slot was already in use, so I attached 
an USB card reader (with my card in it), and issued the appropriate 
'swapon /dev/...' command.

Now he could issue 'rpm -e gparted' and then 'yum install gparted' 
again.  This time, yum was successful.


The moral:  Things can be done if swap space is present that cannot 
be done if swap space is not present.


mikus

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: the importance of providing swap space

2009-10-23 Thread Tiago Marques
It seems you got lucky, the most common behavior is for it to crash.

I've been an advocate of SWAP for the XO since I got one, even
things like browsing become many times faster. It becomes even more
important on the XO OS because it seems to take up anywhere from
30-80MiB more than a similar distribution.
Some users of DebXO have reported that they don't need swap and I've
also noticed that memory requirements on my custom built xfce Gentoo
are much lower. I can get Firefox open with 3-5 tabs and stay below
70MiB whereas on the Fedora, even with XFCE, It usually goes up to
more than 120MiB. Open a PDF and you're done.

Best regards,
Tiago


On Fri, Oct 23, 2009 at 12:24 PM, Mikus Grinbergs mi...@bga.com wrote:
 Helped a friend install os8 on his XO-1.  When we got done, he
 decided to enter the command 'yum install gparted'.  Yum failed with
 a not enough memory error.

 I happened to have an SD card with me that had a swap partition
 defined on it.  The XO's SD slot was already in use, so I attached
 an USB card reader (with my card in it), and issued the appropriate
 'swapon /dev/...' command.

 Now he could issue 'rpm -e gparted' and then 'yum install gparted'
 again.  This time, yum was successful.


 The moral:  Things can be done if swap space is present that cannot
 be done if swap space is not present.


 mikus

 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: the importance of providing swap space

2009-10-23 Thread Tomeu Vizoso
On Fri, Oct 23, 2009 at 15:10, Tiago Marques tiago...@gmail.com wrote:
 It seems you got lucky, the most common behavior is for it to crash.

 I've been an advocate of SWAP for the XO since I got one, even
 things like browsing become many times faster. It becomes even more
 important on the XO OS because it seems to take up anywhere from
 30-80MiB more than a similar distribution.
 Some users of DebXO have reported that they don't need swap and I've
 also noticed that memory requirements on my custom built xfce Gentoo
 are much lower. I can get Firefox open with 3-5 tabs and stay below
 70MiB whereas on the Fedora, even with XFCE, It usually goes up to
 more than 120MiB. Open a PDF and you're done.

In case anybody doens't know yet, there's also
http://code.google.com/p/compcache/ which can work in systems without
a SD.

Regards,

Tomeu

 Best regards,
 Tiago


 On Fri, Oct 23, 2009 at 12:24 PM, Mikus Grinbergs mi...@bga.com wrote:
 Helped a friend install os8 on his XO-1.  When we got done, he
 decided to enter the command 'yum install gparted'.  Yum failed with
 a not enough memory error.

 I happened to have an SD card with me that had a swap partition
 defined on it.  The XO's SD slot was already in use, so I attached
 an USB card reader (with my card in it), and issued the appropriate
 'swapon /dev/...' command.

 Now he could issue 'rpm -e gparted' and then 'yum install gparted'
 again.  This time, yum was successful.


 The moral:  Things can be done if swap space is present that cannot
 be done if swap space is not present.


 mikus

 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: the importance of providing swap space

2009-10-23 Thread Martin Dengler
On Fri, Oct 23, 2009 at 03:28:08PM +0100, Tomeu Vizoso wrote:
 On Fri, Oct 23, 2009 at 15:10, Tiago Marques tiago...@gmail.com wrote:
  It seems you got lucky, the most common behavior is for it to crash.
 
  I've been an advocate of SWAP for the XO since I got one, even
  things like browsing become many times faster. It becomes even more
  important on the XO OS because it seems to take up anywhere from
  30-80MiB more than a similar distribution.
  Some users of DebXO have reported that they don't need swap and I've
  also noticed that memory requirements on my custom built xfce Gentoo
  are much lower. I can get Firefox open with 3-5 tabs and stay below
  70MiB whereas on the Fedora, even with XFCE, It usually goes up to
  more than 120MiB. Open a PDF and you're done.
 
 In case anybody doens't know yet, there's also
 http://code.google.com/p/compcache/ which can work in systems without
 a SD.

It works very well.  I definitely recommend it.

 Regards,
 
 Tomeu

Martin


pgpFZFYeZgxGn.pgp
Description: PGP signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: the importance of providing swap space

2009-10-23 Thread John Gilmore
 I happened to have an SD card with me that had a swap partition 
 defined on it.  The XO's SD slot was already in use, so I attached 
 an USB card reader (with my card in it), and issued the appropriate 
 'swapon /dev/...' command.

I'd suggest a small enhancement:  that when a removable medium with a
valid swap partition is plugged in, start swapping to it immediately.

That would cause a problem when trying to remove it, though, since
Linux doesn't provide a dismount all partitions in preparation for
ejecting operation in the GUI.  Perhaps this is one area where Sugar
could improve on the general Linux GUIs.

John
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel