[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux] Re: swap - task
un grand merci.
J'ai fait un fichier swap de 256 MB
(autant prévoir large... ça me permettra de prévoir la taille nécessaire
pour le prochain réinstall complet !)
ça semble fonctionner :
$ free
total used free shared buffers cached
Mem: 191576 188684 2892 12916 87184 73744
-/+ buffers/cache: 27756 163820
Swap: 270128 43360 226768
---------------------
Mais sur mes tâches MRTG, (forks) je vois à un moment des tâches en status
<defunct>
$ ps -A|grep mrtg
32478 ? 01:01:19 mrtg
7564 ? 00:00:00 mrtg
7565 ? 00:00:00 mrtg <defunct>
7566 ? 00:00:00 mrtg
7567 ? 00:00:00 mrtg
7568 ? 00:00:00 mrtg <defunct>
7569 ? 00:00:00 mrtg <defunct>
7570 ? 00:00:00 mrtg
7571 ? 00:00:00 mrtg <defunct>
7572 ? 00:00:00 mrtg
7573 ? 00:00:00 mrtg <defunct>
7574 ? 00:00:00 mrtg <defunct>
...
C'est normal ça ?
C'est simplement une tâche (forks) qui s'est terminée normalement?
ou c'est un status anormal ?
Un PS -l me donne ceci :
$ ps -l -A|grep mrtg
040 S 508 32478 1 6 61 0 - 3875 pipe_r ? 01:02:48
mrtg
040 D 508 12484 32478 2 61 0 - 3891 wait_o ? 00:00:00
mrtg
040 S 508 12485 32478 0 60 0 - 3883 do_sel ? 00:00:00
mrtg
044 Z 508 12486 32478 2 61 0 - 0 do_exi ? 00:00:00
mrtg <def
040 S 508 12487 32478 0 61 0 - 3885 do_sel ? 00:00:00
mrtg
040 S 508 12488 32478 0 60 0 - 3886 do_sel ? 00:00:00
mrtg
040 D 508 12489 32478 2 61 0 - 3893 wait_o ? 00:00:00
mrtg
040 D 508 12490 32478 1 63 0 - 3874 wait_o ? 00:00:00
mrtg
040 S 508 12491 32478 1 64 0 - 3891 do_sel ? 00:00:00
mrtg
040 S 508 12492 32478 0 60 0 - 3891 do_sel ? 00:00:00
mrtg
040 S 508 12493 32478 0 65 0 - 3894 do_sel ? 00:00:00
mrtg
044 Z 508 12494 32478 2 61 0 - 0 do_exi ? 00:00:00
mrtg <def
044 Z 508 12495 32478 2 61 0 - 0 do_exi ? 00:00:00
mrtg <def
...
Les tâches en <defunct> ont un "do_exi ?" ?
Si c'est un "do exit" je suppose que la tâche s'est terminée normalement ?
Pourtant je n'avais jamais vu ce status avant d'augmenter la mémoire Swap
!
Didier
> - ou comment créer une swap dans un fichier sur une partition ext2 ?
Pour créer un swapfile suplémentaire de 64 Mo :
dd if=/dev/zero of=swapfile bs=1024 count=65536 //crée un fichier
qui vas acceuillir le système de fichier swap.
mkswap swapfile //"formatage au sys de fichier swap.
swapon swapfile //acctivation du swapfile
free -m //un petit free pour vérifier
Benoît
_______________________________________________
Linux Mailing List
Archives: http://unixtech.be/mailman/listinfo/linux