Go to advanced search

by Barabba
Tue Sep 15, 2020 9:25 pm
Forum: General discussion
Topic: lxpanel is taking too much RAM (and growing)
Replies: 36
Views: 2756

Re: lxpanel is taking too much RAM (and growing)

Hi mates, I'm using Raspberry only for Node Red, I've never connected nothing to HDMI port and I will not, I still have this lxpanel leaking and I don't know where it comes from, when I boot my RB3 uses about 0,20GB of RAM and after 1,5months I have 0,41GB. The process is using 18% of ram.. for what...
by Barabba
Tue Sep 15, 2020 9:20 pm
Forum: General discussion
Topic: Node RED is taking too much RAM (and growing)
Replies: 3
Views: 158

Re: Node RED is taking too much RAM (and growing)

Well, I've discovered that NR isn't the cause of leaking but lxpanel process, I wrongly created a new topic while I just wanted to post it on lxpanel thread and continue to talk there. Sorry mates for mistake, you may remove this topic, thanks
by Barabba
Tue Sep 15, 2020 9:16 pm
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

Re: There is any way to count the SD write cycles that are occurring?

another option you have to track this stuff is: echo 1 > /proc/sys/vm/block_dump once you run that, every single IO operation gets logged into `dmesg` (examples from an x86 system, not a pi) [550378.805447] systemd-journal(6579): READ block 124309000 on nvme0n1p1 (48 sectors) [550380.015405] Chrome...
by Barabba
Mon Sep 14, 2020 10:16 pm
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

Re: There is any way to count the SD write cycles that are occurring?

For the OP's OQ, install sar, and get it to log to tmpfs or similar. Old fashioned it may be, but it does the job. to solve my problem I took advance of this solution, and I typed the following commangs to my RB: sudo apt-get -y install sysstat (to install systat) sudo nano /etc/sysstat/sysstat (to...
by Barabba
Mon Sep 14, 2020 8:39 pm
Forum: General discussion
Topic: Node RED is taking too much RAM (and growing)
Replies: 3
Views: 158

Node RED is taking too much RAM (and growing)

Hi mates, I'm using Raspberry only for Node Red, I've never connected nothing to HDMI port and I will not, I still have this leeking and I don't know where it comes from, when I boot my RB3 uses about 0,20GB of RAM and after 1,5months I have 0,41GB. The process is using 18% of ram.. for what I don't...
by Barabba
Wed Mar 18, 2020 10:56 am
Forum: General discussion
Topic: lower SD writes to zero, how to eventually stop jbd2
Replies: 7
Views: 731

Re: lower SD writes to zero, how to eventually stop jbd2

Thank you mates, I haven't undersood the last 2 posts. I may say I'm happy with the solutions I've manually created on my RP, I'm checking the logs and now are close to zero, I'm not going to install something else or to change the ext4, the SD is already 32GB and it will last for years if only few ...
by Barabba
Thu Mar 12, 2020 6:24 pm
Forum: General discussion
Topic: lower SD writes to zero, how to eventually stop jbd2
Replies: 7
Views: 731

Re: lower SD writes to zero, how to eventually stop jbd2

If you don't use the HDMI and your raspberry is just used as a computing unit then it's really good idea to disable the GUI interface, you just need a sudo raspi-config, go too bot options, desktop and chose console. It will prevent eventually RAM leaks and undesidered write cycles
by Barabba
Thu Mar 12, 2020 6:21 pm
Forum: General discussion
Topic: lxpanel is taking too much RAM (and growing)
Replies: 36
Views: 2756

Re: lxpanel is taking too much RAM (and growing)

that's what I was looking for, thank you!
by Barabba
Thu Mar 12, 2020 2:14 pm
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

Re: There is any way to count the SD write cycles that are occurring?

Thank you a lot for explaining me :) today I?ve learned something new :)
by Barabba
Wed Mar 11, 2020 5:13 pm
Forum: General discussion
Topic: lower SD writes to zero, how to eventually stop jbd2
Replies: 7
Views: 731

Re: lower SD writes to zero, how to eventually stop jbd2

stan_qaz wrote:
Tue Mar 10, 2020 10:07 pm
ntpd is the time sync daemon, if you don't care about time you can shut it down.
I figured out that on hourly sheduler there was the fakeclock update, I moved it to daily :)

I need to know if mmcblk0p2 can be only the phisical SD and no other devices, thank you!
by Barabba
Wed Mar 11, 2020 5:11 pm
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

Re: There is any way to count the SD write cycles that are occurring?

dickon wrote:
Tue Mar 10, 2020 11:21 pm
For the OP's OQ, install sar, and get it to log to tmpfs or similar. Old fashioned it may be, but it does the job.
Thank you both for answers.
I'll leave to this OS, I'm not going to format and copy all data again.

What is OP's OQ? Sorry I'm a newbie here. Is this suggestion about jbd2? Thanks!
by Barabba
Wed Mar 11, 2020 5:09 pm
Forum: General discussion
Topic: lxpanel is taking too much RAM (and growing)
Replies: 36
Views: 2756

Re: lxpanel is taking too much RAM (and growing)

Just to don't forot about, hopefully someone will teach me how to kill forever lxpanel, thank you )
by Barabba
Tue Mar 10, 2020 6:51 pm
Forum: General discussion
Topic: lower SD writes to zero, how to eventually stop jbd2
Replies: 7
Views: 731

Re: lower SD writes to zero, how to eventually stop jbd2

