MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Precompiled Linux (Debian Etch) PowerPC binaries-release
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    MLDonkey Forum Index -> Alternative platforms
View previous topic :: View next topic  
Author Message
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1580
Location: Italy

PostPosted: Mon Aug 13, 2007 9:16 pm    Post subject: Precompiled Linux (Debian Etch) PowerPC binaries-release Reply with quote

UPDATED
I have compiled (for fun) static cores on a Debian Etch running on an emulated PowerPC system.
These cores have been tested with success.There are few issues on linkstation's boxes (cause libc/library differences) which could be solved using a trick explained below.
My binaries are been tested with success on these boxes:
    Synology DS207 , DS-207 , DS106 , DS-106, DS210+
    PCI NAS-01G NAS, similar hardware as the Allnet ALL6250
    IOmega OpenCenter 250G NAS
    DreamBox DM500

I have build a collection of cores with different configure options, in a single giant archive:

THESE ARE CORES COMPILED ON DEBIAN ETCH, THE BUNDLED LIBRARIES HAVE BEEN UPDATED TOO(for guys using LD_lib trick I suggest to update them too).

Last 3.1.3CVS
Only native code version is provided

All the cores are here (new hosting thanks to ygrek):
http://fabtar.ygrek.org.ua/


Qnap NAS installation:
Qnap users has an alternate and easier mldonkey installation, they should use the automated QPKG pakage management (new firmwares):
http://www.qnap.com/pro_features_QPKG.asp
http://www.qnap.com/faq_detail.asp?q_id=461

Let's choose the release tarball which fits your needs in subfolders!
The archive contains a lot of directories, inside these directories there are complete ready to use mldonkey's tarballs.
These tarballs have various features, there are heavy cores with all the fetures bundled in, and light cores with minimal features for tiny boxes.
You have to choose the core which fits your needs!

full
Enabled networks:ed2k-bittorrent-directconnect-FileTP
Library disabled:none - SUI enabled
normal
Enabled networks:ed2k-bittorrent-FileTP
Library disabled:Libgd,libmagic - SUI enabled
normal_gd
Enabled networks:ed2k-bittorrent-FileTP
Library disabled:libmagic - SUI enabled
minimal
Enabled networks:ed2k
Library disabled:Libgd,libmagic - SUI enabled

libraries This archive contatins my own needed libraries.(for static core too)

This is about the compilation enviroment & version:


Code:

Compilers:
 - Ocaml version     3.12.0
 - gcc version       4.x.x
 - g++ version       4.x.x


mldonkey CVS source has been patched in order to force UTF8.


Please TEST these cores, and give me suggestions-feedback.
Hope useful.
fabtar

IMPORTANT NOTE(linkstation users?).
Mlnet.static still needs a bunch of shared libraries.
In case you are experiencing DNS resolution or libraries problems, I have added my libraries to the archive (there are sometimes libc problems or lacking libraries).
THERE ARE 2 WAYS TO SOLVE DNS PROBLEMS
1)
I have added my needed shared libs in the main archive.Copy them in(example) /new_libs_path
I suggest to create a little script which sets this enviroment variable first to call mlnet (Thanks Georg for testing!):
Code:
LD_LIBRARY_PATH=/new_libs_path:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
/path_to_mldonkey/mlnet.static


(*I think*) This starts the static linked mlnet after setting the LD_LIBRARY_PATH environment variable as needed. And the variable is only set for the call of mlnet, thus the remainer of the installation is not affected.
This will luckly cause to first call my libraries first of your ones.
This is an hard hack, it is better to use only when you have reserved a users for mldonkey's sake.
Another command in order to obtain the same result:
Code:
LD_LIBRARY_PATH=/new_libs_path:$LD_LIBRARY_PATH ./mldonkey_path/mlnet (arguments?)


2)
You can also try launching mldonkey chrooted, providing my libraries: http://mldonkey.sourceforge.net/Chroot
for linkstation's users Togeis's chroot walkthru:
http://forum.nas-central.org/viewtopic.php?f=19&t=3682&st=0&sk=t&sd=a&start=30.


P.s.: I think these cores should work if you have a debian linux.
For NO-DEBIAN users, if you have problems
please look at this libraries in your system:
Code:

/lib/libresolv.so.2
/lib/libnss_dns.so.2
/lib/ld.so.1
/lib/libc.so.6
/lib/libnss_files.so.2


