WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Could be [tiny]core improved?  (Read 50288 times)

Offline Leee

  • Wiki Author
  • Full Member
  • *****
  • Posts: 240
Re: Could be [tiny]core improved?
« Reply #75 on: October 25, 2026, 04:20:39 AM »
What version of openwrt are you guys running?  I have it installed on my little Linksys router and I can get into it via either the browser or ssh.

core 17.1 x86_64, jwm

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 470
Re: Could be [tiny]core improved?
« Reply #76 on: October 25, 2026, 05:42:16 PM »
I'm running OpenWRT 23, but like I say the Telnet server is a static binary I compiled myself so the openWRT version isn't that relevent. My router was always too "tiny" to install the web interface, but I could use SSH. However Telnet avoids the inevitable problem of SSH clients updating one day and suddenly not wanting to connect to it anymore. I also have FTP installed for file transfer. I built a custom installation image to flash onto it with those and other customisations.

Offline neonix

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 641
Re: Could be [tiny]core improved?
« Reply #77 on: November 14, 2026, 10:32:09 AM »
If you don't have telnet, or SSH on your router, you can use ftp to configure many services like tftp or http server. Simply edit text file in midnight commander with F4. Midnight commander has build in ftp client and txt file editor.

Offline neonix

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 641
Re: Could be [tiny]core improved?
« Reply #78 on: November 24, 2026, 02:27:14 PM »
I am now interested about energy efficient computers. For example most efficient Raspberry Pi Zero 2 use less  than 1 watt.
https://www.cnx-software.com/2021/12/09/raspberry-pi-zero-2-w-power-consumption/

In 2000 Linus Torvalds was engaged in developing Midori Linux, a Linux distribution focused on energy efficiency.
TC could have energy efficient flavor with:
- cpufreq with slowest governor
- headless version without  terminal displaying on gpu
- zram with bootcodes to use all RAM
- turn off USB when not needed
- dedicated kernel to each computer
- changing OS jitter
https://www.kernel.org/doc/html/latest/timers/no_hz.html 
- decrase speed of ethernet
https://en.wikipedia.org/wiki/Energy-Efficient_Ethernet
- decrease standard DPMS time
- faster boot using more efficient compression
- suspend-to-Idle
https://www.kernel.org/doc/html/latest/admin-guide/pm/sleep-states.html
- turn off sounds card
- compressed tmpfs
- low resolution and low color display

Online Stefann

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 311
Re: Could be [tiny]core improved?
« Reply #79 on: Today at 02:06:45 AM »
I originally (in 2008) selected my VIA EDEN 500MHz 32bit 1core x86 for exactly the reason of low power consumption. I use it as 24/7 home automation controller. Spec sheets promised me 1Watt. However… when I actually got the thing operational real life power consumption was 5.5 … 7Watt. The chipset for pheripherals was drawing 3.5watt and than also ram takes something.
In theory I could have known this but these were my first steps on this so this was part of my learning process.

I checked the link on raspberry pi zero and those tests include full system and keep the system below  1 watt. So I sure consider that impressive!

Now.. on “can TC be improved for that”….
Is TC not already serving this?
I donot have an rpi so I have no experience with the rpi version of tc but I’m under impression you could run tc on this rpi zero.
Can you than not realize a lot of your indicated directions simply by bootcode?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15915
Re: Could be [tiny]core improved?
« Reply #80 on: Today at 03:13:04 AM »
I donot have an rpi so I have no experience with the rpi version of tc but I’m under impression you could run tc on this rpi zero.

Yes you can :)

Online Stefann

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 311
Re: Could be [tiny]core improved?
« Reply #81 on: Today at 04:32:20 AM »
I looked into the rpi zero. It is a really fun thing but has only 512MB ram. That makes it less suited than my current system with 1G ram.
TC is small but extra applications bring my ram-footprint to about 200MB, running a pythonscript requires 120MB extra. I like the extra headroom.
On "energy consumption" My bigger goal would be to force my hybrid solar/battery inverter from standby (50W) to idle (3W) when I not use it.
I also think that I could maybe knockdown the energy consumption of my current system by 1 or 2W by selectively disabling non-used drivers (but 1st I need to solve my crash problem)
The rpi 4 or 5 can be delivered with ram up to 8G but it is way more expensive and eats a lot more power.
« Last Edit: Today at 04:34:28 AM by Stefann »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15915
Re: Could be [tiny]core improved?
« Reply #82 on: Today at 04:49:57 AM »
You could look for an RPi3 second hand.

