Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HW] Scrittura su disco, problemi
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Sat Jul 17, 2004 6:22 pm    Post subject: [HW] Scrittura su disco, problemi Reply with quote

Ciao, ho un problema con Gentoo. Ogni volta che deve scrivere su disco (al lancio di applicazione, al caricamento di una libreria grafica, al salvataggio di un file, all'aggiornameto del portage tramie sync) il sistema diventa di colpo instabile, il mouse si muove a scatti e in generale noto un incredibile rallentamento generale che addirittura si ripercuote sull'orologio di sistema, bloccandolo.

Ho fatto un test, ed eseguendo un semplice

Code:

cat /dev/zero /home/maiosyet/test


Il sistema nel giro di pochi secondi si blocca irrimediabilmente...

Cosa posso fare?

Grazie :)
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sat Jul 17, 2004 6:27 pm    Post subject: Re: [HW] Scrittura su disco, problemi Reply with quote

maiosyet wrote:
Ciao, ho un problema con Gentoo. Ogni volta che deve scrivere su disco (al lancio di applicazione, al caricamento di una libreria grafica, al salvataggio di un file, all'aggiornameto del portage tramie sync) il sistema diventa di colpo instabile
[CUT]

Cosa posso fare?

Grazie :)


Prova a rieseguire il comando precedente e a postare le ultime 20 righe di /var/log/messages.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Sat Jul 17, 2004 7:25 pm    Post subject: Reply with quote

Precisazione, il comando era

Code:

cat /dev/zero >> /home/maiosyet/test


Senno' ovviamente non funziona :wink:

Il file messages e' aggiornato al 12 luglio... 8O
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sat Jul 17, 2004 7:31 pm    Post subject: Reply with quote

maiosyet wrote:
Precisazione, il comando era

Code:

cat /dev/zero >> /home/maiosyet/test


Senno' ovviamente non funziona :wink:

Il file messages e' aggiornato al 12 luglio... 8O


Puoi provare a fare boot con il livecd e provare a lanciare:

Code:

badblock /dev/hdX

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sat Jul 17, 2004 8:07 pm    Post subject: Reply with quote

gutter wrote:
Puoi provare a fare boot con il livecd e provare a lanciare:


Magari spiegagli che quello che gli suggerisci é un controllo della superficie del disco alla ricerca di eventuali settori danneggiati :-P
_________________
Ciao da me!
Back to top
View user's profile Send private message
HexDEF6
Guru
Guru


Joined: 26 May 2003
Posts: 451
Location: Trento

PostPosted: Sat Jul 17, 2004 8:10 pm    Post subject: Reply with quote

potrebbero essere le impostazioni di hdparm troppo spinte...
posta il tuo /etc/conf.d/hdparm

Ciao
_________________
Fa quel che te faresi!
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sat Jul 17, 2004 8:16 pm    Post subject: Reply with quote

randomaze wrote:

Magari spiegagli che quello che gli suggerisci é un controllo della superficie del disco alla ricerca di eventuali settori danneggiati :-P


Hai ragione, la prossima volta cercherò di essere un poco più dettagliato :)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Wed Aug 18, 2004 2:49 pm    Post subject: Reply with quote

Scusate tantissimo se ho mollato tutto cosi' alla spicciola, ma le vacanze sono state anticipate di colpo e il computer l'ho dovuto lasciare a casa 8)

Dunque, per varie vicende sono stato costretto a formattare tutto, quindi mi preparo a reinstallare :roll:

Adesso se semplicemente mi limito a ricreare le partizioni con fdisk e a ricreare i filesystem, rischio d imbattermi ancora nel problema? Il disco e' stato formattato parecchie volte in effetti, con molti run di fsck eccetera, e potrebbe essere un po' "sporco"...

Cosa mi conviene fare? Una formattazione di basso livello (!? vado per sentito dire, non saprei come eseguirla all'atto pratico), uso comunque badblock o cosa?

Grazie :wink:
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu Aug 19, 2004 9:51 am    Post subject: Reply with quote

maiosyet wrote:
uso comunque badblock o cosa?


Io suggerirei di si.
_________________
Ciao da me!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31463
Location: here

PostPosted: Thu Aug 19, 2004 12:31 pm    Post subject: Reply with quote

Hai attivato il dma con hdparm?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Thu Aug 19, 2004 12:54 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Hai attivato il dma con hdparm?


No, e sinceramente non so cosa sia hdparm se non per sentito dire, mi sto cercando qualche informazione su internet :wink:

Comunque, prima di usarlo devo aspettare di completare tutta l'installazione?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31463
Location: here

PostPosted: Thu Aug 19, 2004 12:56 pm    Post subject: Reply with quote

maiosyet wrote:
Comunque, prima di usarlo devo aspettare di completare tutta l'installazione?

No potevi gia' attivarlo durante l'installazione comunque fa neinte se non l'hai fatto. Finito tutto prova a dare un hdparm /dev/hdX e postare l'output
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Thu Aug 19, 2004 1:17 pm    Post subject: Reply with quote

Sto cominciando l'installazione ora, sono dal livecd. Ho letto sull'handbook la parte relativa a hdparm che mi era sfuggita...
Il dma era attivato, ma non lo erano tutte le altre opzioni che ho attivato, come da guida, con hdparm -d1 -A1 -m16 -u1 -a64 /dev/hda. Ora creo partizioni e filesystem, uso badblocks e comincio a installare.

Spero di non aver fatto casino ;)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31463
Location: here

