Opened 12 years ago

Closed 12 years ago

#1374 closed bug (fixed)

leaking memory and semaphores

Reported by: jonas.kirilla Owned by: axeld
Priority: high Milestone: R1
Component: System/Kernel Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

In hrev21877, doing a

while (true); do clear; sysinfo | tail -n 5; done;

shows the semaphore and memory count rising continously.

ProcessController shows System Resources & Caches rising whereas the kernel_team's memory is stable (but fluctuating some).

Change History (3)

comment:1 Changed 12 years ago by axeld

Priority: normalhigh

As I've written in the commit message to hrev21862, the kernel is currently leaking address spaces. Unfortunately, fixing it the obvious way did not work out as expected (due to the team tear down code). Will have to investigate this some day :-)

comment:2 Changed 12 years ago by jonas.kirilla

Thanks for the explanation, Axel! It's good to know that you're on top of things. :)

On each fork two more semaphores seem to get used: one 'address space' and one 'translation map'. Forking eventually deplete resources, resulting in a panic saying the "heap overgrew itself".

comment:3 Changed 12 years ago by axeld

Resolution: fixed
Status: newclosed

Fixed in hrev22130.

Note: See TracTickets for help on using tickets.