Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How to reduce your download traffic by 75% or more

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
272 posts
  • Page 4 of 11
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 11
  • Next
Author
Message
ts77
Apprentice
Apprentice
Posts: 200
Joined: Sun Mar 23, 2003 4:05 pm
Location: Berlin, Germany

  • Quote

Post by ts77 » Sun Sep 12, 2004 1:15 pm

Hi,

thanks a lot for that great tool again.
I just got an error while running 0.5.3 for the first time:

Code: Select all

>>> emerge (1 of 2) sys-devel/gcc-3.4.1-r2 to /
>>> Downloading http://www.research.ibm.com/trl/projects/security/ssp/gcc3_4/protector-3.4-2.tar.gz
Checking if a Thirdparty-Mirror is used ...

No third-party mirror.

Searching for a previosly downloaded file in /usr/portage/distfiles

We have following candidates to choose from
protector-3.3-7.tar.gz
protector-3.3.2-2.tar.gz

The best of all is ... protector-3.3.2-2.tar.gz

Checking if this file is OK.

grep: /digest-*: No such file or directory
/usr/local/bin/getdelta.sh: line 428: [: missing `]'
Trying to download protector-3.3.2-2.tar.gz-protector-3.4-2.tar.gz.dtu
...
Any idea why it can't find the digest?

Edit: I have to add that it seems to work though :). And thanks for implementing the configurable queue retry :).


TIA,

thomas
Top
blackpenguin
n00b
n00b
User avatar
Posts: 43
Joined: Tue Mar 09, 2004 5:27 pm
Location: Germany
Contact:
Contact blackpenguin
Website

  • Quote

Post by blackpenguin » Sun Sep 12, 2004 1:56 pm

ts77 wrote: Any idea why it can't find the digest?
Uhm... Yes :D
There is a typo (FILES_DIR instead of FILESDIR) - actually I haven't tested this part of the code.
There is also a missing "]" on line 428 (as your error msg said) :oops:

Both is fixed now in 0.5.3.1

bp
Top
ts77
Apprentice
Apprentice
Posts: 200
Joined: Sun Mar 23, 2003 4:05 pm
Location: Berlin, Germany

  • Quote

Post by ts77 » Sun Sep 12, 2004 2:06 pm

Heh, I thought the second error was a followup for the first one. :)

No problem and thanks for the quick fix :-).
Top
blackpenguin
n00b
n00b
User avatar
Posts: 43
Joined: Tue Mar 09, 2004 5:27 pm
Location: Germany
Contact:
Contact blackpenguin
Website

another bug fixed.

  • Quote

Post by blackpenguin » Sun Sep 12, 2004 5:19 pm

Another bug appeared in the output when deleting old files.
fixed in version 0.5.3.2 which is available at
http://linux01.gwdg.de/~nlissne/getdelta.sh now.
bp
Top
Pkunkage
n00b
n00b
Posts: 4
Joined: Fri Sep 10, 2004 9:19 am

  • Quote

Post by Pkunkage » Mon Sep 13, 2004 10:41 am

I have submitted
http://bugs.gentoo.org/show_bug.cgi?id=63864
to patch the xdelta package code slightly. The new ebuild and patch will fix problems xdelta has patching LARGE dtu's or tarballs because it doesn't try to limit memory usage by default.

For example in my system with 500MB of Swap and 256MB of RAM , when deltup is patching OOo tarballs or mozilla which are >200MB , xdelta will just plain run out of RAM and start mem-swapping like a forkbomb taking down X , and some other system services like squid etc.

The new patch sets the default memory cache in xdelta to 100 megs. This can be tweaked by editing /etc/deltup/getdelta.rc and setting XDELTA_MAX_MEGS=200
You can change 200 to whatever megabyte limit is appropriate for your system.
Last edited by Pkunkage on Mon Sep 13, 2004 11:28 am, edited 1 time in total.
Top
eNTi
Veteran
Veteran
User avatar
Posts: 1011
Joined: Sun Oct 20, 2002 2:33 am
Location: Salzburg, Austria

  • Quote

Post by eNTi » Mon Sep 13, 2004 10:57 am

what about putting an version check and automatic upgrade script into getdelta.sh? you could make a configuration variable like "GETDELTA_AUTOUPDATE". i think that would be great.
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Top
Pkunkage
n00b
n00b
Posts: 4
Joined: Fri Sep 10, 2004 9:19 am

  • Quote

Post by Pkunkage » Mon Sep 13, 2004 11:34 am

I think blackpenguin has very wisely decided to not go in for auto-update.

Ultimately this script should become part of deltup ebuild in official portage or another ebuild which the user can upgrade whever he wants.

Since the script is typically running as root it wouldn't be wise to have auto-update for something like that. Just something which the user can easily emerge from portage is good enough. Besides whats the big deal with wget http://patthto/getdelta.sh ?
Top
eNTi
Veteran
Veteran
User avatar
Posts: 1011
Joined: Sun Oct 20, 2002 2:33 am
Location: Salzburg, Austria

  • Quote

Post by eNTi » Mon Sep 13, 2004 11:42 am

if it's in portage it's okay. i just don't want to have to check for updates/bugfixes all the time. i'd still prefere auto-update. what's the big deal? you can always turn it off?
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Top
eNTi
Veteran
Veteran
User avatar
Posts: 1011
Joined: Sun Oct 20, 2002 2:33 am
Location: Salzburg, Austria

  • Quote

Post by eNTi » Mon Sep 13, 2004 1:27 pm

Code: Select all

Trying to download gcc-3.4.1.tar.bz2-gcc-3.4.2.tar.bz2.dtu

--15:22:26--  http://linux01.gwdg.de/%7Enlissne/deltup.php?have=gcc-3.4.1.tar.bz               
2&want=gcc-3.4.2.tar.bz2&version=0.5.3
           => `deltup.php?have=gcc-3.4.1.tar.bz2&want=gcc-3.4.2.tar.bz2&version=               
0.5.3'
Resolving linux01.gwdg.de... 134.76.13.21
Connecting to linux01.gwdg.de[134.76.13.21]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: ftp://134.102.120.44/deltup/gcc-3.4.1.tar.bz2-gcc-3.4.2.tar.bz2.dtu [f               
ollowing]
--15:22:27--  ftp://134.102.120.44/deltup/gcc-3.4.1.tar.bz2-gcc-3.4.2.tar.bz2.dt               
u
           => `gcc-3.4.1.tar.bz2-gcc-3.4.2.tar.bz2.dtu'
Connecting to 134.102.120.44:21... failed: Address family not supported by proto               
col.
Giving up.
what is this supposed to mean? is this dtu simply not avaliable?
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Top
pleusicles
n00b
n00b
Posts: 44
Joined: Wed May 26, 2004 3:14 pm

Re: NEW VERSION OF getdelta.sh RELEASED

  • Quote

Post by pleusicles » Mon Sep 13, 2004 3:15 pm

blackpenguin wrote: - a configurable maximum acceptable queue-position
Thanks for implementing this feature, and also for the new version in general! :D
Top
pleusicles
n00b
n00b
Posts: 44
Joined: Wed May 26, 2004 3:14 pm

  • Quote

Post by pleusicles » Mon Sep 13, 2004 3:26 pm

... and just a little cosmetic problem: after printing "The Server creates the dtu-file NOW", the output stays yellow until the next "colored" element such as "Yes, we got the dtu-file..."
Top
ReXX
n00b
n00b
Posts: 24
Joined: Tue Feb 24, 2004 12:20 am
Location: DE->AC

  • Quote

Post by ReXX » Mon Sep 13, 2004 5:52 pm

Is this topic still alive?

Right now I've got a problem emerging deltup

Code: Select all

>>> Unpacking source...
>>> Unpacking deltup-0.4.0.tar.gz to /var/tmp/portage/deltup-0.4.0/work
>>> Source unpacked.

>>> Install deltup-0.4.0 into /var/tmp/portage/deltup-0.4.0/image/ category app-portage
gcc deltup.cpp -march=athlon-tbird -O2 -pipe -o deltup -lstdc++ -lz -lbz2 -lssl
In file included from deltup.cpp:25:
file.h: In member function `virtual int Injectable_IStream::read(void*, int)':
file.h:132: error: ISO C++ forbids cast to non-reference type used as lvalue
file.h:142: error: ISO C++ forbids cast to non-reference type used as lvalue
make: *** [deltup] Error 1

