Gestion de la Swap
Bonjour la Liste,
J'ai eu récemment quelques problèmes de saturation de la mémoire et de
la swap (cf. journal en pièces jointe). Je pensais cela normal car j'ai
utilisé des outils de récupération de donnée sur une image dd de
partition de 60 Go :
notamment foremost (paquet debian)
Par ailleurs lors de mon problème de disque dur j'ai formaté une de mes
deux partitions de swap. Proprement il me semble. désactiver la swap
puis formatage. Retirer la déclaration de /etc/fstab
J'ai pensé sur le moment que le problème venait de l'utilisation de
foremost sur une grosse image (60Go).
Ceci dit je remarque encore que la swap est beaucoup plus sollicitée que
d'habitude alors que je fais tourner très peu de service :
apache cupsys anacron ssh (port non ouvert).
Voici quelques données :
Mémoire vive :256+128 Mo DDR 1ere génération
Une partition de swap : /dev/hda5 270 Mo
debian etch 2.6.16-2-k7
CPU
model name : AMD Athlon(tm) Processor
cpu MHz : 1199.924
Avec un client Jabber (gajim), Evolution et beep-media-player de lancer
voila ce que j'ai après quelques :
----------------------------------------------------------------
#free -m
total used free shared buffers cached
Mem: 377 372 4 0 12 128
-/+ buffers/cache: 231 146
Swap: 274 203 70
----------------------------------------------------------------
Pas de messages particuliers dans les journaux (logcheck fonctionne et
je les lis dans une console dédiée).
Fermer Gnome me rend la place, ceci dit au bout de quelques heures
d'utilisation je me retrouve dans une situation similaire.
Je peux aisément saturé la machine en ouvrant une vidéo(totem), firefox
et the Gimp. Après un retour à la normal (kill gimp et totem) la swap ne
se libère pas. Elle semble accumuler.
Quel piste suivre pour trouver mon problème ?
J'ai exploré free top vmstat et même slabtop (totalement
incompréhensible pour moi) sans succès.
Je sollicite vos lumières.
Merci
mx
Aug 25 00:01:15 DebianChewie -- MARK --
Aug 25 00:21:18 DebianChewie -- MARK --
Aug 25 00:23:15 DebianChewie kernel: oom-killer: gfp_mask=0x201d2, order=0
Aug 25 00:23:15 DebianChewie kernel: [<b01329fd>] out_of_memory+0x27/0x11a
Aug 25 00:23:15 DebianChewie kernel: [<b0133f61>] __alloc_pages+0x1f5/0x279
Aug 25 00:23:15 DebianChewie kernel: [<b01350d2>] __do_page_cache_readahead+0x85/0x18c
Aug 25 00:23:15 DebianChewie kernel: [<b026211e>] io_schedule+0xe/0x16
Aug 25 00:23:15 DebianChewie kernel: [<b012fcad>] sync_page+0x0/0x38
Aug 25 00:23:15 DebianChewie kernel: [<b02625db>] __wait_on_bit_lock+0x4a/0x51
Aug 25 00:23:15 DebianChewie kernel: [<b0131566>] filemap_nopage+0x120/0x2bc
Aug 25 00:23:15 DebianChewie kernel: [<b013a06e>] __handle_mm_fault+0x207/0x650
Aug 25 00:23:15 DebianChewie kernel: [<b0111d6d>] do_page_fault+0x163/0x4a4
Aug 25 00:23:15 DebianChewie kernel: [<b0111c0a>] do_page_fault+0x0/0x4a4
Aug 25 00:23:15 DebianChewie kernel: [<b010346b>] error_code+0x4f/0x54
Aug 25 00:23:15 DebianChewie kernel: Mem-info:
Aug 25 00:23:15 DebianChewie kernel: DMA per-cpu:
Aug 25 00:23:15 DebianChewie kernel: cpu 0 hot: high 0, batch 1 used:0
Aug 25 00:23:15 DebianChewie kernel: cpu 0 cold: high 0, batch 1 used:0
Aug 25 00:23:15 DebianChewie kernel: DMA32 per-cpu: empty
Aug 25 00:23:15 DebianChewie kernel: Normal per-cpu:
Aug 25 00:23:15 DebianChewie kernel: cpu 0 hot: high 186, batch 31 used:42
Aug 25 00:23:15 DebianChewie kernel: cpu 0 cold: high 62, batch 15 used:61
Aug 25 00:23:15 DebianChewie kernel: HighMem per-cpu: empty
Aug 25 00:23:15 DebianChewie kernel: Free pages: 4132kB (0kB HighMem)
Aug 25 00:23:15 DebianChewie kernel: Active:45249 inactive:45107 dirty:0 writeback:0 unstable:0 free:1033 slab:3330 mapped:89845 pagetables:684
Aug 25 00:23:15 DebianChewie kernel: DMA free:1572kB min:104kB low:128kB high:156kB active:6448kB inactive:5444kB present:16384kB pages_scanned:12525 all_unreclaimable? yes
Aug 25 00:23:15 DebianChewie kernel: lowmem_reserve[]: 0 0 367 367
Aug 25 00:23:15 DebianChewie kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Aug 25 00:23:15 DebianChewie kernel: lowmem_reserve[]: 0 0 367 367
Aug 25 00:23:15 DebianChewie kernel: Normal free:2560kB min:2400kB low:3000kB high:3600kB active:174548kB inactive:174984kB present:376768kB pages_scanned:443496 all_unreclaimable? yes
Aug 25 00:23:15 DebianChewie kernel: lowmem_reserve[]: 0 0 0 0
Aug 25 00:23:15 DebianChewie kernel: HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Aug 25 00:23:15 DebianChewie kernel: lowmem_reserve[]: 0 0 0 0
Aug 25 00:23:15 DebianChewie kernel: DMA: 1*4kB 0*8kB 2*16kB 0*32kB 0*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1572kB
Aug 25 00:23:15 DebianChewie kernel: DMA32: empty
Aug 25 00:23:15 DebianChewie kernel: Normal: 58*4kB 3*8kB 2*16kB 1*32kB 1*64kB 1*128kB 0*256kB 2*512kB 1*1024kB 0*2048kB 0*4096kB = 2560kB
Aug 25 00:23:15 DebianChewie kernel: HighMem: empty
Aug 25 00:23:15 DebianChewie kernel: Swap cache: add 421384, delete 421384, find 98217/132563, race 0+3
Aug 25 00:23:15 DebianChewie kernel: Free swap = 0kB
Aug 25 00:23:15 DebianChewie kernel: Total swap = 281096kB
Aug 25 00:23:15 DebianChewie kernel: Free swap: 0kB
Aug 25 00:23:15 DebianChewie kernel: 98288 pages of RAM
Aug 25 00:23:15 DebianChewie kernel: 0 pages of HIGHMEM
Aug 25 00:23:15 DebianChewie kernel: 1598 reserved pages
Aug 25 00:23:15 DebianChewie kernel: 320 pages shared
Aug 25 00:23:15 DebianChewie kernel: 0 pages swap cached
Aug 25 00:23:15 DebianChewie kernel: 0 pages dirty
Aug 25 00:23:15 DebianChewie kernel: 0 pages writeback
Aug 25 00:23:15 DebianChewie kernel: 89845 pages mapped
Aug 25 00:23:15 DebianChewie kernel: 3330 pages slab
Aug 25 00:23:15 DebianChewie kernel: 684 pages pagetables
Aug 25 00:23:15 DebianChewie kernel: oom-killer: gfp_mask=0x201d2, order=0
Aug 25 00:23:15 DebianChewie kernel: [<b01329fd>] out_of_memory+0x27/0x11a
Aug 25 00:23:15 DebianChewie kernel: [<b0133f61>] __alloc_pages+0x1f5/0x279
Aug 25 00:23:15 DebianChewie kernel: [<b01350d2>] __do_page_cache_readahead+0x85/0x18c
Aug 25 00:23:15 DebianChewie kernel: [<b026211e>] io_schedule+0xe/0x16
Aug 25 00:23:15 DebianChewie kernel: [<b012fcad>] sync_page+0x0/0x38
Aug 25 00:23:15 DebianChewie kernel: [<b02625db>] __wait_on_bit_lock+0x4a/0x51
Aug 25 00:23:15 DebianChewie kernel: [<b0131566>] filemap_nopage+0x120/0x2bc
Aug 25 00:23:15 DebianChewie kernel: [<b013a06e>] __handle_mm_fault+0x207/0x650
Aug 25 00:23:15 DebianChewie kernel: [<b0111d6d>] do_page_fault+0x163/0x4a4
Aug 25 00:23:15 DebianChewie kernel: [<b0111c0a>] do_page_fault+0x0/0x4a4
Aug 25 00:23:15 DebianChewie kernel: [<b010346b>] error_code+0x4f/0x54
Aug 25 00:23:15 DebianChewie kernel: Mem-info:
Aug 25 00:23:15 DebianChewie kernel: DMA per-cpu:
Aug 25 00:23:15 DebianChewie kernel: cpu 0 hot: high 0, batch 1 used:0
Aug 25 00:23:15 DebianChewie kernel: cpu 0 cold: high 0, batch 1 used:0
Aug 25 00:23:15 DebianChewie kernel: DMA32 per-cpu: empty
Aug 25 00:23:15 DebianChewie kernel: Normal per-cpu:
Aug 25 00:23:15 DebianChewie kernel: cpu 0 hot: high 186, batch 31 used:42
Aug 25 00:23:15 DebianChewie kernel: cpu 0 cold: high 62, batch 15 used:61
Aug 25 00:23:15 DebianChewie kernel: HighMem per-cpu: empty
Aug 25 00:23:15 DebianChewie kernel: Free pages: 4132kB (0kB HighMem)
Aug 25 00:23:15 DebianChewie kernel: Active:45249 inactive:45107 dirty:0 writeback:0 unstable:0 free:1033 slab:3330 mapped:89845 pagetables:684
Aug 25 00:23:15 DebianChewie kernel: DMA free:1572kB min:104kB low:128kB high:156kB active:6448kB inactive:5444kB present:16384kB pages_scanned:12525 all_unreclaimable? yes
Aug 25 00:23:15 DebianChewie kernel: lowmem_reserve[]: 0 0 367 367
Aug 25 00:23:15 DebianChewie kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Aug 25 00:23:15 DebianChewie kernel: lowmem_reserve[]: 0 0 367 367
Aug 25 00:23:15 DebianChewie kernel: Normal free:2560kB min:2400kB low:3000kB high:3600kB active:174548kB inactive:174984kB present:376768kB pages_scanned:443496 all_unreclaimable? yes
Aug 25 00:23:15 DebianChewie kernel: lowmem_reserve[]: 0 0 0 0
Aug 25 00:23:15 DebianChewie kernel: HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Aug 25 00:23:15 DebianChewie kernel: lowmem_reserve[]: 0 0 0 0
Aug 25 00:23:15 DebianChewie kernel: DMA: 1*4kB 0*8kB 2*16kB 0*32kB 0*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1572kB
Aug 25 00:23:15 DebianChewie kernel: DMA32: empty
Aug 25 00:23:15 DebianChewie kernel: Normal: 58*4kB 3*8kB 2*16kB 1*32kB 1*64kB 1*128kB 0*256kB 2*512kB 1*1024kB 0*2048kB 0*4096kB = 2560kB
Aug 25 00:23:15 DebianChewie kernel: HighMem: empty
Aug 25 00:23:15 DebianChewie kernel: Swap cache: add 421384, delete 421384, find 98217/132563, race 0+3
Aug 25 00:23:15 DebianChewie kernel: Free swap = 0kB
Aug 25 00:23:15 DebianChewie kernel: Total swap = 281096kB
Aug 25 00:23:15 DebianChewie kernel: Free swap: 0kB
Aug 25 00:23:15 DebianChewie kernel: 98288 pages of RAM
Aug 25 00:23:15 DebianChewie kernel: 0 pages of HIGHMEM
Aug 25 00:23:15 DebianChewie kernel: 1598 reserved pages
Aug 25 00:23:15 DebianChewie kernel: 320 pages shared
Aug 25 00:23:15 DebianChewie kernel: 0 pages swap cached
Aug 25 00:23:15 DebianChewie kernel: 0 pages dirty
Aug 25 00:23:15 DebianChewie kernel: 0 pages writeback
Aug 25 00:23:15 DebianChewie kernel: 89845 pages mapped
Aug 25 00:23:15 DebianChewie kernel: 3330 pages slab
Aug 25 00:23:15 DebianChewie kernel: 684 pages pagetables
Aug 25 00:41:20 DebianChewie -- MARK --
Reply to: