ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Chikunov <vt@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] zfs Re: архивирование репозиториев
Date: Sat, 29 Aug 2020 23:38:01 +0300
Message-ID: <20200829203801.jjkoy4k63qezuhdv@altlinux.org> (raw)
In-Reply-To: <43e355d6-3e9b-5c4a-af9e-847180db09fc@basealt.ru>

On Sat, Aug 29, 2020 at 11:11:56PM +0300, Anton Farygin wrote:
> On 29.08.2020 22:28, Vitaly Chikunov wrote:
> > On Sat, Aug 29, 2020 at 07:58:55AM +0300, Anton Farygin wrote:
> > > с zfs вообще проблем нет.
> > ZFS сейчас используется для локального бакапа и бакапа архива в
> > московском офисе. Единственная проблема, что даже с большим кол-вом
> > памяти и cache и jil на быстром SSD, не удалось получить большую
> > скорость работы.
> > 
> А как оценивается скорость работы ? Может быть оно у нас тоже тормозит,
> просто я этого не замечаю.

При копировании задания сначала скриптом делается хардлинкование с уже
существующими локально файлами, а потом rsync всего нового поверх этого.
Так вот, это иногда может занимать до 5 минут (для репозитория одного
задания). Пример из лога:

  2020-08-07 19:34:18 :: Fetch task 255891 (p8)
  2020-08-07 19:34:18 :: Sync /archive/tasks/done/_249/255891
  = pre-linking... 0 links created (in 0.0 seconds)
  + exec rsync -aSHz --delete --no-inc-recursive archive:/archive/tasks/done/_249/255891/ /home/archive/tasks/done/_249/255891/
    rsynced in 0.5 seconds
  2020-08-07 19:34:18 :: Sync /archive//repo/p8/task/_249/255891
  = pre-linking... 118812 links created (in 234.0 seconds)
  + exec rsync -aSHz --delete --no-inc-recursive archive:/archive/repo/p8/task/_249/255891/ /home/archive/repo/p8/task/_249/255891/
    rsynced in 26.5 seconds
  2020-08-07 19:38:39 :: Fetch task 255900 (p9) [66%]

В среднем конечно бывает быстрее:

  = pre-linking... 200614 links created (in 29.6 seconds)
  = pre-linking... 190803 links created (in 36.0 seconds)
  = pre-linking... 200533 links created (in 32.2 seconds)
  = pre-linking... 118858 links created (in 241.8 seconds)
  = pre-linking... 200511 links created (in 32.1 seconds)
  = pre-linking... 190932 links created (in 28.6 seconds)
  = pre-linking... 200526 links created (in 34.9 seconds)
  = pre-linking... 118816 links created (in 18.2 seconds)
  = pre-linking... 190883 links created (in 47.6 seconds)
  = pre-linking... 191003 links created (in 27.2 seconds)
  = pre-linking... 190984 links created (in 27.2 seconds)
  = pre-linking... 190988 links created (in 29.2 seconds)
  = pre-linking... 190993 links created (in 28.5 seconds)
  = pre-linking... 190990 links created (in 32.0 seconds)
  = pre-linking... 190799 links created (in 57.2 seconds)
  = pre-linking... 190946 links created (in 42.2 seconds)
  = pre-linking... 190885 links created (in 29.1 seconds)
  = pre-linking... 190913 links created (in 27.8 seconds)
  = pre-linking... 190900 links created (in 35.4 seconds)
  = pre-linking... 190989 links created (in 27.3 seconds)
  = pre-linking... 190907 links created (in 31.6 seconds)
  = pre-linking... 190980 links created (in 32.8 seconds)