!!! ERROR: app-portage/deltup-0.4.0 failed.
!!! Function src_install, Line 35, Exitcode 2
!!! (no error message)
I'd like to test the script, but without deltup I guess it won't work.
Is the Matix inside your brain or vice versa?
Use the SEARCH, revive the DEAD! :twisted:
Top
PrakashP
Veteran
Veteran
User avatar
Posts: 1249
Joined: Mon Oct 27, 2003 4:10 pm
Location: C.C.A.A., Germania

  • Quote

Post by PrakashP » Mon Sep 13, 2004 8:01 pm

Take a look on page 1.
Top
Kampi
n00b
n00b
Posts: 20
Joined: Sat Apr 05, 2003 8:19 am
Location: Vienna, Austria, Europe

  • Quote

Post by Kampi » Wed Sep 15, 2004 3:00 pm

works great for me! thank you.
Top
MooktaKiNG
Guru
Guru
User avatar
Posts: 326
Joined: Mon Nov 11, 2002 2:30 pm
Location: London, UK
Contact:
Contact MooktaKiNG
Website

  • Quote

Post by MooktaKiNG » Thu Sep 16, 2004 12:24 pm

I would (and others too) appreciate a sample config file (an up to date file, showing all the available options) in the website, right next to the .sh script :D:D

