| View previous topic :: View next topic |
| Author |
Message |
pegasus2000
Joined: 12 Jul 2006 Posts: 160
|
Posted: Sat Dec 29, 2007 11:48 am Post subject: Is it possible to increase kernel memory ? |
|
|
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 |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Sun Dec 30, 2007 1:46 am Post subject: |
|
|
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 |
|
 |
pegasus2000
Joined: 12 Jul 2006 Posts: 160
|
Posted: Sun Dec 30, 2007 2:24 am Post subject: |
|
|
| 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 |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Sun Dec 30, 2007 7:05 pm Post subject: |
|
|
| 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 |
|
 |
pegasus2000
Joined: 12 Jul 2006 Posts: 160
|
Posted: Sun Dec 30, 2007 7:31 pm Post subject: |
|
|
| 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 |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Mon Dec 31, 2007 6:22 pm Post subject: |
|
|
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 |
|
 |
Jim

Joined: 02 Jul 2005 Posts: 487 Location: Sydney
|
Posted: Tue Jan 01, 2008 6:24 am Post subject: |
|
|
Allocate the memory in your user area and pass a pointer to the kernel code.
Jim _________________ http://www.dbfinteractive.com |
|
| Back to top |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Tue Jan 01, 2008 6:22 pm Post subject: |
|
|
| 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 |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Wed Jan 02, 2008 12:53 am Post subject: |
|
|
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 |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Wed Jan 02, 2008 7:37 am Post subject: |
|
|
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 |
|
 |
|