many torrent on external drive: RAM usage killing my Archlinux desktop help!

Linux specific questions, problems.

Moderators: Moderator, Global Moderator

Post Reply
magnakai
Newbie
Newbie
Posts: 5
Joined: Fri Feb 14, 2020 5:42 am

many torrent on external drive: RAM usage killing my Archlinux desktop help!

Post by magnakai » Fri Feb 14, 2020 6:06 am

Archlinux amd64 5.5.3-arch1-1 #1 SMP PREEMPT Tue, 11 Feb 2020 15:35:41 +0000 x86_64 GNU/Linux
4.2.1 qBittorrent
676 torrents
I turned off disk cache.
The last few days the program grow to 10G ram used.
usb external drive
The program won't shut down cleanly.
I am not sure what's wrong.
I read online turn off disk cache.
When I kill -9 it and start it back up it downs internet on the desktop until it I think checks a bunch of torrent files.
It Won't shut down cleanly.
I have moved around the async i/o threads from 1 to 128 just to experiment but put it back at 1.
I chose coalesce reads/writes.
I really am not sure why it is locking up and won't shut down cleanly.

magnakai
Newbie
Newbie
Posts: 5
Joined: Fri Feb 14, 2020 5:42 am

Re: many torrent on external drive: RAM usage killing my Archlinux desktop help!

Post by magnakai » Fri Feb 14, 2020 4:08 pm

I did globally add 207 trackers and have the options in advanced for max seeding.....could that be it?

magnakai
Newbie
Newbie
Posts: 5
Joined: Fri Feb 14, 2020 5:42 am

Re: many torrent on external drive: RAM usage killing my Archlinux desktop help!

Post by magnakai » Fri Feb 14, 2020 5:53 pm

It's grown to 9G ram used now on my desktop........16g ram total and its starting to make the box swap.

What can I set to make qb use less ram?
disk cache disabled
os cache off


magnakai
Newbie
Newbie
Posts: 5
Joined: Fri Feb 14, 2020 5:42 am

Re: many torrent on external drive: RAM usage killing my Archlinux desktop help!

Post by magnakai » Mon Feb 17, 2020 3:58 am

Does anyone know why the RAM gets eaten up until box slows to snail?

User avatar
Peter
Administrator
Administrator
Posts: 1721
Joined: Wed Jul 07, 2010 6:14 pm

Re: many torrent on external drive: RAM usage killing my Archlinux desktop help!

Post by Peter » Tue Feb 18, 2020 4:01 pm

tl;dr: your external storage is too slow. Linux is trying to help you by caching. but the storage can never catch up. resulting in huge ram usage.

- slow down your torrent client as your external HDD is clearly incapable of writing out data
- change IO scheduler for Linux
- change mount option for external drive in /etc/fstab so data gets written instantly and the write is not cached.

this is NOT a qBittorrent issue.

Post Reply