ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sviatoslav Sviridov <svd@lintec.minsk.by>
To: devel@altlinux.ru
Subject: Re: [devel] I: updated package - apt-0.5
Date: Mon, 18 Nov 2002 01:15:24 +0200
Message-ID: <20021118011524.5c3eb321.svd@lintec.minsk.by> (raw)
In-Reply-To: <Pine.LNX.4.44L.0211171320190.2546-100000@arrakis.zephyrous>

On Sun, 17 Nov 2002 13:26:54 +0300 (MSK)
Ivan Zakharyaschev <imz@altlinux.ru> wrote:

> 	Hello!
> 
> On Sun, 17 Nov 2002, Sviatoslav Sviridov wrote:
> 
> > > > Скрипт genbasedir переписан по примеру из apt-0.3.19cnc55-alt9.
> > >
> > > А кешировать он уже научился?
> >
> > А что именно кешировать? Имеется ввиду SCRIDX? То, что было указано в
> > apt-0.2.19 как:
> > - fixed broken logic of previous cleanups: SRCIDX data interchange
> > between
> >   gen{pkg,src}list;
> > ?
> 
> По-моему, другое: там вроде появилась "feature", такая, что
> gen{pkg,src}list отказываются кешировать результаты своей работы, если
> только запущены не от root -- из-за этого при последующих запусках они
> работают так же долго, как и при первом.
> 
> Думаю, что проверка на root не нужна, достаточно обычных file access
> permissions. Можно использовать и не общее место для кеширования (если
> оно не доступно), а личное в ~/. Но где это исправлять, я пока не знаю,
> видел что-то на эту тему в списке apt-rpm, оттуда моя догадка о причине
> медленной работы.

Кажется, имеется ввиду кеширование мд5 сумм для файлов (tools/cached_md5.cc).
В обоих аптах сейчас используется одна и та же логика: производится попытка
открыть закешированные результаты в /var/cache/apt/gen{pkg,src}list/. Если 
открыть не удалось - ничего страшного.
Судя по всему - кеширование должно сейчас работать. Рутом запускать не
обязательно, достаточно иметь право читать/писать кеши (группа rpm).
Наверняка сказать сейчас не могу, завтра на работе проверю.

-- 
Sviatoslav Sviridov
[mailto:svd@lintec.minsk.by] [ICQ#10845380] [Lintec Project] [MLUG]
--
> There is an easy way for you, or even better, Linus to stop these
> discussions: Just say, in unambigous words, what kind of patch you would
> accept, if any. 

.procmailrc one would do nicely.

	- Al Viro on linux-kernel


  reply	other threads:[~2002-11-17 23:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-16 17:18 Sviatoslav Sviridov/Lintec Project
2002-11-16 18:49 ` Dmitry V. Levin
2002-11-16 23:44   ` Sviatoslav Sviridov
2002-11-17 10:26     ` Ivan Zakharyaschev
2002-11-17 23:15       ` Sviatoslav Sviridov [this message]
2002-11-18  9:48         ` Aleksandr Blokhin
2002-11-18  9:51           ` Sviatoslav Sviridov/Lintec Project
2002-11-18 10:36             ` Aleksandr Blokhin
2002-11-19 16:25               ` Ivan Zakharyaschev

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=20021118011524.5c3eb321.svd@lintec.minsk.by \
    --to=svd@lintec.minsk.by \
    --cc=devel@altlinux.ru \
    /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