Online Stefann

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 311
Re: Could be [tiny]core improved?
« Reply #83 on: Today at 04:58:07 AM »
true...
Note this was basically a reaction to @neonix on potential for low power of the rpi zero.
The rpi3 supports more ram but draws much more power than the zero.
All in all... if I succeed in solving the crash problem I'm quite happy with my current system.
It's really fun that with TC I can use this 18 year old 2008 system with latest linux, latest gcc and latest python. Try that with windows or macOS.

Offline nick65go

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1041
Re: Could be [tiny]core improved?
« Reply #84 on: Today at 07:09:33 AM »
To reduce TOTAL power consumption, CPU is just a small item...
- My laptop has a 17 inch display, so it consumes almost all of the battery power.
- the fast APU processes the tasks then the faster it could go to deep sleep, so a lazy CPU is not good.
- Fans on CPU and/or GPU use power, so avoid them.
- use a hibrid APU=CPU+PGU, does not loose energy between CPU/GPU lines. Modern APU use P(power)+E(economic) cores.
- use SDD/nvme (solid state disk). Rotation HDD use more power - to spin the disk.
- swap on disk uses the disk, so consume more power than ZRAM.

I could go on and on, but the point is for minimal power usage it needs a specific/dedicated device, not a general computer :P . YMMV.
BTW: Assume that you "build" your ideal extra low-power computer, which consumes 1 watt instead of let/s say 20 Watts. So you save energy/earth for how many US$ gain in your pocket? But how about your time (in US$) you "invested" to do it? What is your ROI (rate of return) % for you wonderfull achievement? [you do not need to answer, it was a rhetoric question].
« Last Edit: Today at 07:22:23 AM by nick65go »

Online Stefann

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 311
Re: Could be [tiny]core improved?
« Reply #85 on: Today at 07:23:53 AM »
Yes true.
but...
I'm running a fanless, headless 500MHz 1core 32 bit cpu with compact flash card as storage.
Its now consuming between 5.5 and 7watt (total, measured on the power adapter)
processor has tpd of 1 watt; chipset is specced a 3.5 watt totaling 4.5watt under full load.
There is ram and compact flash which will add 1 or 2 watt so the 5.5watt is totally understandable.
Ik could probably trim 1 or 2 watts down by disabling some devices.

Anyway... as said... I was reacting to @neonix on his suggestion for low-power TC for rpi zero.
My take is that "TC does not really much modification for that", I would expect one can reduce power by disabling drivers which is easily done with bootcodes.
I'm a bit careful however.....
If I disable the video adapter and keyboard... "how do I recover in case of a lockup"?
(I know the answer: boot from a rescue usb that has video and keyboard enabled. That however is a lot of burden "just to save 1 watt = 8kWh = 2..3euro per year on 24/7 use")
« Last Edit: Today at 07:27:45 AM by Stefann »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 13042
Re: Could be [tiny]core improved?
« Reply #86 on: Today at 08:58:15 AM »
Hi Stefann
... If I disable the video adapter and keyboard... "how do I recover in case of a lockup"? ...
Depends on the nature of the lockup:
1. If your program crashed but the kernel and network still respond, connect with SSH.
2. If the kernel is hung, press the reset button.

Online Stefann

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 311
Re: Could be [tiny]core improved?
« Reply #87 on: Today at 10:20:32 AM »
@Rich,
Yes you are right.
but...
All lockups I had sofar made ssh nonfunctional
Reset button will indeed work but if you did set the "low power configuration" as boot configuration you may endup in the same "non operational mode"
But... now I think of it a bit better
You could set the "low power configuration" as standard boot-label but additionally have a boot-label with "for sure operational config"
Than simple "sudo reboot" of the headless system over ssh will bring you back in the low power mode but IF you messed up things to the extend that the low power mode is not even functional over ssh directly after boot you can always during boot from the physical console choose an other boot option.

Until a year ago I was very careful not to try overly exotic boot configuration for reason I had no console to recover from that. During my crash investigation I installed a physical console. That indeed allows me to make and use a "potential unreachable" configuration.