Jump to content

t3ngus

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by t3ngus

  1. I have some 'figures' comparing utserver and rtorrent mem and cpu consumption.

    Please notice the excessive CPU usage from utserver, and the exponatial difference in mem usage (Resident).

    After 2-3 days of running utserver, I realised that I would prefer higher memory usage, than such a cpu cruncher... :(

    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND

    t3ngu 14546 99.7 0.0 177316 2020 pts/3 Sl+ Sep18 3661:38 ./utserver

    t3ngu 16217 0.3 0.7 162632 28976 pts/8 S+ Sep20 4:49 rtorrent

    Notice please on strace log below, it takes almost a second for futex_wait_private, while in few seconds of tracing, there are so many get time, and get date calls...

    strace:

    0.000000 [ f76f6425] restart_syscall(<... resuming interrupted call ...>) = 0 <0.623719>

    0.641303 [ f76f6425] futex(0xf43206ac, FUTEX_WAKE_PRIVATE, 1) = 0 <0.000027>

    0.000263 [ f76f6425] futex(0x80f0008, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000029>

    0.000284 [ f76f6425] futex(0x80f0008, FUTEX_WAKE_PRIVATE, 1) = 0 <0.000020>

    0.000105 [ f76f6425] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 <0.000023>

    0.000189 [ f76f6425] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 <0.000018>

    0.000114 [ f7684e16] clock_gettime(CLOCK_MONOTONIC, {97632, 600539704}) = 0 <0.000017>

    0.000101 [ f76f6425] gettimeofday({1284933925, 828857}, NULL) = 0 <0.000018>

    0.000087 [ f76f6425] clock_gettime(CLOCK_REALTIME, {1284933925, 828945359}) = 0 <0.000018>

    0.000092 [ f76f6425] futex(0xf43206c8, FUTEX_WAIT_PRIVATE, 192101, {59, 999911641}) = 0 <0.998708>

    0.999125 [ f76f6425] futex(0xf43206ac, FUTEX_WAKE_PRIVATE, 1) = 0 <0.000044>

    0.000277 [ f76f6425] futex(0x80f0008, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000020>

    0.000127 [ f76f6425] futex(0x80f0008, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000019>

    0.000097 [ f76f6425] futex(0x80f0008, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000018>

    0.000092 [ f76f6425] futex(0x80f0008, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000018>

    0.000090 [ f76f6425] futex(0x80f0008, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000018>

    0.000090 [ f76f6425] futex(0x80f0008, FUTEX_WAKE_PRIVATE, 1) = 0 <0.000018>

    0.000100 [ f76f6425] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 <0.000036>

    0.000159 [ f76f6425] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 <0.000021>

    0.000123 [ f7684e16] clock_gettime(CLOCK_MONOTONIC, {97633, 601100131}) = 0 <0.000018>

    0.000097 [ f76f6425] gettimeofday({1284933926, 829414}, NULL) = 0 <0.000018>

    0.000099 [ f76f6425] clock_gettime(CLOCK_REALTIME, {1284933926, 829519271}) = 0 <0.000019>

    0.000098 [ f76f6425] futex(0xf43206c8, FUTEX_WAIT_PRIVATE, 192103, {59, 999894729}) = 0 <0.998127>

    0.998388 [ f76f6425] futex(0xf43206ac, FUTEX_WAKE_PRIVATE, 1) = 0 <0.000033>

  2. @mcdonald

    Thanks for the quick reply.

    I would be looking fwd for that build.

    I have also used qbittorrent (and measured the memory) and I thought it was too much. The shared I understand can be a lot, but the registered, to reach 300MB I personally think its too much. :)

    For utserver process I see 173MB shared, 2K resident. :)

    Since the new version (I updated I think Sat morning,) I see too much cpu usage. Now with 3 torrents idle, uses 94% of a core. I have forced my cpu's to low freq otherwise they work at full frequency. But I bet there will be a fix soon ;)

    Cheers.

    PS. I have ran few straces and lsof's to see why spins the cpu constantly, please let me know if would need any of these logs.

  3. Good day.

    I would like to describe a small problem I had with the μtorrent server. Ok the reason it broke was... I.

    I have a remotely mounted filesystem, where i had few ISOs that I needed to seed.

    I soft linked the ISOs to the 'default' download path of μtorrent, and started the server.

    After a couple of days I 'lost' the mount point due to a hardware problem.

    I managed to unmount the partitions, and I stopped the torrents from μtorrent server. The problem was trying to shutdown the server (utserver). I pgrep'ed the process name, pkilled it, killed -9, killed his parent, tried sigdev and coredump, but I couldn't really kill the processes. I even tried to unlink the proc from the proc table. I wanted to kill it, as when I tried to run it again it wouldn't bind on the netport for the gui. (and probably wouldn't upload/download either)

    I am not bitching or anything, after all its an alpha build and it runs under my responsibility, but I really had to reboot my workstation (and thus been mocked by all my windows users friends).

    I didn't keep any 'logs' or strace/lsof logs as it was rather late, and I my choice was bed and not logs.

    I promise next time I will be more thorough logging all the events, and traces, but I am not sure if you can/or have seen this behavior (staying alive as zombie till the end of times).

    Now I am running it from within a screen, so if I run through the same issue, I have more options of loging and killing it.

    I wrote this experience as its a discussion forum, and I am really happy to see the developers to actually post replies :)

    So far I am really happy with the application, I see it running now straight for 3 days with total memory usage (shared and resisdent at 517156 K) which really puts a smile on my face :)

    great job once again,

    t3ngu

  4. works so far great on a 2.6.32-24-generic #42-Ubuntu x86_64 (i32 libs installed of course).

    Excellent with memory usage, 46564 on my top, while 551M my qbittorrent with same torrents open.

    web ui works great with chromium browser 5.0.375.127~r55887-0ubuntu0.10.04.1

    One request thoug. Can we have an option to change directories for torrents? Since I am migrating to utorrent server, I would like to have an option to seed old torrents that don't reside in the default directory listed in the settings.

    Now I have to create symlinks :(

    Apart from that, seem like a great job.

    Cheers!

×
×
  • Create New...