compiling (large) programs on pbp
#4
@pine76
Part of the problem is that Pine64 have allowed somewhat aggressive over-clocking of the CPUs. This means that under higher load, the CPU will draw more power than is expected. The only place to get the extra power is the battery. This is perfectly fine for a burst of shorter term activity. For example compiling a small program, or re-calculating a spreadsheet. For other longer running tasks that will drain the battery completely, this over-clocking is bad.

What I think we need, is a software package that:
  • Detects external power is plugged in
  • CPU is busy and has been busy for a while, (like 2nd entry in uptime)
  • Battery is draining, (meaning it's noticeably dropping charge like 10%)
When those conditions are met, throttle the CPUs some. If conditions still exist later, throttle more until the battery is no longer draining.

This will cause the long running task(s), (like the kernel compile), to take longer, but, it will finish. Instead of crashing. The alternative is simply to run those long compiles on another computer.

I have an interest in this as I prefer Gentoo Linux, which compiles most / all the packages from source. This has the advantage of allowing specific options for each package, (for example allowing SCTP for OpenSSH). But, their is zero chance I can perform an update as is, as several hours compiling would likely drain the battery and cause the PBP to crash. So, so for the moment I am using Manjaro and the default Debian.
--
Arwen Evenstar
Princess of Rivendale


Messages In This Thread
compiling (large) programs on pbp - by pine76 - 09-06-2020, 08:31 AM
RE: compiling (large) programs on pbp - by PakoSt - 09-06-2020, 02:20 PM
RE: compiling (large) programs on pbp - by KC9UDX - 09-06-2020, 02:20 PM
RE: compiling (large) programs on pbp - by Arwen - 09-07-2020, 02:00 PM
RE: compiling (large) programs on pbp - by KC9UDX - 09-24-2020, 02:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Missing A Few Programs on PostmarketOS on PB Pro publiclewdness 0 556 03-06-2023, 11:33 PM
Last Post: publiclewdness
  RAM deficiency after recent large Manjaro update? stozi 1 1,658 11-12-2021, 06:19 AM
Last Post: maxjrh
Smile Easy cross-compiling elijahr 4 5,714 09-25-2020, 12:27 PM
Last Post: Paulie420
  Frequent segfaults etc. while compiling mfritsche 13 14,771 07-15-2020, 04:12 PM
Last Post: mfritsche
  Compiling WireGuard (and other things requiring linux-headers) on Debian+Mate Dendrocalamus64 1 3,578 04-02-2020, 07:07 PM
Last Post: Dendrocalamus64

Forum Jump:


Users browsing this thread: 1 Guest(s)