Go to advanced search

by jahboater
Tue Mar 31, 2020 1:49 am
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

From google, this link shows how to create a swap file or a swap partition:
https://www.fosslinux.com/1064/how-to-c ... x-mint.htm
by jahboater
Mon Mar 30, 2020 11:18 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

nick8967 wrote:
Mon Mar 30, 2020 9:32 pm
How do I see where the USB is mounted??
try:

lsblk
by jahboater
Mon Mar 30, 2020 11:17 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

nick8967 wrote:
Mon Mar 30, 2020 11:13 pm
The commands for make a swap file on the usb are these?

Code: Select all

sudo sed -i 's/^CONF_SWAPSIZE=[0-9]*$/CONF_SWAPSIZE=1024/' /etc/dphys-swapfile
sudo /etc/init.d/dphys-swapfile restart
No!
That is to increase the existing swap.

Please read what @ejolsen wrote a few posts ago.
by jahboater
Mon Mar 30, 2020 2:40 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

Yes 64-bit. Two more questions: 1) If I change OS to something else (UBUNTU for example), can I achieve more than 2GB swap size? Sorry never tried (but I doubt it). 2)The above configuration does it work on Rpi 3 B+ ? Can I achieve 4 GB swap size there? I have never tried more than 1GB of swap on a...
by jahboater
Mon Mar 30, 2020 2:29 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

I updated the swap size to 4096, but I get this: Swap: 99M 0B 99M I just tried expanding the swap to 4GB and get: [email protected]:~ $ sudo sed -i 's/^CONF_SWAPSIZE=[0-9]*$/CONF_SWAPSIZE=4096/' /etc/[email protected]:~/ge $ sudo /etc/init.d/dphys-swapfile restart [ ok ] Restarting dphys-sw...
by jahboater
Mon Mar 30, 2020 2:22 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

I updated the swap size to 4096, but I get this: Swap: 99M 0B 99M Did you do the restart?: sudo /etc/init.d/dphys-swapfile restart Any solution to this: MemoryError: Unable to allocate array with shape (50000, 32, 32, 3) and data type float32 Is that 781MB ? if so it should be fine - it is in C any...
by jahboater
Mon Mar 30, 2020 1:59 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

nick8967 wrote:
Mon Mar 30, 2020 1:57 pm
Thank you! What is maximum swap size I can achieve?
No idea!
See my comment above.

I suggest experimentation .....

Why do you need so much?
by jahboater
Mon Mar 30, 2020 1:56 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

You will appreciate that swapping to a slow SD card will work, but the Pi likely slow to a crawl.

It does allow a program transiently using a lot of memory to complete that would otherwise fail.
by jahboater
Mon Mar 30, 2020 1:54 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

