forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

An info please

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Sat Sep 06, 2008 8:36 am    Post subject: An info please Reply with quote

How many big is the free memory ram when a program is started on PSP FAT ?
CFW 3.71 M33-4.

I mean: the memory ram would be lesser than 32 Mb: a part of it is occupied by programs, data and prx. Do you have an indicative value ?
Back to top
View user's profile Send private message
Allelujah



Joined: 16 Jul 2008
Posts: 10

PostPosted: Sat Sep 06, 2008 11:14 am    Post subject: Reply with quote

You might also want to try meminfo function from PSPLINK, It shows detailed information on every partition of PSP's memory like base, size, totalfree & maxfree.
Back to top
View user's profile Send private message
Noko



Joined: 06 Sep 2008
Posts: 23

PostPosted: Sat Sep 06, 2008 10:22 pm    Post subject: Reply with quote

Try mallocing 32MB, then 31MB, then 30 MB, until malloc succeeds.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sat Sep 06, 2008 10:50 pm    Post subject: Reply with quote

There is 24MB free in the user memory partition. When you start your application, its code will be loaded into this. So if your program code is 1MB, you will have 23MB of user memory left. You can allocate from this space.

The remaining 8MB partition is kernel memory. You *can* load some small stuff here (most of it will be occupied by the kernel).

On the Slim PSP you can use the regular 24MB user memory as well as the extra 32MB as if it was user memory.
Back to top
View user's profile Send private message
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Sat Sep 06, 2008 10:53 pm    Post subject: Reply with quote

Torch wrote:
There is 24MB free in the user memory partition. When you start your application, its code will be loaded into this. So if your program code is 1MB, you will have 23MB of user memory left. You can allocate from this space.

The remaining 8MB partition is kernel memory. You *can* load some small stuff here (most of it will be occupied by the kernel).

On the Slim PSP you can use the regular 24MB user memory as well as the extra 32MB as if it was user memory.


Thanks Torch. I'm checking the data memory of nd, and the system reported a value similar to 24 Mb when the Hello world starts. So, I had to verify if it was the normal behaviour.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group