I tried to delete and recreate the container, but there’s still this insane power consumption.

For comparison, cloudflared doing a tunnel to hundreds of users takes 0.06% of CPU time on the same server

@atzanteol@sh.itjust.works
link
fedilink
English
7
edit-2
1Y

Why is your system load >5 with such little CPU usage? Seems like there is a lot of i/o on your system.

If it’s network traffic going over your VPN that could explain it.

@Moonrise2473@feddit.it
creator
link
fedilink
English
61Y

Because that’s a docker container on a “busy” server (mostly WordPress wasting cycles generating pages for some bots that really have to visit my blog over and over and over and over)

(Top from inside the container)

StefanAmaris
link
fedilink
21Y

you might want to look into getting wordpress to generate static pages and only deliver the static html.

Overall using bloging tools that generate static pages is better than constantly requesting DB and dynamically compiling each page every time there is a request

@Moonrise2473@feddit.it
creator
link
fedilink
11Y

Yeah it’s a long time that I wanted to migrate to Hugo

The main issue is that a decade ago or so, I hosted a vibrant forum with the stupidest platform ever, bbpress. So my WordPress has something like 30k pages…

redcalcium
link
fedilink
English
91Y

On my machine it’s consuming about 0.5% - 1.0% of cpu time, which is higher than zerotier in the same machine (almost zero).

Tailscale does a lot more things than just tunneling though. For example, on default installation it’ll catch all outbound dns request on the machine and route them through MagicDNS (100.100.100.100).

@Moonrise2473@feddit.it
creator
link
fedilink
English
6
edit-2
1Y

That’s weird. I closed the docker on that specific machine (ryzen 5), copied the docker-compose directory (=same config) on an i5-6500T and now it’s using just 0.1% of CPU time.

Go back to ryzen and it’s 8% again 🤷

baduhai
link
fedilink
English
2
edit-2
1Y

I use tailscale on my Ruzen system, and it always stays under 1% usage. Usually below 0.5%.

Greg Clarke
link
fedilink
English
11Y

Isn’t CPU % is per thread?

redcalcium
link
fedilink
English
51Y

I just checked my AMD box and tailscale there can consume ~15% of cpu time when the tunnel is under active use. When it’s not used it’s ~1.5%. But it’s a low power old AMD cpu though (AMD G-T56N), so I’m not use if it compares to Ryzen 5. On my intel machine, it’s ~5% when under active use, and idle at ~0.5%.

HousePanther
link
fedilink
English
31Y

One thing you could try doing if you feel up to it is to build Tailscale from source code. Often when built for your specific machine, performance improves.

time to do some perf profiling

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 279 users / day
  • 589 users / week
  • 1.34K users / month
  • 4.55K users / 6 months
  • 1 subscriber
  • 3.47K Posts
  • 69.3K Comments
  • Modlog