Thank you.
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Top
MooktaKiNG
Guru
Guru
User avatar
Posts: 326
Joined: Mon Nov 11, 2002 2:30 pm
Location: London, UK
Contact:
Contact MooktaKiNG
Website

  • Quote

Post by MooktaKiNG » Thu Sep 16, 2004 12:52 pm

Correction :D

It does have a sample config file :D:D:D
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Top
MooktaKiNG
Guru
Guru
User avatar
Posts: 326
Joined: Mon Nov 11, 2002 2:30 pm
Location: London, UK
Contact:
Contact MooktaKiNG
Website

  • Quote

Post by MooktaKiNG » Thu Sep 16, 2004 12:55 pm

One thing i don't like is the GENTOO_MIRRORS bit.
Why does it need to be empty?

The problem is that when it trys to download the full file, it now takes ages.

I would prefer to have a mirror which is close to me.
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Top
blackpenguin
n00b
n00b
User avatar
Posts: 43
Joined: Tue Mar 09, 2004 5:27 pm
Location: Germany
Contact:
Contact blackpenguin
Website

  • Quote

Post by blackpenguin » Thu Sep 16, 2004 5:55 pm

MooktaKiNG wrote:One thing i don't like is the GENTOO_MIRRORS bit.
Why does it need to be empty?
I didn't like it, too.

Well, the reason was, the client gives the server a hint where to find the file, and - if GENTOO_MIRRORS is not empty portage always tries GENTOO_MIRRORS first - leading to a wrong hint from getdelta.sh to its server.

Here's the good news - you can set GENTOO_MIRRORS now without breaking things.
There is a minor version-update (0.5.3.3) on the server at
http://linux01.gwdg.de/~nlissne/getdelta.sh

With this new version I introduce another way to find the correct mirror-group even if portage tries to use a gentoo mirror first.

Please update to 0.5.3.3 and set your GENTOO_MIRRORS again.

bp
Top
MooktaKiNG
Guru
Guru
User avatar
Posts: 326
Joined: Mon Nov 11, 2002 2:30 pm
Location: London, UK
Contact:
Contact MooktaKiNG
Website

  • Quote

Post by MooktaKiNG » Thu Sep 16, 2004 6:41 pm

blackpenguin wrote:
MooktaKiNG wrote:One thing i don't like is the GENTOO_MIRRORS bit.
Why does it need to be empty?
I didn't like it, too.

