Is it possible to increase kernel memory ?

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

Moderators: cheriff, TyRaNiD

Post Reply
pegasus2000
Posts: 160
Joined: Wed Jul 12, 2006 7:09 am

Is it possible to increase kernel memory ?

Post by pegasus2000 »

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 ?
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

strange kernel ram available is at least 300kb in the worst cases.
are you sure you arent alloching ram on the kernel partition?
pegasus2000
Posts: 160
Joined: Wed Jul 12, 2006 7:09 am

Post by pegasus2000 »

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 ?
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

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
pegasus2000
Posts: 160
Joined: Wed Jul 12, 2006 7:09 am

Post by pegasus2000 »

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
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

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
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

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

Jim
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

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)
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

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
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

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...
Post Reply