Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Limiting amount of memory a program can use.
Date: Mon, 29 Aug 2022 07:24:58
Message-Id: 8bbf8074-c932-9f0e-1421-620c849d5503@gmail.com
In Reply to: Re: [gentoo-user] Limiting amount of memory a program can use. by ralfconn
1 ralfconn wrote:
2 > On 8/28/22 14:24, Dale wrote:
3 >> Howdy,
4 >>
5 >> As most know, I got a much faster internet and I use torrent software,
6 >> quite a lot.  I was using Ktorrent and it was OK but it was slow.  I
7 >> started using Qbittorrent and like it better in a way but it has its own
8 >> speed issues and both affect my desktop response.  I did some googling
9 >> and used top to figure out that they are using a LOT of memory for
10 >> cache.  At times, it uses well over half my memory just for cache.  It
11 >> also gets to a point where it is using swap even tho I have swappiness
12 >> set to 1, basically use swap only to prevent a crash from out of memory
13 >> problems.  We all know how slow swap use can make things.  As it is, I
14 >> reduced the number of active files which is not something I want to do.
15 >> If I receive, I like to send as well.  After all, someone sent to me as
16 >> well.  What I would like to do is limit the amount of memory torrent
17 >> software can use.  I don't know exactly how to do that tho.  It's not
18 >> something I've ever done.
19 >>
20 >> Is this something I do on the command line or a setting is some file
21 >> somewhere?  I don't even know where to start on this.  By the way, I'm
22 >> maxed out at 32GBs of memory for this mobo.  So adding memory isn't a
23 >> option.  Is there even a mobo that has a 64GB option??? :/
24 >
25 > Not really an answer to your question but here I never had
26 > speed/responsiveness/memory issues with transmission (Xfce, 16Gb RAM,
27 > 50Mbit/s network bandwidth ):
28 >
29 > [I] net-p2p/transmission
30 >
31 >      Available versions:  3.00-r1^t (~)3.00-r4^t **9999*l^t
32 > {appindicator cli gtk lightweight mbedtls nls qt5 systemd test web}
33 >      Installed versions:  3.00-r4^t(01:14:38 PM 05/29/2022)(cli nls
34 > -appindicator -gtk -lightweight -mbedtls -qt5 -systemd -test)
35 >      Homepage:            https://transmissionbt.com/
36 >      Description:         A fast, easy, and free BitTorrent client
37 >
38 > I use it without GUI (-gtk -qt5) because I find the web interface just
39 > fine. Also, being server-based it runs regardless of who's logged into
40 > the PC, which is a plus here.
41 >
42 > raffaele
43
44
45 I may look into that.  Just to see if it is even better than Ktorrent
46 and Qbittorrent.  Never know.  I may like it like Mikey.  lol  It's a
47 old TV commercial. 
48
49 I'm not sure what happened but it started acting better.  One, I did
50 remove a lot of items that were just sitting there.  Then I removed some
51 that had a high share ratio, I did a lot of sharing.  There was also a
52 update to QBT but at first it didn't help any.  It was after a few
53 restarts that it seemed to improve.  I did notice that at one point it
54 was uploading around 60 or 70MB/sec and desktop response slowed some but
55 not as bad as before.  I guess I need to limit what it uploads a bit.  I
56 know how to do that. 
57
58 So, I think the update improved things but took a few restarts to kick
59 in or something.  Removing some unused files helped too.  I wonder if I
60 could use torrent on a Raspberry Pi?  :-)  lol 
61
62 By the way, I notice this in df and mount:
63
64
65 root@fireball / # df -h | grep group
66 cgroup_root                 10M     0   10M   0% /sys/fs/cgroup
67 root@fireball / # mount | grep group
68 cgroup_root on /sys/fs/cgroup type tmpfs
69 (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
70 openrc on /sys/fs/cgroup/openrc type cgroup
71 (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
72 none on /sys/fs/cgroup/unified type cgroup2
73 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
74 gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse
75 (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
76 portal on /run/user/1000/doc type fuse.portal
77 (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
78 root@fireball / #
79
80 I guess cgroups is enabled but I never touched any of it.  Only read a
81 few threads on here about it. 
82
83 Thanks to all.
84
85 Dale
86
87 :-)  :-)