[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#197828: apt: uses all of cpu waiting for disk



Package: apt
Version: 0.5.4
Severity: normal
File: /usr/bin/apt-get

When I used xargs, apt pegged my CPU meter to the max when waiting for
the disk

# xargs <i apt-get  install 
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  icomlib-bin icomlib-doc icomlib1 icomlib1-dev pcrd qpcr1k 
0 packages upgraded, 6 newly installed, 0 to remove and 841  not upgraded.
Need to get 310kB of archives. After unpacking 1110kB will be used.
Err http://debian.linux.org.tw sid/main icomlib1 1.0.1-5
  404 WWWOFFLE Will Get
Media Change: Please insert the disc labeled 'Debian GNU/Linux SID _Sid_ - fsn.hu unofficial i386 Binary-6 (20021010)' in the drive '/cdrom/' and press enter

# xargs <i 
icomlib-bin icomlib-doc icomlib1 icomlib1-dev pcrd qpcr1k


However without xargs, the CPU was peaceful

# set `cat i` 
# apt-get  install $@
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  icomlib-bin icomlib-doc icomlib1 icomlib1-dev pcrd qpcr1k 
0 packages upgraded, 6 newly installed, 0 to remove and 841  not upgraded.
Need to get 310kB of archives. After unpacking 1110kB will be used.
Err http://debian.linux.org.tw sid/main icomlib1 1.0.1-5
  404 WWWOFFLE Will Get
Media Change: Please insert the disc labeled 'Debian GNU/Linux SID _Sid_ - fsn.hu unofficial i386 Binary-6 (20021010)' in the drive '/cdrom/' and press enter


OK, maybe I was blocking stdin or something, but still...
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux debian 2.4.20-k7 #1 Tue Jan 14 00:29:06 EST 2003 i686
Locale: LANG=zh_TW.Big5, LC_CTYPE=zh_TW.Big5

Versions of packages apt depends on:
ii  libc6                        2.3.1-10    GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2       1:2.95.4-15 The GNU stdc++ library

-- no debconf information




Reply to: