Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo swappa moltissimo !
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
silverfix
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2003
Posts: 146
Location: born: Foggia - now: Bari

PostPosted: Wed Mar 26, 2003 7:48 pm    Post subject: Gentoo swappa moltissimo ! Reply with quote

Salve, come da subject il problema è che Gentoo swappa davvero troppo.

Vi do un po di dati:

Athlon XP 1700+ 128MB DDR
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"

mi va davvero lento, puntatore a scatti.. phoenix che si addormenta.. openoffice che non si sveglia proprio... poi swappa davvero tanto, cavolo debian molte volte rimane a 0 la swap, con gentoo..... quasi la impiena..

vi posto i paste di "free":

debian:
Mem: 126876 111384 15492 0 10716 52652
-/+ buffers/cache: 48016 78860
Swap: 248996 0 248996

gentoo:
Mem: 126376 123440 2936 0 2664 76948
-/+ buffers/cache: 43828 82548
Swap: 248996 5460 243536

uso come kernel gentoo-sources-2.4.20-r1 ricompilato....

aiuto :(
_________________
SilverFix - a happy Linux user!
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Wed Mar 26, 2003 7:54 pm    Post subject: Reply with quote

E' davvero stranissimo: con me altre distribuzioni swappano, gentoo non riempe nemmeno la memoria...

Puoi postare un ps aux o un top?
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
bld
l33t
l33t


Joined: 26 Mar 2003
Posts: 759
Location: Outter Space

PostPosted: Wed Mar 26, 2003 10:24 pm    Post subject: Reply with quote

Io "swappa" non capisco esattamente cosa vuol dire.. capisco che ha a che fare con la partizione swap. cmq, anche a me il sistima da l'impressione di essere "unstable" molto
piu unstable degli XP. non so se ho sbagliato a sciegliere l'ext3fs pero quest non mi sempra normale. boh.. ecco a voi gran parte del top da root.
-----------------------------------------------------------------
00:22:14 up 11:17, 2 users, load average: 1.19, 1.34, 1.34
63 processes: 60 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 67.4% user, 24.7% system, 0.0% nice, 0.0% iowait, 7.7% idle
Mem: 126268k av, 62248k used, 64020k free, 0k shrd, 1332k buff
33580k active, 20972k inactive
Swap: 257000k av, 76080k used, 180920k free 32540k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
2679 root 14 0 744 744 440 S 3.3 0.5 0:00 dmake
3984 root 9 0 61668 4844 3684 S 2.3 3.8 21:11 X
9 root 9 0 0 0 0 SW 0.5 0.0 3:28 kjournald
25868 bld 9 0 13072 8204 3876 S 0.5 6.4 0:58 opera
25816 bld 9 0 2372 1616 1408 R 0.3 1.2 0:04 Eterm
2262 root 10 0 1120 1120 788 R 0.3 0.8 0:00 top
18184 bld 9 0 2224 1308 1308 S 0.1 1.0 0:06 Eterm
25369 bld 9 0 11536 3044 1400 R 0.1 2.4 2:56 opera
2866 root 18 0 796 796 504 S 0.1 0.6 0:00 tcsh
2867 root 18 0 1164 1164 556 D 0.1 0.9 0:00 ar
1 root 0 0 388 360 348 S 0.0 0.2 0:07 init
2 root 9 0 0 0 0 SW 0.0 0.0 0:09 keventd
3 root 19 19 0 0 0 SWN 0.0 0.0 0:09 ksoftirqd_CPU0
4 root 9 0 0 0 0 SW 0.0 0.0 0:39 kswapd
5 root 9 0 0 0 0 SW 0.0 0.0 0:00 bdflush
6 root 9 0 0 0 0 SW 0.0 0.0 0:02 kupdated
33 root 8 0 544 228 228 S 0.0 0.1 0:00 devfsd
3103 root 9 0 248 212 196 S 0.0 0.1 0:12 gpm
3391 root 9 0 324 224 224 S 0.0 0.1 0:00 metalog
3394 root 9 0 236 184 184 S 0.0 0.1 0:00 metalog
3395 root 9 0 308 272 272 S 0.0 0.2 0:00 crond
3547 root 9 0 232 184 184 S 0.0 0.1 0:00 dhcpcd
3849 xfs 9 0 4500 260 260 S 0.0 0.2 0:00 xfs
3859 root 9 0 732 500 500 S 0.0 0.3 0:00 login
3860 root 9 0 672 460 460 S 0.0 0.3 0:00 login
3861 root 9 0 376 328 328 S 0.0 0.2 0:00 agetty
3862 root 9 0 376 328 328 S 0.0 0.2 0:00 agetty
3863 root 9 0 376 328 328 S 0.0 0.2 0:00 agetty
3864 root 9 0 376 328 328 S 0.0 0.2 0:00 agetty
3930 bld 9 0 664 412 412 S 0.0 0.3 0:00 bash
3936 root 8 0 644 400 400 S 0.0 0.3 0:00 bash
3970 bld 9 0 500 392 392 S 0.0 0.3 0:00 startx
3983 bld 9 0 476 408 408 S 0.0 0.3 0:00 xinit
3989 bld 9 0 1236 964 872 S 0.0 0.7 0:36 fluxbox
-----------------------------------------------------------------------
un tizio del qualle mi fido mi ha detto di fare una cosa del genere
per prevenire che si blocchi tutto.. dal cpu.
____
root # hdparm -u 1 /dev/hda
/dev/hda:
setting unmaskirq to 1 (on)
unmaskirq = 1 (on)
____
so che e' da idioti fare qualcosa che non capisci pero va un po meglio..
e poi spero di capire esattamente cosa ho fatto prima o poi!
_________________
A happy GNU/Linux user!!
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Mar 26, 2003 10:51 pm    Post subject: Reply with quote

bld wrote:
Io "swappa" non capisco esattamente cosa vuol dire.. capisco che ha a che fare con la partizione swap. cmq, anche a me il sistima da l'impressione di essere "unstable" molto
piu unstable degli XP. non so se ho sbagliato a sciegliere l'ext3fs pero quest non mi sempra normale.

Io uso Gentoo con ~x86 e kernel 2.5.66-mm1 con reiserfs su un portatile, e vi assicuro che è di una stabilità rocciosa, una volta configurato come si deve. Non ho problemi a compilare pacchetti enormi in background mentre ascolto musica con XMMS o guardo un DVD con kmplayer o navigo una dozzina di siti diversi con mozilla.
Per quel che riguarda "paragoni azzardati con altri sistemi", ho dovuto di recente fare un po' di spazio per win2k, e usarlo è stato come precipitare in un incubo...
Quote:
un tizio del qualle mi fido mi ha detto di fare una cosa del genere
per prevenire che si blocchi tutto.. dal cpu.
____
root # hdparm -u 1 /dev/hda
/dev/hda:
setting unmaskirq to 1 (on)
unmaskirq = 1 (on)
____
so che e' da idioti fare qualcosa che non capisci pero va un po meglio..
e poi spero di capire esattamente cosa ho fatto prima o poi!

Se vuoi sapere cosa fa quel comando leggi le manpages di hdparm. Ecco un estratto:
Code:
-u     Get/set  interrupt-unmask  flag  for  the drive.  A setting of 1
              permits the driver to unmask other interrupts during  processing
              of  a disk interrupt, which greatly improves Linux's responsive-
              ness and eliminates "serial port overrun" errors.  Use this fea-
              ture  with  caution:  some  drive/controller combinations do not
              tolerate the increased I/O latencies possible when this  feature
              is enabled, resulting in massive filesystem corruption.  In par-
              ticular, CMD-640B and RZ1000 (E)IDE interfaces can be unreliable
              (due  to  a  hardware flaw) when this option is used with kernel
              versions earlier than 2.0.13.  Disabling the IDE  prefetch  fea-
              ture  of these interfaces (usually a BIOS/CMOS setting) provides
              a safe fix for the problem for use with earlier kernels.

Nota le partole "caution" e "massive filesystem corruption". Potrebbero non riguardarti ma il fatto che sei fortunato non è un merito ;)


PS: un'altra cosa, postate l'output di 'free', magari appena bootato il sistema e dopo che è un po' che lo avete usato.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Mar 26, 2003 11:02 pm    Post subject: Re: Gentoo swappa moltissimo ! Reply with quote

silverfix wrote:
Salve, come da subject il problema è che Gentoo swappa davvero troppo.

Vi do un po di dati:

Athlon XP 1700+ 128MB DDR
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"

mi va davvero lento, puntatore a scatti.. phoenix che si addormenta.. openoffice che non si sveglia proprio... poi swappa davvero tanto, cavolo debian molte volte rimane a 0 la swap, con gentoo..... quasi la impiena..

vi posto i paste di "free":

debian:
Mem: 126876 111384 15492 0 10716 52652
-/+ buffers/cache: 48016 78860
Swap: 248996 0 248996

gentoo:
Mem: 126376 123440 2936 0 2664 76948
-/+ buffers/cache: 43828 82548
Swap: 248996 5460 243536

uso come kernel gentoo-sources-2.4.20-r1 ricompilato....

aiuto :(


Sei sicuro che è un problema dello swap? Secondo 'free' il tuo swap è occupato da 5Mb, non esattamente pieno di roba... Inoltre la differenza la fa la cache, se guardi la memoria occupata dalle apps è quasi la stessa.

Inoltre 2.4.20-r1 non è proprio il migliore tra i kernel...
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu Mar 27, 2003 6:36 am    Post subject: Reply with quote

Beh, bsolar ha ragione: gentoo e' la prima (per me) distribuzione che (esempio cretino) non fa crepare XMMS solo perche' sto lanciando mozilla mentre compilo un programma... e sto usando ESD! Non so se il motivo risiede nelle varie ottimizzazioni (chissa' com'e', ma credo pesantemente di si), comunque sta di fatto che XMMS non salta mai: e la penultima distro che avevo provato era penosa sotto questo punto di vista.

CMQ (e qui non sono d'accordo con bsolar) non userei free come comando per verificare: e' vero che 5 mb sono pochi ma e' gia' strano che ci siano. Pertanto, mi da tanto l'idea che ci sia qc che o rimane "appeso" oppure qc che non ci viene detto (del tipo, sapete, ricompilo casa appena si accende il notebook ;)). Tanto per capirci, il top postato da bld fa capire ampiamente che si il sistema sta swappando, ma date un'occhiata al load average per capire che 76 mb di swap su una macchina con 128 mb di ram con tutta quella roba aperta mi sembrano davvero pochini... sopratutto dopo lo stress che sta subendo! 8O

bsolar si e' dimenticato di dire una cosa: quelli di cui ti fidi, dovrebbero sapere un po' "meglio" quali parametri farti settare con hdparm... 8O

E cmq povero kernel 2.4.20, non lo trattate cosi' male... :P Da quello che ho capito, cmq, bsolar, tu tieni un 2.5 in produzione: notato problemi di sorta? Qualche incompatibilita'? Io volevo provarlo, ma mi sono sempre tirato indietro poiche' con il notebook ci faccio tutto e non potrei sopportare molti problemi... a causa di gawk ho passato due ore da incubo!!! :roll:
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Thu Mar 27, 2003 6:52 am    Post subject: Reply with quote

cerri wrote:
E cmq povero kernel 2.4.20, non lo trattate cosi' male... :P Da quello che ho capito, cmq, bsolar, tu tieni un 2.5 in produzione: notato problemi di sorta? Qualche incompatibilita'? Io volevo provarlo, ma mi sono sempre tirato indietro poiche' con il notebook ci faccio tutto e non potrei sopportare molti problemi... a causa di gawk ho passato due ore da incubo!!! :roll:

Non ritengo il 2.5 da produzione, anche se lo trovo molto stabile e affidabile (almeno sul mio sistema e su quelli in cui l'ho installato). Nota comunque che le mie obiezioni riguardano il gentoo-sources-2.4.20-r1, dato che per esperienza so i problemi che ha. Quando non c'era ancora l'-r2 (che risolve alcuni di questi bug) e l'affidabilità "garantita" non era un'optional, installavo il gentoo-sources-2.4.19 o un vanilla.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu Mar 27, 2003 7:05 am    Post subject: Reply with quote

Sorry dell'incomprensione... ho dato per scontato che parlassi di kernel "lisci" non "gentooati" ;).
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
bld
l33t
l33t


Joined: 26 Mar 2003
Posts: 759
Location: Outter Space

PostPosted: Thu Mar 27, 2003 1:28 pm    Post subject: per me ora funziona tutto a meraviglia, mai stato cosi legge Reply with quote

Salve! io , sto compilando (da 12 ore ) openoffice.. ho visto un .avi con mplayer
metre xmms "runnava" e con opera up. :)
Tutto questo dopo aver giocato un po con la DMA e con il comando
/sbin/dhparm -X69

e va tutto ok! :)
cmq attenzione che questo comando e' da usare con cautela per noi newbes :P
ciao ciao
_________________
A happy GNU/Linux user!!
Back to top
View user's profile Send private message
silverfix
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2003
Posts: 146
Location: born: Foggia - now: Bari

PostPosted: Thu Mar 27, 2003 5:41 pm    Post subject: Reply with quote

ma a me il dma è gia attivo :? !

proverò ad acquistare 512mb di ram 8)
_________________
SilverFix - a happy Linux user!
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Thu Mar 27, 2003 6:26 pm    Post subject: Reply with quote

Uhm. A quanto pare i vostri non sono problemi isolati. Per caso qualcuno usa i driver NVIDIA? Sembra che abbiano problemi di memory leak.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
silverfix
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2003
Posts: 146
Location: born: Foggia - now: Bari

PostPosted: Fri Mar 28, 2003 2:43 pm    Post subject: Reply with quote

si uso i driver NVIDIA versione 3.xx
_________________
SilverFix - a happy Linux user!
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Fri Mar 28, 2003 5:11 pm    Post subject: Reply with quote

bsolar wrote:
Uhm. A quanto pare i vostri non sono problemi isolati. Per caso qualcuno usa i driver NVIDIA? Sembra che abbiano problemi di memory leak.


Ah si questa non la sapevo.... puoi darmi qualche info in +? Magari passandomi il link dove lo hai letto?
Grazie
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Fri Mar 28, 2003 5:17 pm    Post subject: Reply with quote

Prova in questa thread, ma se cerchi ne trovi molte altre che potrebbero essere interessanti.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Dani Tsevech
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 284

PostPosted: Sat Mar 29, 2003 8:08 am    Post subject: Reply with quote

Io non ho nvidia e devo dire che come distribuzione mi pare molto leggera :wink:
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sat Mar 29, 2003 7:06 pm    Post subject: Reply with quote

io l'ho appena installata, uso i driver nVIDIA...
a dirla tutta non mi va tanto liscia come sento dire, ho un athlon tbird 1000 256MB RAM DDR
devo dire che e' + veloce di redhat, ma gia se faccio emerge, con XMMS che va, e UNA finestra di mozilla aperta, incomincio ad avere problemini di fluidita'... le finestre e il mouse quando si muovono vanno un po a scatti e XMMS ogni tanto fa delle interruzioni nella canzone... tipo pause di mezzo secondo

le mie impostazioni sono
-march=athon-tbird -mcpu=athlon-tbird -O3 -pipe
(ma, non ho capito a cosa serve pipe, l'ho trovata negli esempi e l'ho lasciata, il resto li conosco)

la partizione dove c'e' su gentoo e' reiserfs, che dovrebbe essere + performante di ext3, giuto? almeno sui file piccoli, quando a quanto ho letto.

e come faccio a vedere le altre cose?
ram occupata, spazio di swap occupato... eccetera?

ciao
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sat Mar 29, 2003 7:13 pm    Post subject: Reply with quote

trovata
free -m

ciauz
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
Dani Tsevech
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 284

PostPosted: Sat Mar 29, 2003 7:15 pm    Post subject: Reply with quote

Installa gtkrellm o gtkrelmm come cavolo si scrive non ricordo, lo avevo su debby :)
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sat Mar 29, 2003 7:17 pm    Post subject: Reply with quote

