(2018-06-11, 06:34 PM)Sailoog Wrote: Thanks, we could limit the allowed size of this log file or even prevent to write on it but we should try to find the loop that is creating such amount of messages.
We should wait for some feedback from other users suffering this issue to confirm.
Actually I think that it should be another problem, because my system doesn't freeze. That file increases its size suddenly but only once. After become giant file, it doesn't change any more. Symptoms aren't equal.
I've updated the link for the log I've make: Link to the log.
If somebody wants to do a similar log, in order to investigate what is happening with your system, here is the code I've used in a bash script:
Code:
#!/bin/bash
# Test program to know OpenPlotter partition's size along the time
# It'll obtain the /dev/root/ directory's size each 1 hour
# To Stop it: kill or Ctrol+c
while true; do
echo ------------------------- >> size_test.txt
date >> size_test.txt
echo "df -h " >> size_test.txt
df -h >> size_test.txt
echo "sudo du -xh / "'| grep -P "G\\t"' >> size_test.txt
sudo du -xh / | grep -P "G\t" >> size_test.txt
echo ------------------------- >> size_test.txt
echo "For stopping it, Ctrol+c"
sleep 3600
done
How to use:
- In raspberry (in a new installation, e.g.) make a new file in your home (/home/pi): Right button of the mouse and choose "Create new" --> 'Empty file'. Give it this name: SizeTest.sh
- Open the new file and paste the code which is above and close it, keeping changes.
- Right button on the new file, choose 'Properties' and in the tab 'Permissions' choose 'Anyone' for 'Execute' and click in Ok.
- Open a terminal (Menu Raspy --> Accessories --> Terminal) and write:
Code:sh SizeTest.sh
- It will create a new file "size_test.txt" in your home (/home/pi) logging the size of directories at each hour until press Ctrol+c in the Terminal. While it's running you can use the Raspberry, but not close Terminal.
- If the system freezes and collapses, that file can give you some tracks.