Well, the reason was, the client gives the server a hint where to find the file, and - if GENTOO_MIRRORS is not empty portage always tries GENTOO_MIRRORS first - leading to a wrong hint from getdelta.sh to its server.

Here's the good news - you can set GENTOO_MIRRORS now without breaking things.
There is a minor version-update (0.5.3.3) on the server at
http://linux01.gwdg.de/~nlissne/getdelta.sh

With this new version I introduce another way to find the correct mirror-group even if portage tries to use a gentoo mirror first.

Please update to 0.5.3.3 and set your GENTOO_MIRRORS again.

bp
Nice. :)
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Top
Twink
Apprentice
Apprentice
User avatar
Posts: 178
Joined: Fri Dec 06, 2002 10:02 am
Location: New Zealand

  • Quote

Post by Twink » Fri Sep 17, 2004 2:59 am

have to say i really love this tool and i'm looking forward to the next 'big' package i upgrade to see just how well it performs (I had already downloaded the packages for xorg and ooffice before starting to use this).

One thing i think would be nice is statistics for the local machine, surely it would be possible to add these in the future (although i understand there's more important things). Being able to see exactly how much i've saved by using this tool is of great interest.

Keep up the great work
Top
Niosop
n00b
n00b
Posts: 24
Joined: Sat Oct 04, 2003 2:06 am

distup on amd64

  • Quote

Post by Niosop » Fri Sep 17, 2004 2:07 pm

First of all, great job. As a (very slow) dial-up user, this has the potential to save me literally days of downloading when I want to update.

The only problem I have is: it doesn't work on amd64 (I know it's not supposed to). By using USE="~x86" it will compile fine, but it always errors on applying the patch after downloading the delta file.

Has anyone gotten it to work on amd64?

If not, does anyone know where the problem lies or where I should start looking for it?

Thanks for an awesome program,
Niosop
Top
asph
l33t
l33t
User avatar
Posts: 741
Joined: Mon Aug 25, 2003 8:52 am
Location: Barcelona, Spain

  • Quote

Post by asph » Fri Sep 17, 2004 2:18 pm

maybe it would be a good idea to check the gcc version, and patch file.h if going to use gcc 3.4.x so that it compiles.. having to fix that manually its a pain in the XXX ;)
gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep
Top
Niosop
n00b
n00b
Posts: 24
Joined: Sat Oct 04, 2003 2:06 am

  • Quote

Post by Niosop » Fri Sep 17, 2004 4:19 pm

Upon further inspection, deltup seems to be working fine. The error seems to be in xdelta or bdelta (think it's xdelta). Once I get home I'll continue troubleshooting.
Top
blackpenguin
n00b
n00b
User avatar
Posts: 43
Joined: Tue Mar 09, 2004 5:27 pm
Location: Germany
Contact:
Contact blackpenguin
Website

  • Quote

Post by blackpenguin » Sat Sep 18, 2004 1:23 am

Niosop wrote:Upon further inspection, deltup seems to be working fine. The error seems to be in xdelta or bdelta (think it's xdelta). Once I get home I'll continue troubleshooting.
Since we do not use bdelta (yet) for the files created by the dynamic deltup server - xdelta might be the problem.
Top
millenium_psyrax
n00b
n00b
User avatar
Posts: 45
Joined: Tue Jul 16, 2002 12:09 pm
Location: Melbourne, Australia

  • Quote

Post by millenium_psyrax » Sat Sep 18, 2004 5:53 am

FANTASTIC!!!!!

Thanks guys, this has always been a major portage gripe of mine, I have never, and never will understand why something like this has not been a priority. It has shit to me to tears downloading another entire version of a package to just upgrade a point release, I go to the gnu ftp server, and I see a patch that fits, but portage takes the NEWBIE way out, and just downloads a fresh copy of the update.

Something like this should be in portage, FULL STOP. In fact, it should have been in the original design document.
Define ironic: Java (noun) a unicode using Objective C whose claim to portability fame is having a compiler that can only compile code for ONE architecture, a slow virtual machine.

(c) Craig Sproule freely redistributable under the GPL version 1.2.
Top
Post Reply

272 posts
  • Page 4 of 11
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 11
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic