How much free kernel memory is there in-game?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

How much free kernel memory is there in-game?

Post by Torch »

I'm writing a plugin and I need to know how much kernel memory I can safely allocate during GAME mode?
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

i think the API sceKernelPartitionTotalFreeMemSize can return the total amount of free memory of a partition.
From psplink the memoryUID.c s source contains howto explore the memory tree of the psp and to look at several attributes
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Remember that this value will vary greatly as some people use more plugins than others. One person may have no plugins, leaving all the memory free, while others may have as many plugins running as they can, leaving almost nothing free.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

J.F. wrote:Remember that this value will vary greatly as some people use more plugins than others. One person may have no plugins, leaving all the memory free, while others may have as many plugins running as they can, leaving almost nothing free.
But whats the default free memory without any plugins?
Cpasjuste
Posts: 214
Joined: Sun May 29, 2005 8:28 am

Post by Cpasjuste »

sauron_le_noir wrote:i think the API sceKernelPartitionTotalFreeMemSize can return the total amount of free memory of a partition.
From psplink the memoryUID.c s source contains howto explore the memory tree of the psp and to look at several attributes
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Cpasjuste wrote:
sauron_le_noir wrote:i think the API sceKernelPartitionTotalFreeMemSize can return the total amount of free memory of a partition.
From psplink the memoryUID.c s source contains howto explore the memory tree of the psp and to look at several attributes
i know. but idont want to write a program cos someone probably knows offhand. idont have access to my dev.pc for a few days as well. i was thinking about something and was wondering if it was feasable.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Torch wrote:
J.F. wrote:Remember that this value will vary greatly as some people use more plugins than others. One person may have no plugins, leaving all the memory free, while others may have as many plugins running as they can, leaving almost nothing free.
But whats the default free memory without any plugins?
Well, if you search on memory partitions, you find these threads:
http://forums.ps2dev.org/viewtopic.php?t=10589
http://forums.ps2dev.org/viewtopic.php?t=9820
http://forums.ps2dev.org/viewtopic.php?t=10703
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

thanks. looks like there is around 380KB free.
Post Reply