swap partition seems faster than a swap file (Re: [SHR-Unstable] swapon: swapfile has holes)

2009-09-06 Thread Timo Juhani Lindfors
Matthias Huber matthias.hu...@wollishausen.de writes: afaik, it is much faster than file. On a computer with 256M ram and compact flash as storage I ran #include stdio.h #include stdlib.h #include string.h #include assert.h #define BUFSIZE (400*1024*1024) int main(int argc, char *argv[]) {

Re: [SHR-Unstable] swapon: swapfile has holes

2009-09-06 Thread Greg Bonett
On Sat, 05 Sep 2009 10:57:32 +0200 Matthias Huber matthias.hu...@wollishausen.de wrote: Greg Bonett schrieb: Hi there, I just installed SHR unstable and I'm impressed at how usable and responsive it is. However, while I was performing a opkg operation I ran out of memory so I tried to

Re: [SHR-Unstable] swapon: swapfile has holes

2009-09-05 Thread Matthias Huber
Greg Bonett schrieb: Hi there, I just installed SHR unstable and I'm impressed at how usable and responsive it is. However, while I was performing a opkg operation I ran out of memory so I tried to add a swap file. When following the instructions at:

Re: [SHR-Unstable] swapon: swapfile has holes

2009-09-05 Thread Laszlo KREKACS
On Sat, Sep 5, 2009 at 10:57 AM, Matthias Hubermatthias.hu...@wollishausen.de wrote: *** but if you are formatting the card, you can make a real swap _partition_ also. I prefer the file over partition, because you can make bigger or shrink whenever you want. And giving a separate partition is

Re: [SHR-Unstable] swapon: swapfile has holes

2009-09-05 Thread Matthias Huber
Timo Juhani Lindfors schrieb: Matthias Huber matthias.hu...@wollishausen.de writes: *** but if you are formatting the card, you can make a real swap _partition_ also. What are the advantages of a swap partition? The only one I can think of is that it can be used for software

Re: [SHR-Unstable] swapon: swapfile has holes

2009-09-05 Thread Laszlo KREKACS
On Sat, Sep 5, 2009 at 11:45 AM, Matthias Hubermatthias.hu...@wollishausen.de wrote: afaik, it is much faster than file. Benchmark it!;) I think glamo is enough bottleneck to make all the two the same slowiness... But just guessing. Laszlo ___

Re: [SHR-Unstable] swapon: swapfile has holes

2009-09-05 Thread David Garabana Barro
O Sábado, 5 de Setembro de 2009, Timo Juhani Lindfors escribiu: Matthias Huber matthias.hu...@wollishausen.de writes: *** but if you are formatting the card, you can make a real swap _partition_ also. What are the advantages of a swap partition? The only one I can think of is that it can

Re: [SHR-Unstable] swapon: swapfile has holes

2009-09-05 Thread David Garabana Barro
O Sábado, 5 de Setembro de 2009, Laszlo KREKACS escribiu: I prefer the file over partition, because you can make bigger or shrink whenever you want. And giving a separate partition is just a luxury, when you can only create four (above that serious tweaking is necessary). Four??? You can

Re: [SHR-Unstable] swapon: swapfile has holes

2009-09-05 Thread William Kenworthy
On Sat, 2009-09-05 at 11:45 +0200, Matthias Huber wrote: Timo Juhani Lindfors schrieb: Matthias Huber matthias.hu...@wollishausen.de writes: *** but if you are formatting the card, you can make a real swap _partition_ also. What are the advantages of a swap partition?

[SHR-Unstable] swapon: swapfile has holes

2009-09-04 Thread Greg Bonett
Hi there, I just installed SHR unstable and I'm impressed at how usable and responsive it is. However, while I was performing a opkg operation I ran out of memory so I tried to add a swap file. When following the instructions at: http://wiki.openmoko.org/wiki/SHR_User_Manual#SwapSpace I get the