| View previous topic :: View next topic |
| Author |
Message |
Coldbird

Joined: 08 Feb 2007 Posts: 155
|
Posted: Tue Aug 10, 2010 7:46 am Post subject: Changing Memory Map? (Increasing User Space?) |
|
|
Im not talking about Slim Extra Memory here...
What I hope to figure out is a way to manage the available memory myself...
My goal is to increase the 24MB user space region by, lets say 1MB and reducing the 8MB kernel one by 1MB...
Does the wise forum have any answers for me? :D _________________ Been gone for some time. Now I'm back. Someone mind getting me up-2-date? |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Tue Aug 10, 2010 8:00 am Post subject: |
|
|
| You can use sceKernelVolatileMemLock to allocate the 4MB region at 0x08400000 but it will be overwritten if you suspend. Also, if you don't use the ME (at least don't use the sony me kernel), you can use the 1MB at 0x08300000 but you have to set the access bits and stop the ME. |
|
| Back to top |
|
 |
Coldbird

Joined: 08 Feb 2007 Posts: 155
|
Posted: Tue Aug 10, 2010 8:10 am Post subject: |
|
|
Its not really "allocating" I want to do... I dont just want to have a buffer...
I need to load a module in there... and need to ensure it isnt interfering with game code that runs on the normal 24MB userspace. _________________ Been gone for some time. Now I'm back. Someone mind getting me up-2-date? |
|
| Back to top |
|
 |
Davee
Joined: 22 Jun 2009 Posts: 59
|
Posted: Tue Aug 10, 2010 9:08 am Post subject: |
|
|
| There is no 8MB of kernel memory. |
|
| Back to top |
|
 |
Coldbird

Joined: 08 Feb 2007 Posts: 155
|
Posted: Tue Aug 10, 2010 9:12 am Post subject: |
|
|
I did some research myself and figured that sysmem is managing the partitions...
Fine, then call it whatever you like. I need to increase the user partition in size somehow... by reducing the kernel partition or something else...
So... does anyone have a idea how I could go about doing that? _________________ Been gone for some time. Now I'm back. Someone mind getting me up-2-date? |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Aug 10, 2010 2:29 pm Post subject: |
|
|
| Maybe the addresses and lengths are hard-coded somewhere? |
|
| Back to top |
|
 |
willow :--)
Joined: 13 Jan 2007 Posts: 126
|
|
| Back to top |
|
 |
Coldbird

Joined: 08 Feb 2007 Posts: 155
|
Posted: Tue Aug 10, 2010 8:10 pm Post subject: |
|
|
Thing is... even if I was to manually load my module into the buffer and start it from there... (would in theory be possible by setting the thread userlevel to 2 and using the wlanusb buffer function...)
The stack space, etc... would still get allocated from the 24MB main user partition... which would in the end still draw space from the running games memory...
So... using the volatile memory isnt the solution I want... atleast not in that way... just a buffer isnt helping me due to the way the PSP allocates it stack.
I would need to add the volatile memory or any other memory therefore, to the user partition pool somehow... to make it work the way I want...
That way I could ensure there will be enough memory available for a user module Im running, without crashing the running game because it lacks memory... _________________ Been gone for some time. Now I'm back. Someone mind getting me up-2-date? |
|
| Back to top |
|
 |
Davee
Joined: 22 Jun 2009 Posts: 59
|
Posted: Tue Aug 10, 2010 8:26 pm Post subject: |
|
|
Well, you can't load to volatile as in-game is it controlled via utility.prx and used to load firmware UI such as savedata, gameshare etc. It is also used to store payload data in sleep mode and so which data is wiped.
Kernel memory is small, and majority of it is used by the firmware and the custom firmware. I HIGHLY if not 100% believe that there is not even 0.5MB free.
Then of course there is VRAM and stuff... which is just not really do-able.
1MB is a huge amount to be asking for though, your only chance is on the PSP slim +. |
|
| Back to top |
|
 |
Coldbird

Joined: 08 Feb 2007 Posts: 155
|
Posted: Tue Aug 10, 2010 9:31 pm Post subject: |
|
|
Any ammount of memory, if added to the userspace, would help me tremendously...
I somehow need to remap and organize the RAM myself... in a way I can increase the userpool...
So if you know of a way to do that, please tell me. _________________ Been gone for some time. Now I'm back. Someone mind getting me up-2-date? |
|
| Back to top |
|
 |
|