If these libraries has different names on your system, you can try to create symoblic links with these names pointing to your current ones.
for example could be: /lib/ld.so.1 -> /lib/ld.linux.so.3

P.s2: I suggest to test SUI feature, in case you are unsure about the feature is working right or not you can simply disable it by option.
_________________
ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/


Last edited by fabtar on Sat Aug 18, 2012 9:21 pm; edited 60 times in total
Back to top
View user's profile Send private message
ZeusII
neophyte


Joined: 15 Aug 2007
Posts: 38
Location: Barcelona

PostPosted: Wed Aug 15, 2007 8:23 pm    Post subject: Reply with quote

Working fine here!

Great work, I was stuck with 2.8.7 as it was the last compiled version I found.

Keep new builds comming Very Happy

My system is a Synology DS207.


This mlnet build info (using static one):

--Buildinfo--
Version: MLNet Multi-Network p2p client version 2.9.0.CVS
SCM version: 2007-08-13 18:20:12
Networks: Global Shares Direct Connect Fasttrack FileTP BitTorrent Donkey (SUI)
Ocaml version: 3.08.3 - C compiler version: 3.3.5 - C++ compiler version: 3.3.5
Built on: Linux ppc 2.4.27.001 (big endian) with glibc 2.3.2
Features: threads zlib-1.2.2 bzip2-1.0.2 gd(jpg/png-1.2.Cool iconv(active) magic(inactive) no-check-bounds

--Runinfo--
User: ***** (PW Protected) - uptime: 9m 1s
Enabled nets: BitTorrent FileTP
Server usage: enabled
Geoip: enabled, GeoLite data created by MaxMind, available from http://maxmind.com/
IP blocking: local: 0 ranges - web: 156152 ranges
Libmagic: file-type recognition database not present
System info: Linux ***** 2.6.15 #462 Mon Apr 30 21:03:04 CST 2007 ppc
language: EN - locale: ANSI_X3.4-1968 - UTC offset: +0200
max_string_length: 16777211 - word_size: 32 - max_array_length: 4194303 - max_int: 1073741823
max file descriptors: 1024 - max useable file size: 2^63-1 bits (do the maths ;-p)
Back to top
View user's profile Send private message Visit poster's website
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1580
Location: Italy

PostPosted: Wed Aug 15, 2007 9:52 pm    Post subject: Reply with quote

@ZeusII
Thanks for feedback!!These things make me happy!!!
I have seen you have not enabled ed2k network, could you please active ed2k network in order to check if SUI is working well?
Have you a debian release on your box or a specialized distro?
_________________
ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/
Back to top
View user's profile Send private message
ZeusII
neophyte


Joined: 15 Aug 2007
Posts: 38
Location: Barcelona

PostPosted: Wed Aug 15, 2007 10:07 pm    Post subject: Reply with quote

fabtar wrote:
@ZeusII
Thanks for feedback!!These things make me happy!!!
I have seen you have not enabled ed2k network, could you please active ed2k network in order to check if SUI is working well?
Have you a debian release on your box or a specialized distro?


I enable ed2k on demand (only when I need to download something there). How do I check that SUI is working well?

I tried downloading a highly seeded elink and on eMule clients it says Identification: Successful. Are you referring to this?


I'm using the default Synology distro.
Back to top
View user's profile Send private message Visit poster's website
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1580
Location: Italy

PostPosted: Thu Aug 16, 2007 6:36 am    Post subject: Reply with quote

Right, you have done right, SUI identification is there and working.

I have a last request for you:
please execute:

Code:
lsof -P -T -p MLNET_PID


I like to see if you mlnet.static is using shared libraries and how they are named&located on ppc.
_________________
ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/
Back to top
View user's profile Send private message
ZeusII
neophyte


Joined: 15 Aug 2007
Posts: 38
Location: Barcelona

PostPosted: Thu Aug 16, 2007 2:20 pm    Post subject: Reply with quote

fabtar wrote:
Right, you have done right, SUI identification is there and working.

I have a last request for you:
please execute:

Code:
lsof -P -T -p MLNET_PID


I like to see if you mlnet.static is using shared libraries and how they are named&located on ppc.



Code:
lsof -P -T -p 3434
COMMAND  PID USER   FD   TYPE     DEVICE    SIZE    NODE NAME
ash     3434 root  cwd    DIR        9,0    4096   82144 /root
ash     3434 root  rtd    DIR        9,0    4096       2 /
ash     3434 root  txt    REG        9,0 1410476   82105 /bin/busybox
ash     3434 root  mem    REG        0,0               0 [heap] (stat: No such file or directory)
ash     3434 root    0u  unix 0xc24a6e60         5029682 socket
ash     3434 root    1u  unix 0xc24a6e60         5029682 socket
ash     3434 root    2u  unix 0xc24a6ba0         5029684 socket

lsof -P -T -p 3435
COMMAND  PID USER   FD   TYPE     DEVICE       SIZE     NODE NAME
mlnet   3435 root  cwd    DIR        9,2       4096 55869445 /volume1/download/.mldonkey
mlnet   3435 root  rtd    DIR        9,0       4096        2 /
mlnet   3435 root  txt    REG        9,2    7422528 51550384 /volume1/opt/bin/mlnet
mlnet   3435 root  mem    REG        0,0                   0 [heap] (stat: No such file or directory)
mlnet   3435 root  mem    REG        9,2    1034758 55869471 /volume1/download/.mldonkey/web_infos/GeoIP.dat
mlnet   3435 root  mem    REG        9,0      65480    65845 /lib/libresolv.so.2
mlnet   3435 root  mem    REG        9,0      14620    65791 /lib/libnss_dns.so.2
mlnet   3435 root  mem    REG        9,0      95184    65802 /lib/ld.so.1
mlnet   3435 root  mem    REG        9,0    1310504    65798 /lib/libc.so.6
mlnet   3435 root  mem    REG        9,0      43348    65839 /lib/libnss_files.so.2
mlnet   3435 root    0u  unix 0xc24a6e60             5029682 socket
mlnet   3435 root    1u  unix 0xc24a6e60             5029682 socket
mlnet   3435 root    2u  unix 0xc24a6ba0             5029684 socket
mlnet   3435 root    3r   REG        9,2    1034758 55869471 /volume1/download/.mldonkey/web_infos/GeoIP.dat
mlnet   3435 root    4w   REG        9,2    1046016 55869472 /volume1/download/.mldonkey/mlnet.log



Also, (this was happening whit 2.8.7) i'm getting sometimes the following error and the core just closes:

Code:
2007/08/16 15:20:26 Exception (socket failed: Too many open files) before connect to host *.*.*.*:2710


Do you know how to fix it? maybe compiling whit some option enabled, maybe in the configuration of the client or just downloading less things at the same time?
Back to top
View user's profile Send private message Visit poster's website
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1580
Location: Italy

PostPosted: Thu Aug 16, 2007 2:36 pm    Post subject: Reply with quote

ZeusII wrote:

Also, (this was happening whit 2.8.7) i'm getting sometimes the following error and the core just closes:

Code:
2007/08/16 15:20:26 Exception (socket failed: Too many open files) before connect to host *.*.*.*:2710


Do you know how to fix it? maybe compiling whit some option enabled, maybe in the configuration of the client or just downloading less things at the same time?

Don't know for sure, please post output of mldonkey command: "voo changed", post output (from you box's Linux shell) of command "ulimit -a" .
_________________
ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/
Back to top
View user's profile Send private message
ZeusII
neophyte