PostPosted: Thu Aug 19, 2004 1:24 pm    Post subject: Reply with quote

Attenzione che se nel kernel non attivi il chipset giusto il dma non si attiva
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
berus
Guru
Guru


Joined: 28 Dec 2003
Posts: 347
Location: Italy

PostPosted: Thu Aug 19, 2004 3:22 pm    Post subject: Reply with quote

Ciao. In questi giorni anche io ho molti problemi di lentezza e instabilità sul protatile. L'altro ieri durante l'update world l'hd ha iniziato a fare strani rumori che si sono verificati fino a quando non l'ho spento. In questi giorni qualche grattatina l'hd la da ma non più come l'altro giorno, però resta lento (a volte). Prima durante l'emerge potevo fare qualsiasi cosa adesso invece mi blocca Mozilla e lo Zend Studio (applicazioni sempre aperte) comsì come si blocca una banalissima shell..
Risultato di hdparm /dev/hda:
Code:
/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 78140160, start = 0

e di top:
Code:
top - 17:25:11 up  3:50,  1 user,  load average: 0.39, 0.64, 1.35
Tasks: 116 total,   4 running, 112 sleeping,   0 stopped,   0 zombie
Cpu(s):  6.4% us,  2.7% sy,  0.0% ni, 91.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    255580k total,   252736k used,     2844k free,    64960k buffers
Swap:   506008k total,   118276k used,   387732k free,    62884k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
 7966 marco     16   0 84156  45m  34m R  3.3 18.0   4:23.86 mozilla-bin       
 7559 root      15   0 81736  10m  51m S  3.0  4.2   2:11.76 X                 
 7618 marco     16   0 16536 5656  12m S  2.3  2.2   4:28.36 xfce4-panel       
    1 root      16   0  1308  436 1160 S  0.0  0.2   0:01.56 init             
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.01 ksoftirqd/0       
    3 root       5 -10     0    0    0 S  0.0  0.0   0:00.05 events/0         
    4 root       5 -10     0    0    0 S  0.0  0.0   0:00.00 khelper           
    5 root       5 -10     0    0    0 S  0.0  0.0   0:00.91 kacpid           
   26 root       5 -10     0    0    0 S  0.0  0.0   0:01.52 kblockd/0         
   41 root       9 -10     0    0    0 S  0.0  0.0   0:00.00 aio/0             
   40 root      15   0     0    0    0 S  0.0  0.0   0:02.47 kswapd0           
   42 root      25   0     0    0    0 S  0.0  0.0   0:00.00 jfsIO             
   43 root      25   0     0    0    0 S  0.0  0.0   0:00.00 jfsCommit         
   44 root      25   0     0    0    0 S  0.0  0.0   0:00.00 jfsSync     
[...]

Secondo voi cosa può essere? L'hd che vuole abbandonarmi? Grazie
(Ho 256 Mb di RAM.. con le applicazioni citate sopra sono sempre a sui 190 Mb utilizzati e dopo un po' che lo Zend è aperto la swap arriva a 100 Mb.. può essere lo stesso problema?)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31463
Location: here

PostPosted: Thu Aug 19, 2004 3:40 pm    Post subject: Reply with quote

Non e' mai bello quando un hd iniza fare rumori io un backup dei dati importanti lo farei
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
berus
Guru
Guru


Joined: 28 Dec 2003
Posts: 347
Location: Italy

PostPosted: Thu Aug 19, 2004 6:44 pm    Post subject: Reply with quote

Il backup l'ho fatto.. ma devo lavorarci sopra (in questo periodo piu' che mai visto che devo preparare parecchie cose per settembre :cry: )
Ho fatto un remerge di Mozilla perchè oggi l'ho aggiornato e non partiva più.. I rumori non li fa più ma è lentissimo ad aprire le applicazioni!

