Problemas com desempenho de leitura do disco em buffer

2

Eu tenho duas caixas de linux idênticas (rodando o Ubuntu 13.4) com hardware idêntico incluindo um disco rígido WDC WD20EARS. Percebi que meu sistema principal se tornou lento e realizou vários testes em HD. A SMART não pareceu suspeita e deu resultados quase idênticos nas duas máquinas.

Existe um teste em que vejo uma grande diferença, e este é o teste de velocidade HD do hdparm. Na máquina problemática, recebo

> sudo hdparm -Tt /dev/sda 
/dev/sda:
Timing cached reads:   24876 MB in  2.00 seconds = 12450.96 MB/sec
Timing buffered disk reads:  26 MB in  3.18 seconds =   8.18 MB/sec

enquanto na outra máquina (idêntica) eu recebo

> sudo hdparm -Tt /dev/sda 
/dev/sda:
Timing cached reads:   29000 MB in  2.00 seconds = 14515.76 MB/sec
Timing buffered disk reads: 348 MB in  3.01 seconds = 115.56 MB/sec

Eu testei isso várias vezes em máquinas inativas, mas a grande diferença em 'leituras de disco em buffer' persiste.

Alguma ideia do que pode estar causando isso e o que pode ser feito a respeito? Eu também dei uma olhada na saída diagnóstica do hdparm, mas não obtive nenhuma pista disso, porque ambas as máquinas produziram uma saída idêntica. As máquinas têm cerca de 1 ano e têm 16GB de memória.

qualquer sugestão seria apreciada - Muito obrigado antecipadamente

    
por user900889 11.06.2013 / 23:49

1 resposta

1

Na minha opinião, se você testar em uma máquina ociosa, o resultado é confiável. Eu usei este comando na minha estação de trabalho e funciona razoavelmente. Eu suspeito que o seu disco rígido / conexões tenha alguns problemas.

De acordo com o manual de hdparm :

    -t     Perform  timings of device reads for benchmark and comparison purposes.  For meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no other active
          processes) with at least a couple of megabytes of free memory.  This displays the speed of reading through the buffer cache to the disk without any prior caching of data.  This  measurement
          is  an  indication of how fast the drive can sustain sequential data reads under Linux, without any filesystem overhead.  To ensure accurate measurements, the buffer cache is flushed during
          the processing of -t using the BLKFLSBUF ioctl.

   -T     Perform timings of cache reads for benchmark and comparison purposes.  For meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no  other  active
          processes) with at least a couple of megabytes of free memory.  This displays the speed of reading directly from the Linux buffer cache without disk access.  This measurement is essentially
          an indication of the throughput of the processor, cache, and memory of the system under test.
    
por 07.06.2017 / 06:11