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 

Is it possible to increase kernel memory ?

 
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 Dec 29, 2007 11:48 am    Post subject: Is it possible to increase kernel memory ? Reply with quote

I have a trouble: when I load my module kernelextender.prx,
the system refuses to load other modules (as network
modules) with an error 0x80020190 (no memory).

It seems that the module kernelextender.prx, programmed by
me, occupies all memory kernel, but it is also 5 Kb.

I have custom firmware 3.77 M33-4 on PSP-SLIM

What do you think about this ?
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Sun Dec 30, 2007 1:46 am    Post subject: Reply with quote

strange kernel ram available is at least 300kb in the worst cases.
are you sure you arent alloching ram on the kernel partition?
Back to top
View user's profile Send private message Visit poster's website
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Sun Dec 30, 2007 2:24 am    Post subject: Reply with quote

weltall wrote:
strange kernel ram available is at least 300kb in the worst cases.
are you sure you arent alloching ram on the kernel partition?


I don't know. How can I ensure that the allocation isn't in
kernel partition ?
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Sun Dec 30, 2007 7:05 pm    Post subject: Reply with quote

pegasus2000 wrote:
weltall wrote:
strange kernel ram available is at least 300kb in the worst cases.
are you sure you arent alloching ram on the kernel partition?


I don't know. How can I ensure that the allocation isn't in
kernel partition ?

well if you use malloc or you have set the heap (PSP_HEAP_SIZE_KB(20480); ) or you did a too big heap in the thread initialization.
you may even try loading it trough psplink so you can check what happens to ram exactly
Back to top
View user's profile Send private message Visit poster's website
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Sun Dec 30, 2007 7:31 pm    Post subject: Reply with quote

weltall wrote:
pegasus2000 wrote:
weltall wrote:
strange kernel ram available is at least 300kb in the worst cases.
are you sure you arent alloching ram on the kernel partition?


I don't know. How can I ensure that the allocation isn't in
kernel partition ?

well if you use malloc or you have set the heap (PSP_HEAP_SIZE_KB(20480); ) or you did a too big heap in the thread initialization.
you may even try loading it trough psplink so you can check what happens to ram exactly


I have set PSP_HEAP_SIZE_MAX
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Mon Dec 31, 2007 6:22 pm    Post subject: Reply with quote

ok remove that thing you are alloching all the kernel ram...
and if possible remove also malloc from your plugin. malloc shouldn't be used for those you should use the partition alloc functions from the firmware
Back to top
View user's profile Send private message Visit poster's website
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Tue Jan 01, 2008 6:24 am    Post subject: Reply with quote

Allocate the memory in your user area and pass a pointer to the kernel code.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Tue Jan 01, 2008 6:22 pm    Post subject: Reply with quote

Jim wrote:
Allocate the memory in your user area and pass a pointer to the kernel code.

Jim

yes and then games will stop working and other plugins won't find things were they should :P
a plugin should use only kernel ram or at least volatile (not suggested as some games use it) and me (it seems writing there doesn't do problems)
Back to top
View user's profile Send private message Visit poster's website
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Wed Jan 02, 2008 12:53 am    Post subject: Reply with quote

I'd guess writing to ME memory while the video/music plugin is running or a game is using ME's audio/video decoding would be a problem though, no?
Which games use the volatile memory?
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Wed Jan 02, 2008 7:37 am    Post subject: Reply with quote

strangely no. it seems to be fine. mind you irshell takes 600kbs from there ( :S ), remember always to allocate the partition to don't conflict with other things.

some examples are Gran theft auto, dungeons siege, the psp own browser...
Back to top
View user's profile Send private message Visit poster's website
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