Даже пол минуты-минута для 200К файлов это как-то много. Хотелось бы в
10 раз быстрее. (В это время включено использование ssh find для
определения номеров inode на удаленной стороне и локально их
преобразование в имена файлов через rocksdb. Как я помню, при
тестировании в основном время занимает 2 вызова stat() на zfs).






  reply	other threads:[~2020-08-29 20:38 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27  2:29 [devel] incoming/girar: проблема производительности Igor Vlasenko
2020-08-27  7:27 ` Anton Farygin
2020-08-27 11:54   ` Andrey Savchenko
2020-08-27 11:59     ` Anton Farygin
2020-08-27 12:09       ` [devel] архивирование репозиториев Dmitry V. Levin
2020-08-27 12:14         ` Anton Farygin
2020-08-27 12:20           ` Dmitry V. Levin
2020-08-27 12:32             ` Anton Farygin
2020-08-27 15:59               ` Dmitry V. Levin
2020-08-27 18:26                 ` Anton Farygin
2020-08-27 20:29                   ` Dmitry V. Levin
2020-08-28  7:06                     ` Alexey V. Vissarionov
2020-08-28  7:09                     ` Anton Farygin
2020-08-27 17:31               ` Michael Shigorin
2020-08-27 17:51                 ` Andrey Savchenko
2020-08-27 20:33                   ` Dmitry V. Levin
2020-08-28  1:28               ` Dmitry V. Levin
2020-08-28  6:29                 ` Andrey Savchenko
2020-08-29  2:04                   ` Leonid Krivoshein
2020-08-28  0:58             ` Leonid Krivoshein
2020-08-28  1:11               ` Dmitry V. Levin
2020-08-29  2:16                 ` Leonid Krivoshein
2020-08-28  5:03               ` Anton Farygin
2020-08-29  2:22                 ` Leonid Krivoshein
2020-08-29  4:58                   ` Anton Farygin
2020-08-29 14:18                     ` Leonid Krivoshein
2020-08-29 16:23                       ` Anton Farygin
2020-08-29 19:28                     ` [devel] zfs " Vitaly Chikunov
2020-08-29 20:11                       ` Anton Farygin
2020-08-29 20:38                         ` Vitaly Chikunov [this message]
2020-08-29 21:12                           ` Anton Farygin
2020-08-30  4:28                             ` Alexey V. Vissarionov
2020-08-27 12:05   ` [devel] incoming/girar: проблема производительности Alexey V. Vissarionov
2020-08-28  9:25   ` Igor Vlasenko
2020-08-28  9:28     ` Anton V. Boyarshinov
2020-08-28  9:31       ` Igor Vlasenko
2020-08-28  9:34     ` Anton Farygin
2020-08-28  9:47       ` Igor Vlasenko
2020-08-27  9:17 ` Michael Shigorin
2020-08-28  0:23   ` [devel] mass rebuilds Dmitry V. Levin
2020-08-28  5:09     ` Anton Farygin
2020-08-28  6:25       ` Andrey Savchenko
2020-08-28  6:58         ` Anton Farygin
2020-08-28 16:46           ` Dmitry V. Levin
2020-08-28 20:23             ` Anton Farygin
2020-08-28 21:47               ` Dmitry V. Levin
2020-08-29  5:08                 ` Anton Farygin
2020-08-27  9:57 ` [devel] incoming/girar: проблема производительности Dmitry V. Levin
2020-08-28 18:47   ` Dmitry V. Levin
2020-08-27 11:35 ` [devel] License Tag Policy (Re: incoming/girar: проблема =?utf-8?b?INC/0YDQvtC40LfQstC+0LTQuNGC0LXQu9GM0L3QvtGB0YLQuC4=?=) Sergey Afonin
2020-08-27 23:01 ` [devel] unmaintained packages shall not belong to Sisyphus Dmitry V. Levin
2020-08-28  0:04     ` Dmitry V. Levin
2020-08-28  0:35         ` Dmitry V. Levin
2020-08-28  5:22   ` Anton Farygin
2020-08-28 16:02     ` Dmitry V. Levin
2020-08-28 16:30   ` Michael Shigorin
2020-08-28 16:33     ` Michael Shigorin
2020-08-28 16:43       ` Dmitry V. Levin
2020-08-28 19:52         ` Michael Shigorin
2020-08-28 20:04           ` Dmitry V. Levin
2020-08-28 20:34             ` Michael Shigorin
2020-08-28 20:19           ` Alexey Gladkov
2020-08-28 20:46             ` Michael Shigorin
2020-08-28 23:52               ` Alexey Gladkov
2020-08-31 10:14                 ` Konstantin Lepikhov
2020-08-31 18:09                   ` [devel] [JT] баланс/динамика: пакеты/майнтейнеры (was: unmaintained packages shall not belong to Sisyphus) Michael Shigorin
2020-08-31  7:53               ` [devel] suggested tags order Aleksei Nikiforov
2020-08-31 11:46                 ` Sergey V Turchin
2020-08-31 12:25                   ` Paul Wolneykien
2020-08-28 16:40 ` [devel] hasher ALT#36531 Dmitry V. Levin
2020-08-30  0:15   ` Igor Vlasenko
2020-08-28 17:55 ` [devel] automatic License Dmitry V. Levin
2020-08-30  8:14   ` Igor Vlasenko
2020-08-30 10:09     ` Alexey Gladkov
2020-08-30 12:44       ` Igor Vlasenko
2020-08-30 15:21         ` Alexey Gladkov
2020-08-30 15:36           ` Michael Shigorin
2020-08-30 15:44             ` Alexey Gladkov
2020-08-30 15:58           ` Andrey Savchenko
2020-08-30 16:40             ` Alexey Gladkov
2020-08-30 17:27               ` Andrey Savchenko
2020-08-30 18:15                 ` Alexey Gladkov
2020-08-30 18:47                   ` Michael Shigorin
2020-08-30 17:56       ` Igor Vlasenko
2020-08-28 18:26 ` [devel] will be fatal in Perl 5.30 Dmitry V. Levin
2020-08-28 19:46   ` Michael Shigorin
2020-08-28 19:58     ` Dmitry V. Levin
2020-08-28 20:19       ` Michael Shigorin
2020-08-28 22:11         ` Dmitry V. Levin
2020-08-28 22:13           ` Dmitry V. Levin
2020-08-30  0:58         ` Igor Vlasenko
2020-08-30  0:41   ` Igor Vlasenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200829203801.jjkoy4k63qezuhdv@altlinux.org \
    --to=vt@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git