1

I would like to change the frequency of the RPI, how can I do that, I'm using low level programming. Also how can I get the used memory and free memory?

goldilocks
  • 60,325
  • 17
  • 117
  • 234
Mokus
  • 983
  • 5
  • 10
  • 19

2 Answers2

3

To get the memory usage, try the following command, this will give you usage in MB.

free -m

Are you referring to the SOC frequency? It currently cannot be set dynamically (while the RPi is on). But there should be a firmware update sometime soon, that enables this. Keep an eye out for it. If your speaking not dynamically, then the overclock values can be changed in the /boot/config.txt file. Refer to this link

Vincent P
  • 2,210
  • 15
  • 24
2

If you are using a raspbian based distribution you can use "raspi-config" to change the memory-split, overclock your raspi and many more.

teissler
  • 231
  • 3
  • 6