Informations sur la Swap

Bonjour,

J’ai installé une distrib Debian 2.6.18 qui fonctionne plutot bien. Mon pc (p4 256 de ram pour vous donner une idee) est un portable dediée a heberge un site web (php, mysql) ainsi que du vsftp.
Tout est mis en place, il a tourné toute la journée et, quand je suis rentré cette nuit, il avait planté.

Mon syslog juste avant le plantage :

[quote]Apr 21 20:38:01 shibby kernel: Mem-info:
Apr 21 20:38:01 shibby kernel: DMA per-cpu:
Apr 21 20:38:01 shibby kernel: cpu 0 hot: high 0, batch 1 used:0
Apr 21 20:38:01 shibby kernel: cpu 0 cold: high 0, batch 1 used:0
Apr 21 20:38:01 shibby kernel: DMA32 per-cpu: empty
Apr 21 20:38:01 shibby kernel: Normal per-cpu:
Apr 21 20:38:01 shibby kernel: cpu 0 hot: high 90, batch 15 used:9
Apr 21 20:38:01 shibby kernel: cpu 0 cold: high 30, batch 7 used:6
Apr 21 20:38:01 shibby kernel: HighMem per-cpu: empty
Apr 21 20:38:01 shibby kernel: Free pages: 2848kB (0kB HighMem)
Apr 21 20:38:01 shibby kernel: Active:42 inactive:192 dirty:0 writeback:0 unstable:0 free:712 slab:59947 mapped:11 pagetables:113
Apr 21 20:38:01 shibby kernel: DMA free:1052kB min:128kB low:160kB high:192kB active:8kB inactive:24kB present:16384kB pages_scanned:30 all_unreclaimable? ye
s
Apr 21 20:38:01 shibby kernel: lowmem_reserve[]: 0 0 231 231
Apr 21 20:38:01 shibby kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Apr 21 20:38:01 shibby kernel: lowmem_reserve[]: 0 0 231 231
Apr 21 20:38:01 shibby kernel: Normal free:1796kB min:1880kB low:2348kB high:2820kB active:160kB inactive:744kB present:236992kB pages_scanned:130 all_unrecl
aimable? yes
Apr 21 20:38:01 shibby kernel: lowmem_reserve[]: 0 0 0 0
Apr 21 20:38:01 shibby kernel: HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Apr 21 20:38:01 shibby kernel: lowmem_reserve[]: 0 0 0 0
Apr 21 20:38:01 shibby kernel: DMA: 14kB 18kB 116kB 032kB 064kB 0128kB 0256kB 0512kB 11024kB 02048kB 04096kB = 1052kB
Apr 21 20:38:01 shibby kernel: DMA32: empty
Apr 21 20:38:01 shibby kernel: Normal: 1
4kB 08kB 016kB 032kB 064kB 0128kB 1256kB 1512kB 11024kB 02048kB 04096kB = 1796kB
Apr 21 20:38:01 shibby kernel: HighMem: empty
Apr 21 20:38:01 shibby kernel: Swap cache: add 5255, delete 5212, find 560/694, race 0+0
Apr 21 20:38:01 shibby kernel: Free swap = 568604kB
Apr 21 20:38:01 shibby kernel: Total swap = 586364kB
Apr 21 20:38:01 shibby kernel: Free swap: 568604kB
Apr 21 20:38:01 shibby kernel: 63344 pages of RAM
Apr 21 20:38:01 shibby kernel: 0 pages of HIGHMEM
Apr 21 20:38:01 shibby kernel: 1278 reserved pages
Apr 21 20:38:01 shibby kernel: 33 pages shared
Apr 21 20:38:01 shibby kernel: 43 pages swap cached
Apr 21 20:38:01 shibby kernel: 0 pages dirty
Apr 21 20:38:01 shibby kernel: 0 pages writeback
Apr 21 20:38:01 shibby kernel: 11 pages mapped
Apr 21 20:38:01 shibby kernel: 59947 pages slab
Apr 21 20:38:01 shibby kernel: 113 pages pagetables
Apr 21 20:38:01 shibby kernel: oom-killer: gfp_mask=0x200d2, order=0
Apr 21 20:38:01 shibby kernel: [] out_of_memory+0x25/0x13e
Apr 21 20:38:01 shibby kernel: [] __alloc_pages+0x1f5/0x275
Apr 21 20:38:01 shibby kernel: [] read_swap_cache_async+0x2f/0xac
Apr 21 20:38:01 shibby kernel: [] swapin_readahead+0x3a/0x58
Apr 21 20:38:01 shibby kernel: [] __handle_mm_fault+0x4db/0x740
Apr 21 20:38:01 shibby kernel: [] do_page_fault+0x18a/0x481
Apr 21 20:38:01 shibby kernel: [] do_page_fault+0x0/0x481
Apr 21 20:38:01 shibby kernel: [] error_code+0x39/0x40
Apr 21 20:38:01 shibby kernel: [] __put_user_4+0x12/0x18
Apr 21 20:38:01 shibby kernel: [] mm_release+0x47/0x5e
Apr 21 20:38:01 shibby kernel: [] exit_mm+0x12/0xda
Apr 21 20:38:01 shibby kernel: [] do_exit+0x193/0x71b
Apr 21 20:38:01 shibby kernel: [] sys_exit_group+0x0/0xd
Apr 21 20:38:01 shibby kernel: [] get_signal_to_deliver+0x395/0x3bc
Apr 21 20:38:01 shibby kernel: [] do_notify_resume+0x71/0x5d7
Apr 21 20:38:01 shibby kernel: [] default_wake_function+0x0/0xc
Apr 21 20:38:01 shibby kernel: [] destroy_inode+0x36/0x45
Apr 21 20:38:01 shibby kernel: [] sys_futex+0xdc/0xf1
Apr 21 20:38:01 shibby kernel: [] work_notifysig+0x13/0x19
Apr 21 20:38:01 shibby kernel: Mem-info:
Apr 21 20:38:01 shibby kernel: DMA per-cpu:
Apr 21 20:38:01 shibby kernel: cpu 0 hot: high 0, batch 1 used:0
Apr 21 20:38:01 shibby kernel: cpu 0 cold: high 0, batch 1 used:0
Apr 21 20:38:01 shibby kernel: DMA32 per-cpu: empty
Apr 21 20:38:01 shibby kernel: Normal per-cpu:
Apr 21 20:38:01 shibby kernel: cpu 0 hot: high 90, batch 15 used:9
Apr 21 20:38:01 shibby kernel: cpu 0 cold: high 30, batch 7 used:6
Apr 21 20:38:01 shibby kernel: HighMem per-cpu: empty
Apr 21 20:38:01 shibby kernel: Free pages: 2848kB (0kB HighMem)
Apr 21 20:38:01 shibby kernel: Active:42 inactive:192 dirty:0 writeback:0 unstable:0 free:712 slab:59947 mapped:11 pagetables:113
Apr 21 20:38:01 shibby kernel: DMA free:1052kB min:128kB low:160kB high:192kB active:8kB inactive:24kB present:16384kB pages_scanned:30 all_unreclaimable? ye
s
Apr 21 20:38:01 shibby kernel: lowmem_reserve[]: 0 0 231 231
Apr 21 20:38:01 shibby kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Apr 21 20:38:01 shibby kernel: lowmem_reserve[]: 0 0 231 231
Apr 21 20:38:01 shibby kernel: Normal free:1796kB min:1880kB low:2348kB high:2820kB active:160kB inactive:744kB present:236992kB pages_scanned:130 all_unrecl
aimable? yes
Apr 21 20:38:01 shibby kernel: lowmem_reserve[]: 0 0 0 0
Apr 21 20:38:01 shibby kernel: HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Apr 21 20:38:01 shibby kernel: lowmem_reserve[]: 0 0 0 0
Apr 21 20:38:01 shibby kernel: DMA: 14kB 18kB 116kB 032kB 064kB 0128kB 0256kB 0512kB 11024kB 02048kB 04096kB = 1052kB
Apr 21 20:38:01 shibby kernel: DMA32: empty
Apr 21 20:38:01 shibby kernel: Normal: 1
4kB 08kB 016kB 032kB 064kB 0128kB 1256kB 1512kB 11024kB 02048kB 04096kB = 1796kB
Apr 21 20:38:01 shibby kernel: HighMem: empty
Apr 21 20:38:01 shibby kernel: Swap cache: add 5255, delete 5212, find 560/694, race 0+0
Apr 21 20:38:01 shibby kernel: Free swap = 568604kB
Apr 21 20:38:01 shibby kernel: Total swap = 586364kB
Apr 21 20:38:01 shibby kernel: Free swap: 568604kB
Apr 21 20:38:01 shibby kernel: 63344 pages of RAM
Apr 21 20:38:01 shibby kernel: 0 pages of HIGHMEM
Apr 21 20:38:01 shibby kernel: 1278 reserved pages
Apr 21 20:38:01 shibby kernel: 33 pages shared
Apr 21 20:38:01 shibby kernel: 43 pages swap cached
Apr 21 20:38:01 shibby kernel: 0 pages dirty
Apr 21 20:38:01 shibby kernel: 0 pages writeback
Apr 21 20:38:01 shibby kernel: 11 pages mapped
Apr 21 20:38:01 shibby kernel: 59947 pages slab
Apr 21 20:38:01 shibby kernel: 113 pages pagetables
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2816 (apache2) score 4261 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2816 (apache2).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2817 (apache2) score 4261 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2817 (apache2).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2818 (apache2) score 4261 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2818 (apache2).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2821 (apache2) score 4261 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2821 (apache2).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2822 (apache2) score 4261 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2822 (apache2).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2680 (exim4) score 1328 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2680 (exim4).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2771 (apache2) score 266 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2771 (apache2).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2749 (atd) score 114 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2749 (atd).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2699 (nmbd) score 91 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2699 (nmbd).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2721 (sshd) score 77 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2721 (sshd).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2725 (vsftpd) score 55 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2725 (vsftpd).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2532 (mysqld_safe) score 41 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2532 (mysqld_safe).
Apr 21 20:38:01 shibby kernel: Out of Memory: Kill process 2756 (cron) score 34 and children.
Apr 21 20:38:01 shibby kernel: Out of memory: Killed process 2756 (cron).
[/quote]

