On Sat, 23 Sep 2006 18:43:12 +0200
Diego 'Flameeyes' Pettenò <[EMAIL PROTECTED]> wrote:

> On Saturday 23 September 2006 18:28, Douglas Bollinger wrote:
> > OK, so it is a real bug and not just a figment of the imagination of the
> > Gentoo maintainer. :)  It is strange that rtorrent works perfectly fine for
> > some of us.
> I can ensure you, it's not a figment of my imagination. I just didn't have 
> enough time to try hunting down the case.
> I myself can reproduce it on two boxes, an AMD64 Linux box and a x86 FreeBSD 
> box. I cannot reproduce on a PowerPC Linux box.
> Using the same compiler (GCC 4.1) and different CFLAGS on all of them. (The 
> two linux boxes have similar CFLAGS, but being different architectures, there 
> are some differences, and resetting CFLAGS doesn't seem to help).

I'm still using the old gcc with sane CFLAGS:

[EMAIL PROTECTED] ~ $ gcc --version
gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)

[EMAIL PROTECTED] ~ $ grep CFLAG /etc/make.conf
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"

Looks like -fomit-frame-pointer is stripped in the ebuild anyway.  Perhaps
it's an issue with the new GCC?

> The reason why it's masked is simple: even if it does not happen for
> everybody, when it happens it can virtually DoS your box: if you have a 8GB
> torrent, it will try to allocate 8GB and keep them alive in memory.  I say
> virtually because I didn't try it from root, and users cannot really try to
> get all the memory without being kicked off by the OOM.

One torrent I'm sharing is 35G with many files and another is ~7G, so on this
512M box if there is memory trouble it should happen quickly.

-- 
A light wife doth make a heavy husband.
                -- Wm. Shakespeare, "The Merchant of Venice"
_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel

Reply via email to