Active Topics

 


Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#111
Originally Posted by peterleinchen View Post
I think you are wrong. Only amount of swap data in use, i.e. what conky (cat /proc/swaps) shows, will be moved. So bigger swap parts will help to minimze swap refresh actions, as time until fragmentation starts, will increase.
(did not test yet, but am pretty sure)
Yep. Bigger swaps are for having less PITA with frequent reswaps, as 2GB swap require 2x less often reswaps, that 1GB. Time for actutal process of reswapping doesn't change.

Which may make reswap painfully long, is many programs opened (which eats memory and increase amount of swap used), as more data need to be reswapped. Thus, it's recommended to reswap without any programs opened (or lightweight ones like terminal).

Extreme example of bad idea is reswapping with ED Chromium open, and 10+ tabs with real pages inside. It can take 10 minutes or more to reswap...

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#112
Sorry to bump this discussion again, but I am interested what people have settled on lately for swap management?

Personally I am swapping manually as required, mainly because I am not keen on ereswap (where it installs it'self, modifing rcs-late).
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#113
Originally Posted by sixwheeledbeast View Post
Sorry to bump this discussion again, but I am interested what people have settled on lately for swap management?

Personally I am swapping manually as required, mainly because I am not keen on ereswap (where it installs it'self, modifing rcs-late).
In addition to that question, i would like to ask if there's software that's available to (all at once in one program):
  • set default swap partition mounted on startup, but with failback default emmc swap (so when i let's say set default swap to sd and either unmount it or screw the card or my card reader brakes, the n900 would be still bootable without changing anything)
  • setting as many swap partitions as desired by user and automatic reswapping in user-specified time intervals in a manner that, when we have let's say 3 swap partitions, the "1" is used at first ("2" and "3" are inactive), then after reswap, the "2" is used ("1" and "3" are inactive) and then after next reswap only "3" is used, and then "1" again - so only one swap partition is used at once
  • possibility to manually reswap to any available swap partition on demand
Is there any program capable of all these three at once? I have ereswap right now, but I also find it to be not what I really want.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#114
Originally Posted by misiak View Post
In addition to that question, i would like to ask if there's software that's available to (all at once in one program)
Nope not that I know of.
If there is a demand I may take another look at making a swap GUI application.

I can understand switching swaps between position 1 and 2 (this is the way I would design my swap app,), but why 3.

This is the other reason I am not keen on ereswap you swapon and swapoff twice for no reason at each reswap.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#115
Originally Posted by sixwheeledbeast View Post
Nope not that I know of.
If there is a demand I may take another look at making a swap GUI application.

I can understand switching swaps between position 1 and 2 (this is the way I would design my swap app,), but why 3.

This is the other reason I am not keen on ereswap you swapon and swapoff twice for no reason at each reswap.
Thanks for your answer. It's not a demand, it was just a question If I find time, I might as well code it myself (but lack of time is a killer of my maemo projects)...

3 swap partitions was just an example, 2 would be sufficient (one of emmc and one on microsd), but it wouldn't take much effort to make the number unlimited, which may be usefull in some use cases (e.g. someone might have two swap partitions on sd card in order to not use emmc swap at all, but keeps the emmc partition for ability to take the back cover off without rebooting device).
 

The Following User Says Thank You to misiak For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#116
Originally Posted by misiak View Post
someone might have two swap partitions on sd card in order to not use emmc swap at all, but keeps the emmc partition for ability to take the back cover off without rebooting device
Yep. I understand the need for a micro sd eject feature, that puts swap back on 0p3. I would just treat this as a backup myself.

When I say "demand" I mean if it is needed.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.

Last edited by sixwheeledbeast; 2012-11-22 at 21:38.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#117
Originally Posted by sixwheeledbeast View Post
Yep. I understand the need for a micro sd eject feature, that puts swap back on 0p3. I would just treat this as a backup myself.

When I say "demand" I mean if it is needed.
Ok, I understand that. My personal preference for it would be a systemui applet (that's the one that opens after pressing power button, right?) or hildon-home-menu applet (that's the one that opens after clicking on the area with time in the top left, right?) which displays on the button current state of swap (which swap is used, when was last reswap) and, after clicking on it, opens dialog with options to:
1. add/remove swap partitions (no need to automatically detect i guess? that would be too much to ask for ) and ability to set the default one selected upon startup and fallback one used when default one is not available during startup
2. set the interval (timer or maybe time of day to do this - maybe alarmd can be used?) when reswaps should be done and between which partitions added in point 1 and in which order (or disabling automatic reswapping)
3. ability to manually reswap to any partition added in point 1

That would be perfect for me... system-ui applet or hildon-home-menu applet, because it would be easily accessible from whole system...

Edit: ok, forget th system-ui or hildon-home-menu ideas, maybe a control panel applet would be best, as it is a good place for setting this and maybe there's no need to put more garbage into other places (after all, setting reswap intervals or manual reswapping shouldn't be done that often, so no need for easy access). However, I would hate to have it as a normal application visible on application list.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#118
Originally Posted by misiak View Post
However, I would hate to have it as a normal application visible on application list.
Why? Seems counter intuitive to go to settings for a reswap, IMO
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 1,163 | Thanked: 1,873 times | Joined on Feb 2011 @ The Netherlands
#119
PowerMenu seems best place, IMO. In settings belong things you set once (or twice) and never llok at it any further. While settings of the particular swap-parameters could find a nice place in settings.

Would love to have a reswap button in my powerMenu. Right now I am using ereswap + alarmd to do reswap every night.
__________________
N900 loaded with:
CSSU-T (Thumb)
720p recording,
Pierogi, Lanterne, Cooktimer, Frogatto
N9 16GB loaded with:
Kernel-Plus
--
[TCPdump & libpcap | ngrep]
--
donate
 

The Following User Says Thank You to mr_pingu For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#120
Originally Posted by sixwheeledbeast View Post
Why? Seems counter intuitive to go to settings for a reswap, IMO
If someone wants to reswap manually, then yes, I agree - system-ui or hildon-home-menu might be better... But I was thinking about more automatic application, where manual reswapping would be just additional option which would need to be performed rather rarely (e.g. when taking the back cover off or when really in need of "clean and tidy" ram for ram-hungry applications like something from easy debian). But that's just my vision which i'm sharing with you.

Edit: Like mr_pingu wrote, set this once and forget it's there untill really needed

Edit 2: Or, maybe split it - in config panel, the setup of swap partitions and automatic reswapping schedule and in power menu just option to stop automatic reswapping and performing a manual reswap. What do you think?

Last edited by misiak; 2012-11-22 at 23:16.
 

The Following 2 Users Say Thank You to misiak For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 02:54.