You are not logged in.

#1 2005-08-04 23:21:27

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

Has anyone else noticed: PAN - is a resource hog

I was just wondering if anyone else had run across this?

When I start PAN it seems fine.  Once I start downloading headers, it will eat up a LOT of my RAM along with swap.  I've used Knode, and it handles just fine. 

I have a gig in this laptop and I've watched conky/torsmo and seen it use up most of my ram and also start chewing up swap.


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

#2 2005-08-04 23:40:18

babyigor37
Member
From: Arizona
Registered: 2003-12-06
Posts: 58

Re: Has anyone else noticed: PAN - is a resource hog

I always had problems with Pan handling large numbers of headers, generally the binaries groups that have hundreds of thousands of headers.  With fewer headers, I never had such problems.  Apparently (according to the pan website) the CVS version reduces memory usage by 1/3 when dealing with large numbers of header.  I haven't tried it out yet, since I pretty much deal entirely in nzbs for my newsgroup downloading needs.

Offline

#3 2005-08-05 09:04:13

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: Has anyone else noticed: PAN - is a resource hog

Quick 'n dirty Pan-cvs PKGBUILD:

# Contributor: Bart Leusink <bartleusink@gmail.com>

pkgname=pan-cvs
pkgver=0.14.90
pkgrel=3
pkgdesc=" Pan is a newsreader which attempts to be pleasing to both new and experienced users. In addition to the standard newsreader features, Pan also supports yEnc, offline newsreading, article filtering, multiple connections, and more features for power users and alt.binaries fans."
license=
provides=('pan')
conflicts=('pan')
depends=('libxml2' 'gtk2' 'gtkspell' 'pcre')
makedepends=('intltool')
url="http://pan.rebelbase.com"
install=
source=()
md5sums=()

build() {
rm -rf $startdir/src/pan
         cvs -d:pserver::pserver:anonymous@anoncvs.gnome.org:/cvs/gnome login
         cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co -P pan
cd $startdir/src/pan/
./autogen.sh --prefix=/usr/
make
make DESTDIR=$startdir/pkg install
 } 

nzb's is a planned function, for now you just have to open them with a text-editor and view them (nzb's are plain xml) OR use nzbget

If you get problems with with missing files:

export ACLOCAL_FLAGS="-I /usr/share/aclocal/"
export PKG_CONFIG_PATH=":/usr/lib/pkgconfig"

I had to edit this line in /opt/gnome/bin/gnome-autogen.sh:

REQUIRED_AUTOMAKE_VERSION=${REQUIRED_AUTOMAKE_VERSION:-1.4}

to:

REQUIRED_AUTOMAKE_VERSION=${REQUIRED_AUTOMAKE_VERSION:-1.9}

There probably is a more elegant solution I'm not aware of at the moment, and I think it's a little bit too dirty to change it automatically with the PKGBUILD, so you have to do it manually.

I don't even know if the above is nowadays needed, but it was when Pan development just restarted.

I've also made a PKGBUILD for nzbget:

# Contributor: Bart Leusink <bartleusink@gmail.com>

pkgname=nzbget
pkgver=0.2.2
pkgrel=1
pkgdesc="A command-line based binary newsgrabber for Linux supporting nzb-files."
license=
depends=()
makedepends=()
url="http://sourceforge.net/projects/nzbget"
install=
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=("377baa033ea8be97422034fd6b3179d6")

build() {
cd $startdir/src/$pkgname-$pkgver/
./configure
make
mkdir -p $startdir/pkg/usr/bin/
cp nzbget $startdir/pkg/usr/bin
} 

After you've installed it, you still have to run the following commands before you can run the application:

mkdir ~/.nzbget/
cp nzbget.cfg.example ~/.nzbget/nzbget.cfg

After that, you may want to edit nzbget.cfg

Offline

#4 2005-08-05 10:23:20

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

Re: Has anyone else noticed: PAN - is a resource hog

Yep, the 'dirty' part is still needed.  ;-)

One other note:  If you already have Pan installed you'll get a number of file conflicts.  An upgrade (pacman -U) won't work...  You'll have to use the --force option (pacman -Uf) to get it to install.

Hmmmmmmm....   I just looked and now I have 'pan' and 'pan-cvs' installed.   Doooooooh!  A bonehead move at 5am, I guess I have a little cleanup work to do.   lol