Lorsque je fais un top apres un redemarrage (au bouton …) :

[quote]Tasks: 54 total, 1 running, 53 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.9%sy, 0.0%ni, 95.1%id, 1.8%wa, 2.0%hi, 0.0%si, 0.0%st
Mem: 248332k total, 135668k used, 112664k free, 21484k buffers
Swap: 586364k total, 0k used, 586364k free, 82796k cached[/quote]

La swap n’est pas utilisée apparemment (bien qu’elle soit montée et activée). Pensez vous que cela vienne de la, et que puis je faire ?

Merci
ced

Salut,
Moi le swap est rarement utlisé à part quand je fais des jeux, je ne pense pas qu’il y ait un problème avec ton swap :slightly_smiling:

Merci elwario pour ton aide.

J’ai allumé mon pc a midi, et je n’ai que le vsftp qui tourne (avec ssh et samba), je n’ai aucune interface graphique, rien de tout ca, mysql et apache sont arrété.
Ce que je ne comprends pas, c’est que 4h apres, voila ce que me donne un top :

[quote]
Tasks: 51 total, 1 running, 50 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.4%us, 0.3%sy, 0.0%ni, 98.1%id, 0.6%wa, 0.6%hi, 0.0%si, 0.0%st
Mem: 248332k total, 244312k used, 4020k free, 7240k buffers
Swap: 586364k total, 40k used, 586324k free, 219400k cached[/quote]

La Ram est completement utilisé, et je sens bien qu’un bug comme hier ne vas pas tarder …

Merci

Essaye de reformetter ta partition swap:

par exemple

swapoff /dev/hda7

mkswap /dev/hda7

swapon /dev/hda7

J’ai testé tes commandes fran.b, ca a l’air de un peu mieux fonctionner.

Je me suis rendu compte que c’etait apache et mysql qui me prenaient toutes les ressources, du coup, je les desactives a chaque demarrage en attendant de trouver une solution …

Merci pour vos reponses
Ced