Allego un'altro top perchè vorrei sapere se è logico che ci siano diversi tasks aperti della stessa applicazione (cambia solo il pid):
Code:
top - 20:48:20 up 22 min,  1 user,  load average: 0.44, 0.64, 0.67
Tasks: 106 total,   1 running, 105 sleeping,   0 stopped,   0 zombie
Cpu(s):  4.0% us,  2.3% sy,  0.0% ni, 93.6% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    255580k total,   253364k used,     2216k free,    11708k buffers
Swap:   506008k total,        0k used,   506008k free,    93728k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                       
 7690 marco     15   0 70864  44m  34m S  2.7 17.8   0:51.67 mozilla-bin                                   
 7584 root      15   0 74756  26m  51m S  1.3 10.7   0:30.51 X                                             
 7643 marco     16   0 16248  10m  11m S  1.3  4.2   0:18.37 xfce4-panel                                   
 7645 marco     15   0  3604 1748 3252 S  0.3  0.7   0:00.19 aterm                                         
 7703 root      17   0  1920 1040 1708 R  0.3  0.4   0:01.75 top                                           
    1 root      16   0  1308  480 1160 S  0.0  0.2   0:01.52 init                                         
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0                                   
    3 root       5 -10     0    0    0 S  0.0  0.0   0:00.03 events/0                                     
    4 root      10 -10     0    0    0 S  0.0  0.0   0:00.00 khelper                                       
    5 root       5 -10     0    0    0 S  0.0  0.0   0:00.07 kacpid                                       
   26 root       5 -10     0    0    0 S  0.0  0.0   0:00.03 kblockd/0                                     
   38 root      15   0     0    0    0 S  0.0  0.0   0:00.00 pdflush                                       
   39 root      15   0     0    0    0 S  0.0  0.0   0:00.03 pdflush                                       
   41 root       9 -10     0    0    0 S  0.0  0.0   0:00.00 aio/0                                         
   40 root      15   0     0    0    0 S  0.0  0.0   0:00.01 kswapd0                                       
   42 root      25   0     0    0    0 S  0.0  0.0   0:00.00 jfsIO                                         
   43 root      25   0     0    0    0 S  0.0  0.0   0:00.00 jfsCommit                                     
   44 root      25   0     0    0    0 S  0.0  0.0   0:00.00 jfsSync                                       
   45 root       9 -10     0    0    0 S  0.0  0.0   0:00.00 xfslogd/0                                     
   46 root       9 -10     0    0    0 S  0.0  0.0   0:00.00 xfsdatad/0                                   
   47 root      15   0     0    0    0 S  0.0  0.0   0:00.00 xfsbufd                                       
   50 root      25   0     0    0    0 S  0.0  0.0   0:00.00 kseriod                                       
  169 root      16   0     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0                                     
  175 root      15   0     0    0    0 S  0.0  0.0   0:00.00 pccardd                                       
  177 root      15   0     0    0    0 S  0.0  0.0   0:00.00 pccardd                                       
  179 root       5 -10     0    0    0 S  0.0  0.0   0:00.00 reiserfs/0                                   
  402 root      21   0  1664  900 1352 S  0.0  0.4   0:00.04 devfsd                                       
 4769 root      15   0     0    0    0 S  0.0  0.0   0:00.05 khubd                                         
 5962 root      16   0  1480  596 1192 S  0.0  0.2   0:00.02 syslogd                                       
 5992 root      16   0  1436  456 1152 S  0.0  0.2   0:00.00 klogd                                         
 6698 root      15   0     0    0    0 S  0.0  0.0   0:00.00 khpsbpkt                                     
 6712 root      16   0     0    0    0 S  0.0  0.0   0:00.00 knodemgrd_0                                   
 6848 root      16   0  2200 1132 2012 S  0.0  0.4   0:00.00 mysqld_safe                                   
 6944 mysql     18   0 37724 5252 6168 S  0.0  2.1   0:00.02 mysqld                                       
 6945 mysql     16   0 37724 5252 6168 S  0.0  2.1   0:00.00 mysqld                                       
 6946 mysql     21   0 37724 5252 6168 S  0.0  2.1   0:00.00 mysqld                                       
 6947 mysql     20   0 37724 5252 6168 S  0.0  2.1   0:00.00 mysqld                                       
 6948 root      16   0 19376 7804  16m S  0.0  3.1   0:00.47 apache2                                       
 6999 apache    19   0 16632 5780  14m S  0.0  2.3   0:00.00 apache2                                       
 7062 root      16   0  4764 1760 2996 S  0.0  0.7   0:00.01 cupsd                                         
 7257 root      16   0  1612  592 1320 S  0.0  0.2   0:00.00 crond                                         
 7311 apache    18   0 19376 7824  16m S  0.0  3.1   0:00.00 apache2                                       
 7312 apache    18   0 19376 7820  16m S  0.0  3.1   0:00.00 apache2                                       
 7313 apache    18   0 19376 7820  16m S  0.0  3.1   0:00.00 apache2                                       
 7314 apache    18   0 19376 7820  16m S  0.0  3.1   0:00.00 apache2                                       
 7315 apache    18   0 19376 7820  16m S  0.0  3.1   0:00.00 apache2                                       
 7316 root      18   0  6848 2272 5420 S  0.0  0.9   0:00.00 smbd                                         
 7319 root      16   0  3588 1352 2592 S  0.0  0.5   0:00.00 nmbd                                         
 7377 root      18   0  1952  868 1624 S  0.0  0.3   0:00.00 xinetd                                       
 7439 root      17   0  2116 1196 1692 S  0.0  0.5   0:00.07 login                                         
 7441 root      16   0  1348  568 1180 S  0.0  0.2   0:00.00 agetty                                       
 7442 root      16   0  1348  568 1180 S  0.0  0.2   0:00.00 agetty                                       
 7443 root      16   0  1348  568 1180 S  0.0  0.2   0:00.00 agetty                                       
 7444 root      16   0  1348  568 1180 S  0.0  0.2   0:00.00 agetty                                       
 7445 root      16   0  1348  568 1180 S  0.0  0.2   0:00.00 agetty                                       
 7567 marco     16   0  2860 1680 2012 S  0.0  0.7   0:00.11 bash                                         
 7583 marco     18   0  2756  756 2592 S  0.0  0.3   0:00.01 xinit                                         
 7628 marco     15   0  2272  944 1836 S  0.0  0.4   0:00.00 sh                                           
 7631 marco     18   0  2272  924 1836 S  0.0  0.4   0:00.00 sh                                           
 7633 marco     15   0  3756 1936 3244 S  0.0  0.8   0:00.21 xscreensaver                                 
 7636 marco     15   0 11920 4812  10m S  0.0  1.9   0:00.35 xfce-mcs-manage                               
 7638 marco     16   0 10044 5356 9076 S  0.0  2.1   0:00.29 xfwm4   [...]       