Other than that, it appears to be ok..  I'm stuck in a hotel room right now with usenet blocked, so I won't know for sure until I get back home and give it a shot!  I'll let y'all know if that helps with memory usage much.


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

#5 2005-08-05 11:30:13

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: Has anyone else noticed: PAN - is a resource hog

jackmetal wrote:

One other note:  If you already have Pan installed you'll get a number of file conflicts.  An upgrade (pacman -U) won't work...  You'll have to use the --force option (pacman -Uf) to get it to install.

Hmmmmmmm....   I just looked and now I have 'pan' and 'pan-cvs' installed.   Doooooooh!  A bonehead move at 5am, I guess I have a little cleanup work to do.   lol

I've added

conflicts=('pan')

to the PKGBUILD
I actually thought

replaces=('pan')

would take care of that, but apparently not.

Offline

#6 2005-08-05 16:20:33

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Has anyone else noticed: PAN - is a resource hog

Add:
provides=('pan')
to the PKGBUILD.

You can also remove:
replaces=('pan')

Offline

#7 2005-08-07 09:32:34

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: Has anyone else noticed: PAN - is a resource hog

Snowman wrote:

Add:
provides=('pan')
to the PKGBUILD.

You can also remove:
replaces=('pan')

done smile

Offline

#8 2005-08-08 10:24:39

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

Re: Has anyone else noticed: PAN - is a resource hog

Well, I finally had a chance to test it out.  This version definitely fixes the memory issue that the other version had! 

Most Excellent!  wink


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

#9 2005-08-08 23:56:26

sullivanva
Member
From: Herndon, VA USA
Registered: 2005-07-21
Posts: 126

Re: Has anyone else noticed: PAN - is a resource hog

There was a request out there a little while ago for klibido / uudeview. 

The kmaster put together klibido, and the FUBAR did uudeview.

Any word on how well it works?

I've been pretty happy with pan, but I definitely have to do some workarounds.  For instance, I only download 300,000 headers at a time at most, or it crashes.


--HAPS

Offline

#10 2005-08-09 00:58:53

sullivanva
Member
From: Herndon, VA USA
Registered: 2005-07-21
Posts: 126

Re: Has anyone else noticed: PAN - is a resource hog

Dudes,

I was doing my thing, building my little supercharged pan, and ....

checking for automake >= 1.4...
  testing automake-1.4... not found.
***Error***: You must have automake >= 1.4 installed
  to build Pan.  Download the appropriate package for
  from your distribution or get the source tarball at
    http://ftp.gnu.org/pub/gnu/automake/automake-1.4.tar.gz

Now you know that can't be true.  I have version 1.9.

So dig this if you can in /opt/gnome/bin/gnome-autogen.sh:

case $REQUIRED_AUTOMAKE_VERSION in
    1.4*) automake_progs="automake-1.4" ;;
    1.5*) automake_progs="automake-1.5 automake-1.6 automake-1.7 automake-1.8 automake-1.9" ;;
    1.6*) automake_progs="automake-1.6 automake-1.7 automake-1.8 automake-1.9"
;;
    1.7*) automake_progs="automake-1.7 automake-1.8 automake-1.9" ;;
    1.8*) automake_progs="automake-1.8 automake-1.9" ;;
    1.9*) automake_progs="automake-1.9" ;;
esac

Whaaa?  I have to alter the integrity of someone elses code, just so I can download my porn in a slightly more efficient fashion?   Something isn't right here.


--HAPS

Offline

#11 2005-08-09 08:36:34

BartL
Member
From: The Netherlands
Registered: 2005-06-21
Posts: 29
Website

Re: Has anyone else noticed: PAN - is a resource hog

sullivanva wrote:

Whaaa?  I have to alter the integrity of someone elses code, just so I can download my porn in a slightly more efficient fashion?   Something isn't right here.

It sure isn't, but it is currently the only way (I know of) to get pan-cvs compiled.
As far as I know, the change didn't break anything else (yet), and you can change it back after the compilation, if you want.

Offline

#12 2005-08-09 14:26:01

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

Re: Has anyone else noticed: PAN - is a resource hog

I just changed it back after building the package.  This version helps a LOT on the memory issues.


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

Board footer

Powered by FluxBB