There is also process ntpd that sometimes write to SD, is that necessary?
iotop reported this ntpd -p /var/~-g -u 111:115
by Barabba
Tue Mar 10, 2020 6:18 pm
Forum: General discussion
Topic: lower SD writes to zero, how to eventually stop jbd2
Replies: 7
Views: 731

lower SD writes to zero, how to eventually stop jbd2

Hi mates I recently focused to eliminate write cycled from SD for my RP3 and I can say I obtained a general good result, shortly I did: 1) moved logs to RAM 2) delete swap and disabled it forever 3) disabled WiFi so lxpanel will not bother writing its log with the scan results. This involved also jb...
by Barabba
Tue Mar 10, 2020 3:39 pm
Forum: General discussion
Topic: SD card write count?
Replies: 16
Views: 2797

Re: SD card write count?

If someonw is interested on reducing SD writes, he can find some interesting commands here:
viewtopic.php?f=63&t=267017&p=1624479#p1624479
by Barabba
Tue Mar 10, 2020 2:58 pm
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

Re: There is any way to count the SD write cycles that are occurring?

Maybe I've found myself a solution, at this post I've found some infos: https://groups.google.com/forum/#!topic/acmesystems/OR5ZaQPS3yw so I run a sysctl vm.block_dump=1 and for some times a dmesg and I've figured out that was lxpanel writing a log /home/al/.cache/lxsession/LXDE-pi/run.log with many...
by Barabba
Tue Mar 10, 2020 1:41 pm
Forum: General discussion
Topic: lxpanel is taking too much RAM (and growing)
Replies: 36
Views: 2756

Re: lxpanel is taking too much RAM (and growing)

No, Teamviewer is not responsible for it. I have the same behaviour with VNC. The culprit is LXpanel which has a memory leak that is not yet fixed. If you let it go, you will end up with the error: Failed to fork (Cannot allocate memory) Then it will be too late, you will not even be able to open a...
by Barabba
Tue Mar 10, 2020 1:32 pm
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

Re: There is any way to count the SD write cycles that are occurring?

just for sharing my experience to interested users, to reduces SD writes I did: 1) Moved LOG folder to RAM, by the program log2ram which is really useful because it does itself all needs to have a permanent installation $ sudo apt -y install git $ git clone https://github.com/azlux/log2ram.git $ cd ...
by Barabba
Tue Mar 10, 2020 1:24 pm
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

Re: There is any way to count the SD write cycles that are occurring?

thank you, thank you a lot for your kind answers! cat /proc/diskstats could be a really powerful diagnostic program, but actually doesn't let me understand which process wrote to sd. Iotop does but seems it doesn't output all the infos I need. Please look at the foto, in my case I have writes from j...
by Barabba
Thu Mar 05, 2020 10:18 am
Forum: Troubleshooting
Topic: Permanently disable swap on Raspbian Buster
Replies: 76
Views: 26696

Re: Permanently disable swap on Raspbian Buster

After I run the following commands and I've rebooted, no more swap. sudo dphys-swapfile swapoff && \ sudo dphys-swapfile uninstall && \ sudo systemctl disable dphys-swapfile pi@raspberrypi:~ $ free -h total used free shared buff/cache available Mem: 3.8Gi 615Mi 1.8Gi 96Mi 1.4Gi 2.9Gi Swap: 0B 0B 0B...
by Barabba
Thu Mar 05, 2020 9:58 am
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

Re: There is any way to count the SD write cycles that are occurring?

Mates, thank you for answering, I don't need to stress SD and guess how many cycles it can afford, I need to monytor the system/kernel and guess how many bytes are writiing to it in the next hour, to check if it is under strass by system, somehow, for some reasons. On Windows I can monitor it, on Li...
by Barabba
Thu Mar 05, 2020 9:55 am
Forum: General discussion
Topic: lxpanel is taking too much RAM (and growing)
Replies: 36
Views: 2756

Re: lxpanel is taking too much RAM (and growing)

Thank you for your reply, running from root I had this output: MoTTY X11 proxy: Unsupported authorisation protocol Cant connect to display: localhost:10.0 than I used kill `pidof lxpanel` I kindly need the answers before, is teamviewer responsible of that? Should I reload lxpanel every X days? how c...
by Barabba
Wed Mar 04, 2020 10:59 pm
Forum: General discussion
Topic: There is any way to count the SD write cycles that are occurring?
Replies: 16
Views: 1382

There is any way to count the SD write cycles that are occurring?

Hi, I would like to understand how reliable is my configuration on RP3, I've installed log2Ram and I'm going to delete swap file, but before I would see how my RP is behaving..
there is any way to monitor the writing cycles to SD? Thank you
by Barabba
Wed Mar 04, 2020 10:38 pm
Forum: General discussion
Topic: lxpanel is taking too much RAM (and growing)
Replies: 36
Views: 2756

lxpanel is taking too much RAM (and growing)

Hi mates, I'm using a RP3 for NodeRed only, anyway I've installed on it Teamviewer to manage it remotely in case I need something, cause my internet provider gives me only a private IP and I can't port-forwarding the SSH. I'm not using HDMI port, for me a "desktop" GUI is not important, only for tea...
by Barabba
Mon Feb 17, 2020 2:42 pm
Forum: General discussion
Topic: Use Raspberry to decode 5.1
Replies: 1
Views: 223

Use Raspberry to decode 5.1

Hi! I've an issue, cheap 5.1 speaker systems only support analog signal as imput, not SPDIF/Toslink, and at the same time TVs only outputs with SPDIF. We need a converter, they look on internet a bit expensive so I thought about use a Raspberry with a multichannel USB device, such like CM6206, that ...

Go to advanced search