Back to top
View user's profile Send private message
OKreZ
Guru
Guru


Joined: 27 Apr 2003
Posts: 372
Location: Padova (IT)

PostPosted: Thu Aug 19, 2004 7:51 pm    Post subject: Reply with quote

berus wrote:
[...] Secondo voi cosa può essere? L'hd che vuole abbandonarmi?

Potresti provare con S.M.A.R.T. [thread]
_________________
(HCS)OKreZ
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Thu Aug 19, 2004 9:11 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Attenzione che se nel kernel non attivi il chipset giusto il dma non si attiva

Ehm, per sicurezza, qual'e' il chipset giusto?

Comunque e' successa una cosa strana: finita la configurazione del kernel, ho avuto questo warning:

make[1]: warning: Clock skeed detected. Your build may be incomplete.

Sapete cosa significa?!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31463
Location: here

PostPosted: Thu Aug 19, 2004 9:32 pm    Post subject: Reply with quote

maiosyet wrote:
Ehm, per sicurezza, qual'e' il chipset giusto?

Posta l'output di lspci
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
berus
Guru
Guru


Joined: 28 Dec 2003
Posts: 347
Location: Italy

PostPosted: Thu Aug 19, 2004 9:35 pm    Post subject: Reply with quote

scusate se mi intrometto..
Ho anche aggiornato il kernel..
Sto facendo il test offline di smart.
Con il 2.6.3/7/8 tutto il sistema è lentissimo dal boot allo shutdown :cry:
Back to top
View user's profile Send private message
berus
Guru
Guru


Joined: 28 Dec 2003
Posts: 347
Location: Italy

PostPosted: Thu Aug 19, 2004 10:42 pm    Post subject: Reply with quote

news.. con
Code:
smartctl -t long /dev/hda
ottengo questo
Code:
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA                            _of_first_error
# 1  Extended offline    Completed: servo/seek failure 80%      2578         -

C'è un "decoder"? :?
Back to top
View user's profile Send private message
RedNeckCracker
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2003
Posts: 146
Location: Italy

PostPosted: Thu Aug 19, 2004 11:49 pm    Post subject: Reply with quote

Putroppo significa che hai grossi problemi hardware all'hard disk
Back to top
View user's profile Send private message
berus
Guru
Guru


Joined: 28 Dec 2003
Posts: 347
Location: Italy

PostPosted: Fri Aug 20, 2004 6:39 am    Post subject: Reply with quote

E' un bel problema.. Quel "Remaining" all'80% siginfica che fra poco non partirà nemmeno più?
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
Page 1 of 1

 
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