Lentitud al copiar ficheros
#5
Yo esperaría obtener mejores resultados únicamente con caché *para lectura*, para escritura no sé si te va a merecer la pena, porque al final es añadir una capa más entre el origen de datos y el almacenamiento final. Sí es cierto que aparentemente parece ir más rápido cuando cacheas, pero quizá se deba en realidad a una copia asíncrona.

Igual ocurre cuando lanzas un test de acceso sobre un disco, mediante escritura directa o mediante datos cacheados.
No es exactamente lo mismo, pero en el manual de un comando Linux empleado para estos fines (hdparm) queda algo más claro:


Código:
      -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 measure‐
              ment  is  essentially  an indication of the throughput of the processor, cache, and memory of
              the system under test.

Adivina cuál de las dos medidas da valores más altos...

Código:
$ sudo hdparm -tT /dev/sda

/dev/sda:
Timing cached reads:   30508 MB in  2.00 seconds = 15279.26 MB/sec
Timing buffered disk reads: 1302 MB in  3.00 seconds = 433.82 MB/sec
TS-253A 2x4TB RAID1 8GB RAM
“La inteligencia es la habilidad de evitar hacer trabajo y conseguir que el trabajo se haga.” (Linus Torvalds)
  Responder


Mensajes en este tema
Lentitud al copiar ficheros - por evanfanel - 17-02-2023, 09:15 PM
RE: Lentitud al copiar ficheros - por yeraycito - 18-02-2023, 06:39 PM
RE: Lentitud al copiar ficheros - por adrolmar - 19-02-2023, 03:50 PM
RE: Lentitud al copiar ficheros - por evanfanel - 19-02-2023, 06:38 PM
RE: Lentitud al copiar ficheros - por adrolmar - 22-02-2023, 03:07 PM



Usuarios navegando en este tema: 1 invitado(s)