4,509 reputation
1724
bio website BlackMesh.com
location
age
visits member for 4 years, 7 months
seen Jan 19 at 17:24

Director of Emerging Technology at BlackMesh Managed Hosting, longtime Linux aficionado, sometime Drupal developer (and d.o sysadmin), and occasional filesystem tinkerer.


Jan
13
comment System not being able to handle soft interrupts but having idle time?
At the risk of being dismissive of your question, I want to clarify: ksoftirqd doesn't indicate that soft IRQs are being missed, it indicates that soft IRQs are happening often. In fact, ksoftirqd running is an indication that soft IRQs are not being missed!
Jan
13
comment Apex ANAME / ALIAS record in Windows Server 2012 R2 DNS Manager
Yes, SRV is lower in the list, but the selection logic is rather complicated; if Outlook doesn't like the answer it gets from an earlier stage, it'll try later ones, and then circle back to the original if it can't find a complete answer from those later stages. Certificate mismatches are an example of this, if I recall correctly; if it finds Autodiscover.xml but it has a cert mismatch, it'll keep going to see if it can find it without a cert mismatch, and if so, it'll present the latter.
Dec
3
answered Apex ANAME / ALIAS record in Windows Server 2012 R2 DNS Manager
Dec
3
comment How might I cancel scheduled downtime on Nagios
Fair point. Deleting a downtime, however, has a far larger effect on reports, no?
Dec
2
answered How might I cancel scheduled downtime on Nagios
Nov
21
comment Mysqld.bin and php-fpm eating up all my CPU
For what it's worth, in APC's default (apc.ttl=0), it actually clears the whole cache.
Nov
18
revised rm on a directory with millions of files
Touch up the formatting a bit.
Nov
18
awarded  Caucus
Nov
6
revised SSD system disk durability?
typo
Oct
28
answered Varnish 4 Working Config (optimized) for Wordpress (default.vcl)
Oct
28
comment rm on a directory with millions of files
It's causing all that I/O simply by being more efficient, though! The globbing is all front-loaded for your example (that is, the full list of files is generated before the first rm happens), so you have relatively efficient I/O at startup from that, followed by painful, out-of-order rms that probably don't cause much I/O, but involve scandir walking the directory repeatedly (not causing I/O because that's already been loaded into block cache; see also vfs_cache_pressure). If you'd like to slow things down, ionice is an option, but I'd probably use fractional-second sleeps.
Oct
10
comment CentOS server priority of root services and non root services
Can you please expand on "it hangs the entire server and needs a hard reboot"? Does the server stop responding to SSH? The console goes dark and cannot be woken back up? Pings get dropped? Power supply catches on fire?
Oct
10
comment rm on a directory with millions of files
You're being eaten alive by globbing. How about something more like: find /u* -maxdepth 3 -mindepth 3 -type d -path '*/app/*' -name diag -print0 | xargs -0I = find = -mindepth 4 -maxdepth 4 -type d -name 'trace' -print0 | xargs -0I = find = -mindepth 1 -maxdepth 1 -name '*.tr' ? Add -delete to the last one to actually delete things; as written, it just lists what it would delete. Note that this is optimized for circumstances where you have a lot of uninteresting things in nearby directories; if that's not the case, you can simplify the logic a great deal.
Oct
10
revised rm on a directory with millions of files
Fix formatting (I guess SE changed parsing at some point; this used to work.)
Oct
7
comment nginx + varnish, optimize caching urls for ssl and not
Thanks for spotting that. Fixed!
Oct
7
revised nginx + varnish, optimize caching urls for ssl and not
Fixing the syntax error that @boernie pointed out.
Oct
6
revised nginx + varnish, optimize caching urls for ssl and not
added 266 characters in body
Oct
6
comment nginx + varnish, optimize caching urls for ssl and not
Boernie: Ah, you mean the scheme that is INSIDE of the req.url (.../http/example.com:80/... versus .../https/example.com:443/...). Code updated.
Oct
6
revised Implement HTTPS in with pfSense, Varnish and Tomcat
added 123 characters in body
Oct
6
comment Implement HTTPS in with pfSense, Varnish and Tomcat
No; Varnish doesn't speak SSL. It must be plain HTTP when it reaches Varnish (notwithstanding the CONNECT verb, but even that is HTTP, albeit weird HTTP). The most common approach is to use something like Pound or nginx to unwrap the SSL off of the HTTP before it hits Varnish. I've added a relevant link to my answer, above.