Re: bind runs apt-cache during shutdown????

2010-10-24 Thread Goswin von Brederlow
Mike Bird mgb-deb...@yosemite.net writes:

 On Sat October 23 2010 18:20:11 Brian May wrote:
 On the other hand, so what if it calls apt-cache policy - does that
 matter? Maybe apt-cache policy is broken on Mike's system?

 It takes about fifteen seconds for apt-cache to run on a system
 that hasn't previously accessed those files.  That's a significant
 fraction of the overall reboot time.

Much longer when the cached files need to be rebuild and again much
longer with multiple architectures. Rebuilding the caches for an
apt-cache policy run on kfreebsd-amd64 (with kfreebsd-i386, amd64 and
i386 archs added) takes forever.

MfG
Goswin


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87iq0retgg@frosties.localdomain



Re: bind runs apt-cache during shutdown????

2010-10-24 Thread Adam Borowski
On Sat, Oct 23, 2010 at 07:32:55PM -0600, Bob Proulx wrote:
 P.S. On my 2004 1.8GHz Pentium M laptop:
 
   $ time lsb_release -is
   Debian
 
   real0m0.135s
   user0m0.116s
   sys 0m0.016s

[~]# time lsb_release -is
Debian

real0m9.525s
user0m6.216s
sys 0m0.652s
[~]# time lsb_release -is
Debian

real0m0.260s
user0m0.112s
sys 0m0.052s
[~]# echo 3 /proc/sys/vm/drop_caches
[~]# time lsb_release -is
Debian

real0m2.814s
user0m0.132s
sys 0m0.140s
[~]# apt-get update
...
[~]# echo 3 /proc/sys/vm/drop_caches
[~]# time lsb_release -is
Debian

real0m13.134s
user0m6.376s
sys 0m1.024s


It's both about filesystem cache and about apt's internal caches.  If you
run apt-cache as non-root, the latter won't get updated so the long delay
will happen every single time.

In other words, it's not something you want to call when not needed.

-- 
1KB // Microsoft corollary to Hanlon's razor:
//  Never attribute to stupidity what can be
//  adequately explained by malice.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101024212749.ga26...@angband.pl



Re: bind runs apt-cache during shutdown????

2010-10-23 Thread Julien Cristau
On Sat, Oct 23, 2010 at 05:46:38 -0700, Mike Bird wrote:

 Seen in Lenny.  Is it really necessary to run apt-cache in order
 to shut down BIND?
 
Is it really necessary to send your bug reports to debian-devel?

Cheers,
Julien


signature.asc
Description: Digital signature


Re: bind runs apt-cache during shutdown????

2010-10-23 Thread Mike Bird
On Sat October 23 2010 06:21:35 Julien Cristau wrote:
 On Sat, Oct 23, 2010 at 05:46:38 -0700, Mike Bird wrote:
  Seen in Lenny.  Is it really necessary to run apt-cache in order
  to shut down BIND?

 Is it really necessary to send your bug reports to debian-devel?

(1) It's a question, not a bug report.

(2) Please don't CC the sender unless requested to do so.

--Mike Bird


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201010230955.50616.mgb-deb...@yosemite.net



Re: bind runs apt-cache during shutdown????

2010-10-23 Thread Jordan Metzmeier
On 10/23/2010 11:55 AM, Mike Bird wrote:
 On Sat October 23 2010 06:21:35 Julien Cristau wrote:
 On Sat, Oct 23, 2010 at 05:46:38 -0700, Mike Bird wrote:
 Seen in Lenny.  Is it really necessary to run apt-cache in order
 to shut down BIND?

 Is it really necessary to send your bug reports to debian-devel?
 
 (1) It's a question, not a bug report.

Likely a question for the maintainer, not the entire dev community, in
which most have nothing to do with bind9. The bug report comment was
probably because your question looked an awful lot like a complaint.

Regards,
-- 
Jordan Metzmeier


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4cc3225e.6090...@gmail.com



Re: bind runs apt-cache during shutdown????

2010-10-23 Thread Mike Bird
On Sat October 23 2010 10:58:54 Jordan Metzmeier wrote:
 On 10/23/2010 11:55 AM, Mike Bird wrote:
  On Sat October 23 2010 06:21:35 Julien Cristau wrote:
  On Sat, Oct 23, 2010 at 05:46:38 -0700, Mike Bird wrote:
  Seen in Lenny.  Is it really necessary to run apt-cache in order
  to shut down BIND?
 
  Is it really necessary to send your bug reports to debian-devel?
 
  (1) It's a question, not a bug report.

 Likely a question for the maintainer, not the entire dev community, in
 which most have nothing to do with bind9. The bug report comment was
 probably because your question looked an awful lot like a complaint.

Maybe someone here would care to address the actual question?

A bug report may or may not be warranted further down the line,
but at this stage it's far from clear where the bug lies even
if it exists.

--Mike Bird


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201010231730.09809.mgb-deb...@yosemite.net



Re: bind runs apt-cache during shutdown????

2010-10-23 Thread Brian May
On 24 October 2010 11:30, Mike Bird mgb-deb...@yosemite.net wrote:
 Maybe someone here would care to address the actual question?

My /etc/init.d/bind9 has:

DISTRO=$(lsb_release -is 2/dev/null || echo Debian)

 lsb_release seems to call apt-cache policy.

On one hand, the value of $DISTRO doesn't seem to be used anywhere. So
I am not sure why this is needed.

On the other hand, so what if it calls apt-cache policy - does that
matter? Maybe apt-cache policy is broken on Mike's system?
-- 
Brian May br...@microcomaustralia.com.au


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktinabmkz6ewnvfjm1pmgcdateqp6jwuufq32n...@mail.gmail.com



Re: bind runs apt-cache during shutdown????

2010-10-23 Thread Bob Proulx
Mike Bird wrote:
 Seen in Lenny.  Is it really necessary to run apt-cache in order
 to shut down BIND?

The Lenny package's /etc/init.d/bind9 script calls 'lsb_release -is'
to determine the distribution and if the 'lsb-release' package is
installed then the lsb_release script calls 'apt-cache policy'.  The
result of which was not used.  I believe you could comment out that
line without any ill effects although I didn't test it.  Or
alternatively you could remove the 'lsb-release' package.

The current Sid version of bind9's /etc/init.d/bind9 script does not
call 'lsb_release' and therefore this issue seems to have been
addressed in the latest Squeeze.

Bob

P.S. On my 2004 1.8GHz Pentium M laptop:

  $ time lsb_release -is
  Debian

  real0m0.135s
  user0m0.116s
  sys 0m0.016s


signature.asc
Description: Digital signature


Re: bind runs apt-cache during shutdown????

2010-10-23 Thread Mike Bird
On Sat October 23 2010 18:20:11 Brian May wrote:
 On the other hand, so what if it calls apt-cache policy - does that
 matter? Maybe apt-cache policy is broken on Mike's system?

It takes about fifteen seconds for apt-cache to run on a system
that hasn't previously accessed those files.  That's a significant
fraction of the overall reboot time.

On Sat October 23 2010 18:32:55 Bob Proulx wrote:
 The current Sid version of bind9's /etc/init.d/bind9 script does not
 call 'lsb_release' and therefore this issue seems to have been
 addressed in the latest Squeeze.

In that case I won't press this question any further.

Thank you both.

--Mike Bird


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201010231911.46782.mgb-deb...@yosemite.net