Thank you! And how do I extend the RAM, by consuming space from the microSD? This is one way: sudo sed -i 's/^CONF_SWAPSIZE=[0-9]*$/CONF_SWAPSIZE=1024/' /etc/dphys-swapfile sudo /etc/init.d/dphys-swapfile restart It increases the swap size to 1GB (alter the 1024 as required). (Note: I have never tr...
by jahboater
Mon Mar 30, 2020 1:51 pm
Forum: General discussion
Topic: Sony UK factory to close until 20 April
Replies: 13
Views: 460

Re: Sony UK factory to close until 20 April

Sony took on the manufacture of an unknown product for an unknown market - quite a business risk.

I wish the best for all the staff at Pencoed.
by jahboater
Mon Mar 30, 2020 1:42 pm
Forum: Troubleshooting
Topic: How to check the RAM
Replies: 28
Views: 396

Re: How to check the RAM

A summary of memory and swap:

Code: Select all

[email protected]:~ $ free -h
              total        used        free      shared  buff/cache   available
Mem:          3.8Gi        98Mi       3.5Gi       9.0Mi       151Mi       3.6Gi
Swap:          99Mi          0B        99Mi
[email protected]:~ $ 
by jahboater
Mon Mar 30, 2020 9:37 am
Forum: General discussion
Topic: Raspberry Pi 4 overheat : why not underclocking a little ?
Replies: 26
Views: 7163

Re: Raspberry Pi 4 overheat : why not underclocking a little ?

I'm all for those massive passive heat sinks. For small jobs they do a good job. If you're running your CPU for longer duration at 25% or more load, you'll need to go with an active cooling solution (fan). You don't. At stock clocks the heatsink cases floating around will remove enough heat to stay...
by jahboater
Sun Mar 29, 2020 2:23 pm
Forum: Beginners
Topic: Starting s Raspberry Pi for the First Time
Replies: 9
Views: 189

Re: Starting s Raspberry Pi for the First Time

Probably easiest to just copy Raspbian back on and start again.
by jahboater
Sun Mar 29, 2020 2:16 pm
Forum: General discussion
Topic: run on first boot without messing with the root partition
Replies: 3
Views: 129

Re: run on first boot without messing with the root partition

aristosv wrote:
Sun Mar 29, 2020 1:28 pm
I want to run a few commands on first boot, on a clean installation, without having to mount the root partition on a Linux machine, or use ext4 readers in Windows.
If you have Windows 10, could you mount the ext4 partition in WSL ??

Or use a spare Raspberry Pi ....
by jahboater
Sun Mar 29, 2020 9:57 am
Forum: General discussion
Topic: Pi 4 old and new, how can I tell them apart?
Replies: 12
Views: 464

Re: Pi 4 old and new, how can I tell them apart?

Code: Select all

cat /proc/device-tree/model;echo
by jahboater
Sat Mar 28, 2020 7:31 pm
Forum: Beginners
Topic: Cooling fan
Replies: 15
Views: 420

Re: Cooling fan

That was the earlier firmware though. That's the key! With the latest firmware, this nasty stress test wont get the temp much over 65C even overclocked:- wget https://raw.githubusercontent.com/ssvb/cpuburn-arm/master/cpuburn-a53.S gcc -o cpuburn-a53 cpuburn-a53.S ./cpuburn-a53 Running this used to ...
by jahboater
Fri Mar 27, 2020 11:56 pm
Forum: Beginners
Topic: Help installing NOOBS
Replies: 18
Views: 376

Re: Help installing NOOBS

Make sure you get the PSU too. This is the "official" one, which will always work properly, others may not (and its cheap): https://thepihut.com/products/raspberry-pi-psu-uk There have been endless problems over the years with people trying to use random phone chargers etc. There is an "official" HD...
by jahboater
Fri Mar 27, 2020 4:15 pm
Forum: Raspbian
Topic: emptying or deleting large restart.txt file from root
Replies: 6
Views: 169

Re: emptying or deleting large restart.txt file from root

AGID wrote:
Fri Mar 27, 2020 4:10 pm
Thanks for your fast reply but i tried sudo rm restart.txt but it didn't delete it.
Is restart.txt in your current directory?
by jahboater
Thu Mar 26, 2020 8:33 pm
Forum: Beginners
Topic: Cooling fan
Replies: 15
Views: 420

Re: Cooling fan

portis wrote:
Thu Mar 26, 2020 8:27 pm
With default configuration it runs really hot with out fan or heatsink. No programs running. Why? What is it doing?
How are you measuring the temperature?
Its usually done with:-

Code: Select all

vcgencmd measure_temp
With nothing running, my Pi4 idles at around 35C depending on the room temperature.
by jahboater
Thu Mar 26, 2020 8:05 pm
Forum: Beginners
Topic: Finding and moving files based on year
Replies: 9
Views: 155

Re: Finding and moving files based on year

A job for "find" by the look of it.
by jahboater
Thu Mar 26, 2020 7:46 pm
Forum: Beginners
Topic: Cooling fan
Replies: 15
Views: 420

Re: Cooling fan

Is the heat too much for the memory card tough? I know it will throttle, but at such high temp. that it could damage the memory card or USB attached devices like memory sticks etc? It's the SoC chip that gets warm, not the SD card. Though on the Pi3B+ and the Pi4, the heat is dissipated over the ci...
by jahboater
Thu Mar 26, 2020 10:05 am
Forum: Advanced users
Topic: What is the max micro sd card for Rasberry Pi 4 B / 4GB? can use a 64GB micro sd card like below? upper?
Replies: 16
Views: 759

Re: What is the max micro sd card for Rasberry Pi 4 B / 4GB? can use a 64GB micro sd card like below? upper?

Unless you are using NOOBS, don't format the card at all. That says exFAT should work, but I'd like it from Paul, or someone else who's done it. (Not that I can't try it, then format it as FAT32 and reflash it, if it doesn't boot as exFAT, You need to understand how the Pi OS is installed. The engi...
by jahboater
Wed Mar 25, 2020 6:41 pm
Forum: Teaching and learning resources
Topic: Lockdown home schooling
Replies: 18
Views: 648

Re: Lockdown home schooling

epoch1970 wrote:
Wed Mar 25, 2020 5:02 pm
Well, I'm not too proud either of my fellow countrymen, right now. Individuals or organizations, everybody is acting silly. If they're acting, that is...
Not everyone ...
405,000 people signed up to act as volunteers for the NHS in the first 24 hours.
by jahboater
Wed Mar 25, 2020 6:01 pm
Forum: Beginners
Topic: Cooling fan
Replies: 15
Views: 420

Re: Cooling fan

Does the raspberry pi need a cooling fan? Is there a way to do with out one? There are many posts about this. None of my Pi's have ever had a fan. Passive cooling ranging from a small stick-on heatsink, to a larger one like this: https://uk.rs-online.com/web/p/heatsinks/7500951/ or a metal case lik...
by jahboater
Wed Mar 25, 2020 5:49 pm
Forum: General discussion
Topic: Is it normal for a Raspberry Pi to restart itself?
Replies: 21
Views: 6034

Re: Is it normal for a Raspberry Pi to restart itself?

While the Pi is running, this command:

Code: Select all

vcgencmd get_throttled
will report any occurrences of throttling (from over heating) or problems with under-voltage that have happened since the last boot.
If it returns 0x0 your Pi is fine.

Go to advanced search