e a cosa serve?
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
Dani Tsevech
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 284

PostPosted: Sat Mar 29, 2003 7:30 pm    Post subject: Reply with quote

Si fa due conti delle risorse occupate in tempo reale :wink:
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Sat Mar 29, 2003 7:35 pm    Post subject: Reply with quote

Dani Tsevech wrote:
Si fa due conti delle risorse occupate in tempo reale :wink:

E a molto altro...
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sat Mar 29, 2003 7:39 pm    Post subject: Reply with quote

si, l'ho trovato su google, adesso lo sto scaricando...

cmq, nn ho detto che ho il kernel 2.4.20 di gentoo, e' un problema il fatto che non sia quello normale?

grassie
ciao
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
Dani Tsevech
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 284

PostPosted: Sat Mar 29, 2003 8:38 pm    Post subject: Reply with quote

bsolar wrote:
Dani Tsevech wrote:
Si fa due conti delle risorse occupate in tempo reale :wink:

E a molto altro...

Già, a momenti fa pure il caffè e ti augura il buon giorno 8O
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sat Mar 29, 2003 8:59 pm    Post subject: Reply with quote

ok, gkrellm o quello che e' installato e operativo.
Un problemino: i caratteri sono troppo piccoli e nn leggo una mazza.

Comunque, memoria:
RAM: 250M (perche' non ne neve 256??) di cui 146M Liberi
SWAP: 486M di cui 480M liberi

carico cpu medio attorno al 10%
con i seguenti programmi attivi:
mozilla
gkrellm
licq
kmail
konsole
downloading in corso di quake3 (non sto compilando)

tra poco vi dico come va quando compila... mi sa che sara' un disastro!

sta di fatto che nn ho ancora capito perche' cavolo va cosi' lento...
ottimizzato a livello 3! per il mio processore!

bho...
ciao
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Sat Mar 29, 2003 9:20 pm    Post subject: Reply with quote

akiross wrote:
ok, gkrellm o quello che e' installato e operativo.
Un problemino: i caratteri sono troppo piccoli e nn leggo una mazza.

Nel menu di configurazione sezione Themes credo, li puoi cambiare.

Quote:
Comunque, memoria:
RAM: 250M (perche' non ne neve 256??) di cui 146M Liberi
SWAP: 486M di cui 480M liberi

Perché usi già lo swap? Non credo sia normale, non con 146M liberi! Guarda:
Code:
# free -m
             total       used       free     shared    buffers     cached
Mem:           503        493          9          0        105        197
-/+ buffers/cache:        189        313
Swap:          486          0        486


Ho 9M liberi, e non usa lo swap! Il sistema fila liscio come l'olio... e continua a farlo se apro un pacco di programmi, sempicemente si rimangia cache per fare spazio alle applicazioni.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum