• 0 Posts
  • 80 Comments
Joined 6 months ago
cake
Cake day: January 13th, 2025

help-circle
  • I’ve used java Scanner objects to do this extremely efficiently with minimal memory required even with multiple parallel searches. Indexing is only necessary if you want to search for information many times and don’t know what exactly the search will be. For one time searches, it’s not going to be useful. Grep honestly is going to be faster and more efficient for most one time searches.

    The initial indexing or searching of the files will be bottlenecked by the speed of the disk the files are on, no matter what you do. It only helps to index because you can move future searches to faster memory.

    So it greatly depends on what and how often you need to search and the tradeoff is memory usage, but only for multiple searches of data you choose to index from the files in the first pass.






  • Battery circuits come on enough to be a load that needs to be considered and will show up if you measure load on the device vs load consumed by the components connected to the power supply. In terms of low power devices, it is significant, though not the primary concern. But compared to the pi PSU, the charger not to mention the battery and internal PSU of a laptop, consume way more power and produce way more heat.

    All of the rest assumes needing always on, heavy load processing which isn’t what the post I replied to was talking about. I was specifically replying to idle power load. And in my case, even with a bunch of self hosted applications, most of the time my servers are idling. If I was running a virtualization farm or something that was always under heavy load, then yes, as I mentioned, a single board server isn’t ideal.

    As for disks, I don’t use SSDs on my pis except one that actually does a lot of local data processing. Everything else runs in memory and stores persistent data on my NAS, including logging. Virtual memory/swap is disabled on all and things that need temporary storage/cache of small amounts of data is cached on RAM disks where applications can’t be configured to not use disk caching. The only need for the SD card is for boot and some minimal IO needed for local OS operation. I have a Raspberry Pi 3 B i got about 8 or 9 years or so ago with the same SD card in it.

    They aren’t what I use as a database server, obviously, but they are extremely low power compared to what an old laptop would need and work great for things like pihole, and other network applications as well as being a part if my home kubernetes cluster and run the majority of the cluster’s processes on demand.


  • Yeah it sucks that the Spotify algorithm for both automated playlists and “shuffle” is a mess now. It used to be half-decent, but now from what I’ve heard from insiders, though no official confirmation or anything, is that the algorithms were modified to heavily favor sponsored artists, and so only really works with popular genres with lots of sponsored artists from major record labels, and “popular” songs, which means the more a song is played, the more often it gets played which becomes a self-fulfilling popularity cycle that excludes less well known songs. Really does a bad job for me with interests across many genres and wanting to hear more “b-sides” from artist I follow.

    To be fair,i switched to Tidal for a bit because i got a several moth discount for talking with a product manager about what I thought the app needed (though they didn’t seem to take any of my advice anyway), and it’s no better than Spotify with finding new music. It paid artists better at the time and streaming quality is a bit better (not sure about now), but it was also missing a lot of artists I listen to, unfortunately.

    I really miss the early days of Pandora when it used to use the “components” of music to cross genres and didn’t rely as heavily on how popular a song was and had just about all artists I could possibly want. Sure, I did a lot more skipping of songs back then, but now I just hear the same 50 or so songs over and over. I get really tired of it and don’t have the time to make my own playlists, not to mention even if I make a list, I want it shuffled, and even that just plays the same songs over and over way more than “random” would.

    I’d love if there was a service for finding new music that allows me to hear new songs and then choose to purchase them if I want to hear them again.

    And even better if it gives me a list later to review if I want to purchase so when I listen in the car I don’t have to touch 4 or more buttons to “like” a song. Never understood why Spotify, Tidal, etc., car apps always bury the like button and instead present a back button that doesn’t work if you aren’t in a predefined playlist anyway, and a shuffle button that I’m not going to want to turn off and on on the fly anyway. The like button should be immediately after the next and pause buttons in priority order. Such bad Ux design.

    I also really miss Aimee Street that Amazon bought and killed. It was a cool way to get less popular music for cheap as well as getting the artist more exposure and more money the more often a track was purchased. Got so much stuff for pennies that I ended up really liking and buying a lot more from the artist.

    Anyway, that’s my rant about music apps for today.



  • Not quite. Unless the system has pretty advanced power management and is using very recent technology with high density, it’s unlikely that an x64 chipset will use less power than a comparably powered arm64 chipset. Not just the processor, but the smaller board is actually a power saver and allows it to generate less heat meaning both less power wasted and dissipated as heat as well as less power needed for fans to properly dissipate the heat. I’ve never seen a laptop use 3W at idle when considering the whole device, maybe just the CPU, but not if you include the rest of the components like RAM and disks and power supply. And especially true in a laptop that is old enough that it’s being recycled. Heck, the power supply and charger alone might be using 3W at idle with full battery.

    With a raspberry pi 4, the typical power usage for the 2GB RAM model is 5W under load for the whole device and about half that for idle. Add a couple of watts for the extra memory and wider bus on the 8GB model and other things can add to that, but that’s mostly accurate. The pi 5 is a little more and the 3 is a little less. Of course, the efficiency of the laptop at full load might end up being better than a comparable number of raspberry pis it would take to do the same amount if work, but comparing a single pi or any other reputable arm-based, single board computer to a single laptop at idle is always going to be that way.


  • Based on the latest AOSP missing Pixel device trees, binaries, and kernel source, GrapheneOS might be on the way out, or at least for newer phones and android versions. Still not sure what this means, but it doesn’t look good, so I wouldn’t recommend investing in Pixels as they are no longer open platforms like they or the Nexus line before used to be. I have a Pixel 7 Pro with GrapheneOS which works great, but it’s likely my last Pixel. And I’ve been buying Nexus and Pixel exclusively since the Nexus One.







  • Problem with Manjaro is they have their own opinionated repository that is not always in sync with Arch because they try to introduce more “stability”. I found this actually caused the opposite in most cases as there are a lot of dependencies that end up being behind and so you can’t install more stable versions of a lot of software. With the complexity of modern software dependencies, it has become a big problem. Also, they have in the past caused lots of problems with AUR and have let their SSL certs expire multiple times. Overall, they just haven’t been reliable IMHO, so I moved to Fedora a while back.



  • There’s a plugin for compose, but podman itself does have some differences here and there. I’m starting to migrate my own stuff as Docker is getting more money hungry. Womder if they’ll try to IPO in a few years. Seems like that’s what these kinds of companies do after they start to decline from alienating users. Just wish that portainer and docker hadn’t killed all the GUIs for docker and swarm was better supported.

    The company i work for has also required us to migrate from Docker as the hub and desktop app are no longer totally free. I expect more and more limitations will show up on the free versions as usually is the case with companies like this.



  • If the meter is plugged into the UPS, then the UPS has nothing to do with the power flowing into the meter. Power is “pulled” not “pushed” to devices in that a device supplying power can limit the amount of power provided, but can’t increase it beyond what the devices request.

    Just like with plumbing. The water company can’t force your faucets to open and use more water. Now they could increase pressure and break pipes, similarly the UPS could provide the wrong voltage and short or burn out wires or devices causing them to draw more, but that is unlikely to be the issue here. As long as voltage is constant, amperage (the other component in wattage) is pulled, not pushed.

    What you’re seeing in the input load, if it matches what is flowing out of the meter, is some device requesting more power and thus more power flowing into the UPS to be passed to those devices, not the UPS forcing something to use power which isn’t possible as explained above, or the UPS itself using power because the meter has no connection to what power is being used by the UPS, only things plugged into the meter.

    So, there must be something else using the power. Likely the devices, even if they aren’t really doing anything you consider significant, are doing something. Probably maintenance, checking for updates, the monitoring proceses requesting information from the devices since the TrueNAS server is on that end, etc. You’d need to put a meter on each device to determine what is drawing the power specifically.

    Also, does the power meter only display power used by devices plugged into it, or does it also display it’s own power usage? Could be that the plug itself is using WiFi or something to communicate with external services to log that data. But that would be quick bursts.

    Also, without putting a meter on each device, this is probably cumulative. For example, if the NAS is requesing info for monitoring the network, that would spin up the processors on the RPi an cause the switch to draw more power as it transmits that information across the network. Again, this should only be small bursts, but it’s also possible the devices are not sleeping properly after whatever process wakes them so they continue to run their processors at higher amperage for some time. Tweaking power profiles can help with something like tuned on Linux or similar to make things sleep more agressively. With the drawback that they take some amount of time to spin back up when needed.