Re: [maemo-developers] swapfile is a huge improvement!

2006-01-14 Thread Clemens Eisserer
Yep you're right - it runs as long smooth as long as your mmc is willing to play. But keep in mind that a swap-file means meany reads/writes to the same areas of flash which will for sure lead to the death of the mmc later or sooner. lg Clemens 2006/1/14, Brad Midgley <[EMAIL PROTECTED]>: > hey >

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-14 Thread Juha Yrjölä
On Sat, 2006-01-14 at 10:33 +, ext Clemens Eisserer wrote: > But keep in mind that a swap-file means meany reads/writes to the same > areas of flash which will for sure lead to the death of the mmc later > or sooner. Not really, since the flash controller on an MMC card is supposed to do wear

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-14 Thread Vladislav Grinchenko
Brad, with swap on, what happens to the system when you manually remove the mmc card? Or when you connect the USB cable to the unit? -Vlad On Sat, 2006-01-14 at 03:30, Brad Midgley wrote: > hey > > I decided to try the swap partition on my flash card and it made a HUGE > difference. Even with o

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-14 Thread Brad Midgley
Vladislav > with swap on, what happens to the system when you manually remove the > mmc card? Or when you connect the USB cable to the unit? I am pretty sure the nokia will just crash if I eject it when swap is active. We need to latch into the cardslot-opening and -closing events if we want to h

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-14 Thread Larry Battraw
  From what I remember when I've tried it, it generally crashes/reboots when you remove the card.  Can't remember if the same thing happens when you insert the USB cable.  I've found a way around the problems with it unmounting because of the USB cable: I created a second partition (it's a 1GB card

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-15 Thread Juha Yrjölä
On Sat, 2006-01-14 at 11:55 -0500, ext Vladislav Grinchenko wrote: > with swap on, what happens to the system when you manually remove the > mmc card? Or when you connect the USB cable to the unit? Removing the MMC card will definitely cause Bad Things to happen. It's also very tricky to protect

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-15 Thread Juha Yrjölä
On Sat, 2006-01-14 at 10:10 -0500, ext Dave Neuer wrote: > > Not really, since the flash controller on an MMC card is supposed to do > > wear-levelling. The FAT blocks, for example, would die pretty quickly > > otherwise, since they're written to very often. > > So, is there any benefit to JFFS2

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-15 Thread Armin M. Warda
On Saturday 14 January 2006 20:32, Larry Battraw wrote: > A GUI tool for toggling swap and mounts would sure be neat! Yes. I would like to add this feature to the CPU/Mem/Screenshot applet alias Load-Plugin, but unfortunately it seems that the source code is not available. I contacted the autho

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Dave Neuer
On 1/14/06, Juha Yrjölä <[EMAIL PROTECTED]> wrote: > On Sat, 2006-01-14 at 10:33 +, ext Clemens Eisserer wrote: > > > But keep in mind that a swap-file means meany reads/writes to the same > > areas of flash which will for sure lead to the death of the mmc later > > or sooner. > > Not really, s

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Israel Herraiz
Larry Battraw wrote: > hangup is having to manually remount it after a reboot, but it's worth > the trouble. A GUI tool for toggling swap and mounts would sure be > neat! Well, not properly a GUI tool but two menu entries for adding and removing swap, I think this could useful for you [1]. I tu

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Urho Konttori
Israel Herraiz wrote: Larry Battraw wrote: hangup is having to manually remount it after a reboot, but it's worth the trouble. A GUI tool for toggling swap and mounts would sure be neat! Well, not properly a GUI tool but two menu entries for adding and removing swap, I

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Juha Yrjölä
On Mon, 2006-01-16 at 13:55 +0200, ext Urho Konttori wrote: > This is just a suggestion, but could the following be safe enough for > consumer grade swap use on Nokia 770: > > If user has swapon. User opens MMC door. System pops up a large RED > GUI that states: You have swap active. Please turn

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Frantisek Dufka
Well it is solvable but hard. You could halt everything and display something like 'Poor human, give me my card back or I will reboot'. But this has to be done in low level (kernel thread?, direct framebuffer access?) because anything in userspace can segfault when swap is removed. I know simi

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Dave Neuer
On 1/16/06, Juha Yrjölä <[EMAIL PROTECTED]> wrote: > On Mon, 2006-01-16 at 13:55 +0200, ext Urho Konttori wrote: > > > This is just a suggestion, but could the following be safe enough for > > consumer grade swap use on Nokia 770: > > > > If user has swapon. User opens MMC door. System pops up a la

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Juha Yrjölä
On Mon, 2006-01-16 at 11:12 -0500, Dave Neuer wrote: > But, where a developed market for the device doesn't exist, one has to > seriously ask the question whether simplicity and reliability are a > substitute for flexibility and openess to experimentation, with the > risk that the complexities inh

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Kalle Vahlman
On 1/16/06, Dave Neuer <[EMAIL PROTECTED]> wrote: > I think Nokia has done a lot of things right w/ the 770, but I do have > to say that I think the idea that the 770 will be a huge consumer > success by being more "like a phone" than "like a computer" is wrong. Yeah, the huge consumer success the

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Brad Midgley
Urho > If user has swapon. User opens MMC door. System pops up a large RED GUI > that states: You have swap active. Please turn off swap before removing > MMC from the slot. GUI would have one large button (turn off swap). > After swapoff, GUI would turn green and say, it's safe to detach MMC now.

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Israel Herraiz
Dave Neuer wrote: > Does this include the "door is open/closed" information? Where is that > documented? In the latest firmware, there are scripts which are executed when those events occurr. Take a look at /usr/sbin/osso-{mmc-mount, mmc-umount, cover-open,cover-closed,usb-cable-attached,usb-cable

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Dave Neuer
On 1/16/06, Dave Neuer <[EMAIL PROTECTED]> wrote: > > E.g., I asked for pointers to info like the above before (even just a > description of the FIASCO components and info like size constraints), > and the only answer I got was someone I believe was not a Nokia > employee and which said "search the

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-16 Thread Andy
On Sat, 2006-01-14 at 01:30 -0700, Brad Midgley wrote: > hey > > I decided to try the swap partition on my flash card and it made a HUGE > difference. Even with only 25mb swap (30mb wouldn't work for me), now > memory is not nearly the concern it was. I can run multiple apps, look > at complex pdf

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-17 Thread Brad Midgley
Andy > What do you mean "30mb wouldn't work"? I put a 32meg swapFILE on the > 64meg mmc I received and it worked fine (/proc/meminfo and /proc/swaps > showed swap usage, and I could get numerous things running with out > problems. Now I'm trying to partition a 512meg MMC into two partitions, > a

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-17 Thread Kimmo Hämäläinen
On Mon, 2006-01-16 at 21:32, ext Israel Herraiz wrote: > Dave Neuer wrote: > > Does this include the "door is open/closed" information? Where is that > > documented? > > In the latest firmware, there are scripts which are executed when those > events occurr. Take a look at /usr/sbin/osso-{mmc-moun

RE: [maemo-developers] swapfile is a huge improvement!

2006-01-18 Thread Dirk Kuijsten
> -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] [mailto:maemo-developers- > [EMAIL PROTECTED] Namens Andy > Verzonden: dinsdag 17 januari 2006 5:14 > Aan: maemo-developers@maemo.org > Onderwerp: Re: [maemo-developers] swapfile is a huge improvement! > > On

Re: [maemo-developers] swapfile is a huge improvement!

2006-01-21 Thread Danny Milosavljevic
Hi, Am Sonntag, den 15.01.2006, 18:33 +0200 schrieb Juha Yrjölä: > On Sat, 2006-01-14 at 11:55 -0500, ext Vladislav Grinchenko wrote: > > > with swap on, what happens to the system when you manually remove the > > mmc card? Or when you connect the USB cable to the unit? > > Removing the MMC card