2.5.66: task_struct memory leak?

2.5.66: task_struct memory leak?

Post by Russell Kin » Wed, 26 Mar 2003 18:00:12



Hi,

With 2.5.66, I'm seeing what can only be described as a severe memory
leak.  This isn't something that I noticed on 2.5.65 - in fact, I have
several ARM machines happily running 2.5.65.

The leak seems to be centred around the task_struct slab, which seems
to do nothing but continually grow:

bash-2.04# grep task_struct /proc/slabinfo
task_struct         1868   1868    920  467  467    1 :   32   16 :   1868    1916   467    0    0    0   36 :   1509    496    139      0
...
bash-2.04# ps aux | wc -l
     20
bash-2.04# grep task_struct /proc/slabinfo
task_struct         1892   1892    920  473  473    1 :   32   16 :   1892    1956   473    0    0    0   36 :   1519    511    139      0
bash-2.04# grep task_struct /proc/slabinfo
task_struct         1892   1892    920  473  473    1 :   32   16 :   1892    1957   473    0    0    0   36 :   1519    512    139      0
bash-2.04# grep task_struct /proc/slabinfo
task_struct         1896   1896    920  474  474    1 :   32   16 :   1896    1961   474    0    0    0   36 :   1519    513    139      0
bash-2.04# grep task_struct /proc/slabinfo
task_struct         1896   1896    920  474  474    1 :   32   16 :   1896    1961   474    0    0    0   36 :   1520    513    139      0
bash-2.04# grep task_struct /proc/slabinfo
task_struct         1896   1896    920  474  474    1 :   32   16 :   1896    1961   474    0    0    0   36 :   1521    513    139      0
bash-2.04# grep task_struct /proc/slabinfo
task_struct         1896   1896    920  474  474    1 :   32   16 :   1896    1961   474    0    0    0   36 :   1522    513    139      0
bash-2.04# grep task_struct /proc/slabinfo
task_struct         1900   1900    920  475  475    1 :   32   16 :   1900    1965   475    0    0    0   36 :   1522    514    139      0

mm_struct seems to be fairly constant, so these are at least getting freed:
mm_struct             24     36    320    3    3    1 :   32   16 :    120     739    11    2    0    0   44 :   3144     53   3183      5

I'm seeing memory disappear at a rate of 8K / process, which seems to
suggest that the ARM level 1 page tables aren't getting freed either.

Is anyone seeing this type of behaviour on x86?

--

             http://www.arm.linux.org.uk/personal/aboutme.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.66: task_struct memory leak?

Post by Sean Neakum » Wed, 26 Mar 2003 18:20:08


commence  Russell King quotation:

Quote:> I'm seeing memory disappear at a rate of 8K / process, which seems to
> suggest that the ARM level 1 page tables aren't getting freed either.

> Is anyone seeing this type of behaviour on x86?

Running 2.5.66 (plus Ingo Molnar's sched-2.5.66-A2), and I don't seem
to see a growth in the task_struct slab after repeated forking:

$ grep task_struct /proc/slabinfo ; for i in $(seq 1000) ; do /bin/true ; done ; grep task_struct /proc/slabinfo
task_struct           79     80   1552   16   16    2 :   54   27
task_struct           79     80   1552   16   16    2 :   54   27

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Compile error 2.5.66-mm1 (haven't tried with 2.5.66 vanilla)

Hello

Compiling 2.5.66-mm1 gives me the following error

   ld -m elf_i386  -r -o init/built-in.o init/main.o init/version.o
init/mounts.o init/initramfs.o
        ld -m elf_i386  -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o
arch/i386/kernel/init_task.o   init/built-in.o --start-group
usr/built-in.o  arch/i386/kernel/built-in.o
arch/i386/mm/built-in.o  arch/i386/mach-default/built-in.o
kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o
security/built-in.o  crypto/built-in.o  lib/lib.a
arch/i386/lib/lib.a  drivers/built-in.o  sound/built-in.o
arch/i386/pci/built-in.o  net/built-in.o --end-group  -o
.tmp_vmlinux1
sound/built-in.o: In function `cs4232_pnp_remove':
sound/built-in.o(.text+0xaf51): undefined reference to `local symbols in
discarded section .exit.text'
make: *** [.tmp_vmlinux1] Error 1

Program versions and config are atached.

Bye
Calin

--
# fortune
fortune: write error on /dev/null - please empty the bit bucket

-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Tcl Blend & Linux - Almost Works

3. [2.5.66] kexec for 2.5.66 available

4. Apache ReWrites to own VirtualServer

5. task_struct slab cache use after free in 2.5.66

6. ip aliasing and firewall

7. isp1020 memory trample in 2.5.66

8. Linux 2.4.19-pre10-ac2

9. very poor performance in 2.5.66[-mm1]

10. oops when using hdc=ide-scsi (2.5.66)

11. 2.5.66, cache_alloc_refill

12. XFS, Slab corruption, oops [2.5.66]

13. Problems when boot new kernel 2.5.66 kernel panic