Joined: 15 Aug 2007
Posts: 38
Location: Barcelona

PostPosted: Thu Aug 16, 2007 2:53 pm    Post subject: Reply with quote

Code:
Eval command: voo changed

BT-client_port = ****
BT-client_uid = *****************************
BT-tracker_port = *****
ED2K-client_md4 = *******************************
ED2K-client_private_key = ********************************
ED2K-max_connected_servers = 5
ED2K-max_server_age = 10
ED2K-port = *****
ED2K-server_black_list = 64.93.90.213 64.93.90.213
ED2K-update_server_list_server = true
FT-client_uid = *******************************
allowed_ips = *********** 127.0.0.1
client_ip = ************
client_name = **********
emule_mods_count = true
emule_mods_showall = true
max_hard_download_rate = 0



Code:
ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        8192
coredump(blocks)     unlimited
memory(kbytes)       unlimited
locked memory(kbytes) 32
process              512
nofiles              1024
vmemory(kbytes)      unlimited
locks                unlimited
Back to top
View user's profile Send private message Visit poster's website
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1580
Location: Italy

PostPosted: Thu Aug 16, 2007 4:08 pm    Post subject: Reply with quote

you output is abit different of mine:

Code:

mlnet@pigrigw:~$ ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) unlimited
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 8192
cpu time             (seconds, -t) unlimited
max user processes            (-u) unlimited
virtual memory        (kbytes, -v) unlimited


I have to think about this, I have thought something is opening too much connections/file descriptors.
Let me think on this a bit.I'll post few suggestions on this thread later.
_________________
ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/
Back to top
View user's profile Send private message
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1580
Location: Italy

PostPosted: Thu Aug 16, 2007 5:50 pm    Post subject: Reply with quote

I think your box i creating too much connections,
how many mlnet processes are you running at same time?(normally one Very Happy ) are you sharing files with your Nas in a enterprise with lot of users?
Have you other services which creates lots of connections?

My idea:
Perhaps you simply eat up all your connections_sockets/file_descriptors.

Lets go deeper...
First let's see something about your system activity an kernel hardlimits, paste the output of (while you are in normal activity, normal usage, normal mldonkey activity):

Code:
cat /proc/sys/fs/file-nr


explanations:http://www.netadmintools.com/part295.html

The only way to solve this issue (first you have to verify the hard limits imposed by your kernel) is to increase the number of file descriptors with

Code:
ulimit -n NumbeOfDescriptors

(please wait a bit for your output to be analyzed first)
Plus you can decrease a bit the max number of connections and max number of connections/sec of your mldonkey.

Last questions:
How much files are you sharing with mldonkey?
How much users are accessing your box at same time?


P.s: I have noted max_hard_download_rate=0. I don't know if this limit bounds control communications too.
Perhaps you can left little 1-2Kbyte/sec of donwload (to be safe&sure)
_________________
ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/
Back to top
View user's profile Send private message
ZeusII
neophyte


Joined: 15 Aug 2007
Posts: 38
Location: Barcelona

PostPosted: Thu Aug 16, 2007 6:33 pm    Post subject: Reply with quote

Well, actually I have three mlnet processes at the sametime (with consecutive PIDs, being everyone a child from the other)

this nas is merely for my personal home usage, so there's not to many simultaneous connections.


I don't have this file: /proc/sys/fs/file-nr


I think that the problem maybe resides in that at this moment I'm downloading 21 files at the same time and seeding 5 more xD
Back to top
View user's profile Send private message Visit poster's website
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1580
Location: Italy

PostPosted: Thu Aug 16, 2007 6:50 pm    Post subject: Reply with quote

It's normal 3 mlnet processes, but I am interested in the number od mlnet istances.

Another try, this is not so precise(could be 40% more than real value) but try this:

Code:
lsof | wc -l


post output.

I think you have currently 1024 max file descriptors, I think you can raise it by using ulimit -n **** command.
_________________
ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/
Back to top
View user's profile Send private message
ZeusII
neophyte


Joined: 15 Aug 2007
Posts: 38
Location: Barcelona

PostPosted: Thu Aug 16, 2007 6:57 pm    Post subject: Reply with quote

lsof | wc -l answer, with mldonkey running: 1626
Back to top
View user's profile Send private message Visit poster's website
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1580
Location: Italy

PostPosted: Thu Aug 16, 2007 7:17 pm    Post subject: Reply with quote

it could be interesting to test with:

lsof | grep MLNET-PID | wc -l

I suppose this command could point the number of file descritors opened by mlnet.
The overmentioned is only for curiosity, I think that the solution are always:

use:
ulimit -n 2048 (from root, 2048 is an example,1024 is the usual value)

and decrease mldonkey connections.

Cheers

P.s: 1600 , your result is not too high.This is the reason I think 2048 could suffice (hoping there is no kernel hardlimit)
_________________
ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/
Back to top
View user's profile Send private message
ZeusII
neophyte


Joined: 15 Aug 2007
Posts: 38
Location: Barcelona

PostPosted: Thu Aug 16, 2007 7:34 pm    Post subject: Reply with quote

mldonkey pid result: 147 at this moment.

I deleted some downloads, I'll see if the error strikes back, and if it does, I'll try with ulimit. Since this started when I added a lot off downloads, I supose I excedeed my nas limit ^^*


Update: I'm going to restart my NAS as it's been 25 days since last reboot and maybe it's a little estressed Razz
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Alternative platforms All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 1 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo