Slow HP Elitebook 840 laptop ?

I currently use an employer issued HP Elitebook 840 G4-laptop for development work. It has annoyed me. It has bothered me. It has always been totally under-performing, despite its Intel Core i7 CPU, and even with power connected and all Windows power management settings verified to be sane. I didn’t figure out why until recently ..

As it turns out, the laptop has unfortune default BIOS-settings coupled with a power supply that is probably too weak. At a glance, all the important settings look ok: CPU turbo boost enabled, multi-core, hyper threading and virtualization enabled, runtime power management enabled. But there is another option that turns out to be extremely important for performance. It’s buried under “Built-in device options”, and it’s called “Boost Converter”. Off by default. There is no explanation in the BIOS itself about what this option does. (Hello, hardware vendors: how difficult can it be to provide a one sentence explanation for ALL the settings ?)

Eventually I found a PDF document online that explains various HP BIOS options. And it describes “Boost Converter” as:

Draws power from the battery to give the CPU a momentary performance gain.

Check ! Enabled. And the laptop suddenly becomes much more powerful when connected to A/C power. Because now, CPU turbo boost actually works. Instead of maxing out at 2,8GHz core speed, it now happily jumps up to 3,8GHz when needed. (There is also a BIOS option to enable turbo boost when only running on battery power, but I left that off.)

I now enjoy more fan noise, in addition to faster software builds, faster Docker containers and a faster IntelliJ. And in case you wondered, the battery still charges, even though it us used for extra power in addition to A/C when needed.

Why you should use Mozilla Firefox

Recently, Microsoft announced that it will base future versions of its Edge browser on the Chromium web engine (Blink, which also powers Google Chrome). The linked blog post states:

Making the web better through more open source collaboration

I will not argue against open source collaboration being a good thing, but the web will not be a better place with less browser diversity on the market. Instead, it will likely give Google Chrome an even more dominating position, because Edge will just become another boring Chrome clone. The situation gives much power to just one browser engine, which in turn will cause web development to focus more on this single implementation and less on compatibility and standards-compliance. I think standards are hugely important to keeping the web open and accessible for all, and I strongly dislike browser engine monopolies. Web publishing needs diversity in applications which consume, process and present the data, as a force that pulls it towards agreed upon and open standards.

Sometimes I encounter web applications and sites which are developed solely to work with Chrome, because “everybody uses Chrome” (or it’s just pure developer ignorance). That’s very unfortunate and takes us right back to the Internet Explorer web domination period, years ago. Now it’s called Chrome instead. Future Edge users will be using the Chrome engine under the hood, not even realising they will be giving more power to Google.

I’ve used the Mozilla Firefox browser for many years on the desktop, and in recent years also on mobile devices. It’s a personal preference based mostly on the fact that I really appreciate its features, and I dislike Chrome and its close ties to Google. I’ve also realized the importance in supporting diversity through my choices, and supporting independent market players as forces against monopoly.

If you’re a Chrome or Edge user, I encourage you to try Mozilla Firefox, or any other Firefox-based browser. It has a healthy focus on user privacy, and it is not developed by Google or Microsoft. It works great on mobile platforms as well. By using it, you are contributing to keeping the web open and accessible.

Final note, I am not in any way sponsored by the Mozilla Foundation, the opinions expressed here are solely my own.

Wasteful coinputing

The Bitcoin network consumes a significant portion of world’s energy to produce nothing but hot air and lucky winners. What a waste.

Stop right there, OMG block chain is cool right ?! Sure, I find the concept of a transparent distributed block chain, cryptographic verification and decentralized consensus interesting theoretically, but this post has less to do with theory and more to do with unfortunate consequences of applying the tech in practice. The system just isn’t good enough when a huge energy waste is an important aspect of maintaining network trust, security and integrity.

So, what’s up with all those electrons driving the Bitcoin* business ? In short, Bitcoin mining nodes compete to produce the next valid global block of transactions by hashing some random number along with other permutable details. There are specific requirements to what makes the resulting hash number valid (level of difficulty), which makes the process computationally expensive. In other words, making a valid next block that the network can accept requires effort and time (typically a fixed average amount of time is targeted). So when a miner presents her shiny new block, its validity is proof of work (and proof of wasted energy). Checking for validity is easy, producing a valid block is hard. This throttles the rate at which new transaction blocks can be created, which is important to prevent hostile take-overs, spamming, etc. Defining the next block of facts cannot be free, otherwise, anyone could claim to hold the truth in a much too easy manner.

*..or whatever-coin with similar properties, really.

So, for the network to agree on new blocks, a lot of energy is required.  Clean energy ? Hardly, with over half of the world’s energy production coming from coal, oil and gas. Bitcoin mining is consuming power at the scale of entire countries. Terawatt-hours worth per year. Close to 500 kilowatt-hours per transaction, at the time of writing. And transactions are slow. And most of the computation being performed just goes to waste, as only one valid block will be the next on the chain, and all the losers just get a higher electricity bill.

A Norwegian company was called out in the media for terrorizing a whole neighbourhood with cooling machinery noise from a mining operation data center. Statements given by this useless business showed little respect for the people living nearby, a business driven by prospects of financial gain in the crypto coin market using subsidized electrical power. The same business is of course complaining about the Norwegian government considering exclusion of coin mining activities from data center power subsidization. The government absolutely should stop subsidizing such operations.

Stop the madness. If you’re in participating in this crypto currency scheme in the hope of becoming rich and “happy”, think about all the negative consequences and evident shortcomings of current applications.

Just /quit #Bitcoin.