LINUX.ORG.RU

Проверить производительность чтения с RAID0

 , , ,


0

1

Добрый день.
требуется проверить скорость чтения с ФС.
обращаю внимание, что не с раздела, а именно с ФС, т.к. сравниваются ФС, которые over raid.
собственно, желательно копирование каталога. в «null», как бы это лучше сделать?

★★★★★

Последнее исправление: darkenshvein (всего исправлений: 1)

time md5sum не подойдет? Правда придется делить мб на секунды, осилишь?

anonymous
()
Ответ на: комментарий от MikeWortin

уговорил!
как с помощью dd затестить каталог, каким tar'ом?)

darkenshvein ★★★★★
() автор топика
Ответ на: комментарий от anonymous

time md5sum usr
md5sum: usr: Это каталог

real 0m0,003s
user 0m0,000s
sys 0m0,002s

darkenshvein ★★★★★
() автор топика
Ответ на: комментарий от Radjah

С помощью dd надо блочное устройство читать

лолшто?

DESCRIPTION
       Copy a file, converting and formatting according to the operands.

novitchok ★★★★★
()
Ответ на: комментарий от kickass

сам-то пробовал?

time cp -rf /usr /dev/null
cp: невозможно перезаписать поверх файла '/dev/null', не являющегося каталогом, каталог '/usr'

real	0m0,005s
user	0m0,001s
sys	0m0,004s

novitchok ★★★★★
()
Ответ на: комментарий от novitchok

я не знаю, кеш может повлиять наверно. vm.dirty_bytes=1 vm.dirty_background_bytes=1

kickass
()
Ответ на: комментарий от novitchok
FIND(1)                                                                                     General Commands Manual                                                                                     FIND(1)

NAME
       find - search for files in a directory hierarchy

SYNOPSIS
       find [-H] [-L] [-P] [-D debugopts] [-Olevel] [starting-point...] [expression]

DESCRIPTION
       This  manual  page  documents the GNU version of find.  GNU find searches the directory tree rooted at each given starting-point by evaluating the given expression from left to right, according to the
       rules of precedence (see section OPERATORS), until the outcome is known (the left hand side is false for and operations, true for or), at which point find moves on to the next file name.  If no start‐
       ing-point is specified, `.' is assumed.

       If  you  are using find in an environment where security is important (for example if you are using it to search directories that are writable by other users), you should read the `Security Considera‐
       tions' chapter of the findutils documentation, which is called Finding Files and comes with findutils.   That document also includes a lot more detail and discussion than this manual page, so you  may
       find it a more useful source of information.
darkenshvein ★★★★★
() автор топика
Ответ на: комментарий от kickass

попробуй. только по моему это будет сильно некорректная для тестирования чушь.

darkenshvein ★★★★★
() автор топика
Ответ на: комментарий от darkenshvein

ну и зачем ты мне эту портянку тут положил? зачем? ты в своей задаче хочешь

проверить скорость чтения с ФС

причём сделать это оригинальным способом

копирование каталога. в «null»

упираясь при этом в

это каталог

чем тебе в этом случае find не угодил? чем?

sudo -s time find /usr -type f -exec cp {} /dev/null \; && sudo du -h /usr/|tail -n 1

real	10m57,252s
user	3m26,347s
sys	7m9,373s
11G	/usr/

что не так?

тебе всего-то надо было смотреть вот это:

 -exec command

    True if the executed command returns a zero value as exit status. The end of command must be punctuated by an escaped semicolon (;). A command argument {} is replaced by the current pathname. If the last argument to -exec is {} and you specify + rather than the semicolon (;), the command is invoked fewer times, with {} replaced by groups of pathnames. If any invocation of the command returns a non-zero value as exit status, find returns a non-zero exit status. 
и это:
-type c
              File is of type c:
              f      regular file

novitchok ★★★★★
()
Последнее исправление: novitchok (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.