PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Apache Development (http://forum.ppcgeeks.com/forumdisplay.php?f=53)
-   -   ?? PagePool ?? (http://forum.ppcgeeks.com/showthread.php?t=15394)

Fresh2Death 01-05-2008 08:06 PM

?? PagePool ??
 
i want to further my understanding of what exactly it is that the page pool does when cooking your own rom. how high, how low, those sort of things. ive been hunting around and cant seem to pull anything explaining exactly what it does. can anyone help break this down for me.

gguruusa 01-05-2008 09:51 PM

7 is the default for the current kitchen.

Pagepool is a cache for executing programs (the ones that are actually running). Think of it as additional memory for your running programs.

The larger pagepool is, the more crap you can have actively running. The smaller pagepool is, the more storage memory you have (storage is the area where programs are installed).

The general idea is to make it as small as you can without having any problems (slowness or crashing), because too big is a waste of valuable storage memory. Unfortunately, that magic sweet spot is dependent on how you use your PPC. If you have tons of storage space, feel free to use some of it as pagepool.

s10onn2o 01-05-2008 10:41 PM

holy crap thank you for explaining it in english i have seen some art. on this and i had no idea what in the world they were talking about.

Fresh2Death 01-06-2008 05:33 PM

Quote:

Originally Posted by gguruusa (Post 155515)
7 is the default for the current kitchen.

Pagepool is a cache for executing programs (the ones that are actually running). Think of it as additional memory for your running programs.

The larger pagepool is, the more crap you can have actively running. The smaller pagepool is, the more storage memory you have (storage is the area where programs are installed).

The general idea is to make it as small as you can without having any problems (slowness or crashing), because too big is a waste of valuable storage memory. Unfortunately, that magic sweet spot is dependent on how you use your PPC. If you have tons of storage space, feel free to use some of it as pagepool.

Quote:

Originally Posted by s10onn2o (Post 155540)
holy crap thank you for explaining it in english i have seen some art. on this and i had no idea what in the world they were talking about.

LOL hell ya! i agree with u on that. i set my page pool to 4 and its running smoothly and i have room to install a bunch of stuff without having to rely on my storage card. thx the the explanation. it really helped out alot man. very appreciative. kudos!

tjarnold 01-09-2008 03:16 AM

Maybe I'm just missing something, but I wanted to know how to chage the pagepool in the AKU 3.5 kitchen from helmi_c. Can anyone tell me how to do that?

gguruusa 01-09-2008 04:30 AM

If you're using the old BuildOS (AKU 3.5 1.04 kitchen and earlier), you have to use a hex editor to change the page pool in the ROM.

tjarnold 01-09-2008 11:02 AM

So I need to edit the nk.fat file then right?

Where do I make this edit?

Perasite 02-26-2008 01:44 PM

Re: ?? PagePool ??
 
I just wanted to bump this great explanation back to the top. I keep finding myself running low on memory and since almost everything I use is built into my ROM, I can afford to lose some storage space. Just so I'm understanding correctly, if I increase my pagepool when creating my ROM, that basically moves space from my storage memory to my program memory (RAM), right? And is it possible to change the page pool without re-flashing a ROM? My phone is SO PERFECT right now, but I could definitely use more memory.

Success100 02-26-2008 01:47 PM

Re: ?? PagePool ??
 
id like to chime in on this as well..are you suggestin that adjusting the page pool is allocating storage memory to program memory?? that doesnt seem right, if we could do that, our RAM worries would be non-existent..and thats definately NOT how it currently is..

Fresh2Death 02-26-2008 01:53 PM

Re: ?? PagePool ??
 
oh naw... it definitely worked for me lol but i lost space to install programs in the process tho. i think the lower i made it, the more ram i had to run my programs so that my ppc would run a whole lot more stable. i might have to double check tho.

gguruusa 02-26-2008 09:51 PM

Re: ?? PagePool ??
 
no, it's not RAM you gain (RAM is program memory). Swapfile space is not nearly as usefull as actual RAM is, but it does let you run more processes than you could if you didn't have it. Think of it as a cache for memory occupied by the executable portions of programs.

cheesegrater 02-26-2008 10:53 PM

Re: ?? PagePool ??
 
"The Page Pool
Applications use RAM in two ways. There is code that runs, and there is data that is created while it is running. On a NOR device, the code can run directly from the ROM and not be loaded into RAM first. This process is called XIP (eXecute In Place). NAND devices can't XIP, so their code is loaded into RAM and executed from there. If you don't have a Page Pool, this code is loaded into normal RAM. The Page Pool is a mechanism to limit how much code is loaded into normal RAM. With a Page Pool, we can unload code that hasn't been used in a while and reload it later if we need to. We can't do that without a Page Pool.

On a typical NAND-based WM5 device, the Page Pool is 4.5M."

this quote was taken from: http://blogs.msdn.com/windowsmobile/...17/494177.aspx

i thought it was a pretty good explanation. if you're curious the article gets into the dma buffer, radio stack etc., and how they affect device memory.

i've always thought of the page pool in wm to be comparable to the swap partition on a linux system, or virtual memory in windows. please set me straight if i'm crooked.
hope it helps.

gguruusa 02-27-2008 10:36 AM

Re: ?? PagePool ??
 
Quote:

Originally Posted by Success100 (Post 194356)
id like to chime in on this as well..are you suggestin that adjusting the page pool is allocating storage memory to program memory?? that doesnt seem right, if we could do that, our RAM worries would be non-existent..and thats definately NOT how it currently is..

Sort of, but not quite. Pagepool is virtual memory, but, unlike RAM (which you can write to an unlimited number of times), we're on a flash device (with limited wite cycles) so the pagepool can only contain code sections - no data sections. Plus, you have to have your program "paged in" to run, so a program can't ever access more RAM than you pysically have (because no data sections are allowed in the page pool). Since we can only page a portion of whats in RAM (just the code sections), RAM can quickly be consume by data sections.

There's always a price to pay, too. The larger the pagepool, the more storage space you consume (obviously, cause that's where it's stored), and you lose a small amount of RAM to track what's in the pagepool and where it is. And, of course, if you actually have to page something in, that's not nearly as fast as it already being in RAM.

So, if you find yourself running out of RAM, can increasing pagepool help? Definitely maybe. If you have lots of code sections, increasing pagepool might help. Once you've increased pagepool to a certain point, it won't help at all and will only hurt. That point is dependent on the nature of the software you run, and therefore will vary from user to user.

Will increasing/decreasing pagepool speed up your device? Definitely maybe. It all depends on why it's slow in the first place. Generally, you will only notice pagepool effects when swapping tasks. How often that occurs and whether you think it's better/worse depends on the nature of the software you run, and therefor will vary from user to user.

Will increasing/decreasing pagepool make my device more stable? Increasing pagepool should make your device feel more stable (mainly because programs are being swapped instead of forcibly closed). The only time decreasing pagepool helps stability is when you have really piss poor drivers (which, since we're stealing bits and pieces from other devices, may in fact be the case with any give kitchen/ROM).

Perasite 02-27-2008 11:16 AM

Re: ?? PagePool ??
 
Again, gguruusa, brilliant analysis. Thank you for the explanation. Now I know I want a new phone with more program memory :D

cheesegrater 02-27-2008 11:42 PM

Re: ?? PagePool ??
 
gguruusa, awesome. you put it best. appreciate the time you took to type that mess up. it's extremely helpful.

robmayer 02-27-2008 11:47 PM

Re: ?? PagePool ??
 
Great explanation, very helpful!

Fresh2Death 02-28-2008 12:19 PM

Re: ?? PagePool ??
 
gogo gguruusa!! :)

bitbrat 04-02-2008 05:13 PM

Re: ?? PagePool ??
 
OK, so I have tried 7, 4, and 8 on a new 6.1 ROM and I am having horrible problems, so I guess I have other issues....

Freezing/locking and very slooooooow response times, very erratic battery consumption figures etc.


Back to the kitchen - I need a new mixer!

bzxzlg 04-02-2008 07:54 PM

Re: ?? PagePool ??
 
Quote:

Originally Posted by bitbrat (Post 238675)
OK, so I have tried 7, 4, and 8 on a new 6.1 ROM and I am having horrible problems, so I guess I have other issues....

Freezing/locking and very slooooooow response times, very erratic battery consumption figures etc.


Back to the kitchen - I need a new mixer!

Someone in the 6.1 postings wondered if their ROM size was "pushing the limit" (http://forum.ppcgeeks.com/showthread...ize#post224224). Their selections were small enough to cook and load on the PPC, but they got bad response. I had kinda noticed that as well myself, so now I've got a ROM that works. I use the default pagepool of the cooker.

Cheers

boggsie 04-18-2008 11:51 AM

Re: ?? PagePool ??
 
Quote:

Originally Posted by gguruusa (Post 195361)
Pagepool is virtual memory, but, unlike RAM (which you can write to an unlimited number of times), we're on a flash device (with limited wite cycles) so the pagepool can only contain code sections - no data sections.

<snip>

The larger the pagepool, the more storage space you consume, and you lose a small amount of RAM to track what's in the pagepool and where it is.

<snip>

So, if you find yourself running out of RAM, can increasing pagepool help? Definitely maybe.

<snip>

Will increasing/decreasing pagepool speed up your device? Definitely maybe.

Remarkably clear explanation ... great post. My thanks.

fastevolutionviii 04-18-2008 12:12 PM

Re: ?? PagePool ??
 
Great explanation guys. Thanks for clearing things up for me.


All times are GMT -4. The time now is 11:16 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0