Opened 13 years ago
Closed 13 years ago
#338 closed defect (fixed)
klog repeats the last screen over and over again and eats all memory
Reported by: | Jakub Jermář | Owned by: | Martin Decky |
---|---|---|---|
Priority: | major | Milestone: | 0.5.0 |
Component: | helenos/app/klog | Version: | |
Keywords: | Cc: | ||
Blocker for: | Depends on: | ||
See also: | #289 |
Description
This is reproducible with mainline 933, default build for HelenOS/arm32/gxemul.
After the system boots, go to kconsole and run:
kconsole> test slab2 kconsole> continue
Upon return, the klog application will be repeating the last output (i.e. screen or so) from kconsole over and over again. It will also eat all available memory when doing so. kconsole itself appears idle.
Change History (3)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
As of mainline,948, the points (2), (4), (5), (7) and (8) should be solved or their impact considerably reduced.
However, one major issue still remains even with the reimplementation: uspace klog will leak physical memory because the address space areas used for the uspace heap are never physically shrunk so far (heap_shrink() in malloc.c is not implemented properly).
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
IMHO this ticket may be closed now.
Heap shrinking was integrated in mainline,955 and since mainline,950, the klog data flow is handled correctly.
Seems like the problem is that the userspace klog can't keep up with the kernel sending an klog event for every 9 printed characters. What I think happens is this: