rtorrent/debian ridiclious I/O waits

dsouvik215

Member
May 25, 2018
896
0
16
as it says. trying to setup a seed box, basically seed what i gather as much as possible, and occassionally visit the box, move stuff to a 1Tb portable, and bring it offsite to my 112Tb offline storage for media fun...

figured i'd register and hopefully you guys can help me out.



i'll post some useful information, anything else just ask and i'll try and post the information.

Linux pig 3.2.0-4-486 #1 Debian 3.2.46-1 i686 GNU/Linux
rTorrent 0.9.2/0.13.2

root@pig:/# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz
stepping : 7
microcode : 0x27
cpu MHz : 2399.284
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid
bogomips : 4798.56
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 32 bits virtual
power management:

root@pig:/# mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Wed Jan 1 21:27:55 2014
Raid Level : raid0
Array Size : 1139752448 (1086.95 GiB 1167.11 GB)
Raid Devices : 8
Total Devices : 8
Persistence : Superblock is persistent

Update Time : Wed Jan 1 21:27:55 2014
State : clean
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0

Chunk Size : 512K

Name : pig:0 (local to host pig)
UUID : d0f2125f:73648f2a:b8dcbb08:e76de9b5
Events : 0

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 33 1 active sync /dev/sdc1
2 8 49 2 active sync /dev/sdd1
3 8 65 3 active sync /dev/sde1
4 8 81 4 active sync /dev/sdf1
5 8 97 5 active sync /dev/sdg1
6 8 113 6 active sync /dev/sdh1
7 8 5 7 active sync /dev/sda5

root@pig:/# tune2fs -l /dev/md0p1
tune2fs 1.42.5 (29-Jul-2012)
Filesystem volume name: <none>
Last mounted on: /mnt/holyshit
Filesystem UUID: da93a390-8360-4e33-8598-74fb2c277d47
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 71237632
Block count: 284937088
Reserved block count: 0
Free blocks: 268915193
Free inodes: 71237390
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 956
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
RAID stride: 128
RAID stripe width: 1024
Flex block group size: 16
Filesystem created: Wed Jan 1 21:30:33 2014
Last mount time: Thu Jan 2 10:14:14 2014
Last write time: Thu Jan 2 10:14:14 2014
Mount count: 1
Maximum mount count: 1
Last checked: Thu Jan 2 10:13:41 2014
Check interval: 0 (<none>)
Lifetime writes: 134 MB
^[OAReserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: c658d9b0-4889-4ab2-bfe9-2e3afa64b970
Journal backup: inode blocks

[Throttle 151/off KB] [Rate 157.6/791.6 KB] [Port: 6980] [U 40/40] [D 83/0] [H 0/32] [S 15/225/768] [F 128/128]
right now at these torrent speeds, this is how ridiclious dstat is showing I/O waits...

root@pig:/# dstat -D md0
You did not select any stats, using -cdngy by default.
----total-cpu-usage---- --dsk/md0-- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
2 13 17 62 0 7|2199k 1115k| 0 0 | 0 0 |1937 896
1 17 0 75 0 8| 60M 508k| 777k 288k| 0 0 |1761 974
0 11 12 70 0 7| 52M 2700k| 895k 231k| 0 0 |1838 1098
1 7 0 89 0 3| 50M 860k| 582k 100k| 0 0 |1323 895
1 10 0 83 0 6| 61M 1316k| 689k 164k| 0 0 |1673 981
7 14 0 71 0 8| 68M 0 |1119k 103k| 0 0 |1874 975
4 12 0 79 0 5| 59M 0 | 733k 177k| 0 0 |1763 911 ^C

and i'm not going to paste more, but, if i dstat each individual memeber of md0, each is showing 6-9Mb/sec, times 8 in the array, plus any overhead, comes out about right for md0. i don't understand why it's so wild. my rtorrent.rc file specifies defaults, nothing is specificed for overriding.


ideas? it's bringing this p4 to it's knees just moving 1Mb/sec......
doing dd tests it'll read/write 50/60Mb/sec to/from the array. so the question is, why running only rtorrent, is it my system being near murdered with ungodly reads when i'm downloading more then uploading!??!
 

dsouvik215

Member
May 25, 2018
896
0
16
oh meminfo. btw, rtorrent uses around 400Mb ram, there's nothing else on the system, no gui, no xserver, just essentials.

smartctl, ioprograms, sshd, rtorrent and requird libraries, etc etc

root@pig:/# cat /proc/meminfo
MemTotal: 506660 kB
MemFree: 6280 kB
Buffers: 7772 kB
Cached: 407240 kB
SwapCached: 0 kB
Active: 219144 kB
Inactive: 237768 kB
Active(anon): 20648 kB
Inactive(anon): 25040 kB
Active(file): 198496 kB
Inactive(file): 212728 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 506660 kB
LowFree: 6280 kB
SwapTotal: 126972 kB
SwapFree: 126940 kB
Dirty: 32 kB
Writeback: 0 kB
AnonPages: 41916 kB
Mapped: 19636 kB
Shmem: 3788 kB
Slab: 33588 kB
SReclaimable: 16324 kB
SUnreclaim: 17264 kB
KernelStack: 1320 kB
PageTables: 1136 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 380300 kB
Committed_AS: 139116 kB
VmallocTotal: 516152 kB
VmallocUsed: 7704 kB
VmallocChunk: 503360 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 4096 kB
DirectMap4k: 65472 kB
DirectMap4M: 450560 kB
 

dsouvik215

Member
May 25, 2018
896
0
16
top - 12:15:38 up 13 days, 14:14, 2 users, load average: 1.32, 1.30, 1.36
Tasks: 95 total, 2 running, 93 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.9 us, 11.7 sy, 0.0 ni, 0.0 id, 80.9 wa, 0.0 hi, 5.6 si, 0.0 st
KiB Mem: 506660 total, 500464 used, 6196 free, 7852 buffers
KiB Swap: 126972 total, 32 used, 126940 free, 406224 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10642 torrent 20 0 465m 37m 13m R 11.7 7.5 415:07.35 rtorrent