Alternatively, copy everything to /dev/shm before launch, call it a day. Now everything is loaded from RAM. Updates involve copying from source directory to /dev/shm then restart.
I assume that modern filesystem caching to RAM is incredibly sophisticated, but wouldn't a typical website already be fully served from RAM? If you only have a few megabytes of code + assets, won't the OS see this is hot data, not being updated, so it is no longer being read from disk sometime after the initial read?
My site's a WP that I started up in like 2012 and it's been running continuously ever since, it's sitting behind Apache, it's got a cache plugin, nothing special at all.
Never heard of pagespeed before (yeah, lucky 10k etc, but also I'm just not a web dev) and this pointed up some huge easy wins on my image heavy homelab site, so thanks for that (setting `Cache-control` at all, and forcing `img loading="lazy"`.) To shortcut some obvious followups: (a) the pagespeed engine is called "lighthouse" and it's on github (Apache licensed)(b) it's also built in to Chrome DevTools (inspect) but for me it was all the way over on the » section of the toolbar. So you can run it locally on a private/staging site. again, thanks!
Linux page cache + PHP-FPM OPcache already keep hot PHP in RAM (no per-request disk hits after warm-up), and if your dataset fits in memory you size innodb_buffer_pool you don’t move the whole MariaDB datadir to tmpfs and throw away durability.
Reminds me of MongoDB (first few years at least). Screaming fast. Until a crash happens and the data is missing - then all that's left is screaming.
I also run MariaDB in RAM, but only for integration tests where data is fictional anyway. Otherwise I'm sure you can't come up with a better solution than they did just by using some sysadmin tricks.
Im skeptical about this. PHP Opcache already loads and compiles all php files into ram, such that it only happens once (or again when theyre modified). Its the single most useful thing you can do with a wordpress site (other than running on decent hardware, which most hosts do not have)
Mysql/mariadb have a lot of ram caching as well - they haven't just been sitting on their hands for decades... Still, lets say that this helps - you could probably just use db replication to another machine (or even another container on same machine) that persists to disk.
And the (likely AI-generated) colour commentating got tiring fairly quickly.
Most of all, without a before/after comparison, this is meaningless
Sorry, you have been blocked
You are unable to access rickconlee.com
Why have I been blocked?
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
What can I do to resolve this?
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
Cloudflare Ray ID: 98d88522ad55dbab Your IP:
2a02:3035:671:c0fa:cfc0:827c:68bc:ba8e Performance & security by Cloudflare
22 comments
[ 4.6 ms ] story [ 64.7 ms ] threadUse headless CMS plus static site generator. e.g. Strapi plus Astro
And my plain ol' wordpress an 83: https://pagespeed.web.dev/analysis/http-egypt-urnash-com/a1r...
My site's a WP that I started up in like 2012 and it's been running continuously ever since, it's sitting behind Apache, it's got a cache plugin, nothing special at all.
I also run MariaDB in RAM, but only for integration tests where data is fictional anyway. Otherwise I'm sure you can't come up with a better solution than they did just by using some sysadmin tricks.
Mysql/mariadb have a lot of ram caching as well - they haven't just been sitting on their hands for decades... Still, lets say that this helps - you could probably just use db replication to another machine (or even another container on same machine) that persists to disk.
And the (likely AI-generated) colour commentating got tiring fairly quickly.
Most of all, without a before/after comparison, this is meaningless
> Because even well-cached files still require filesystem-level permission checks, read cycles, and sometimes fragmentation reassembly.
I'd assume tmpfs still requires filesystem-level permission checks, or am I mistaken?
Sorry, you have been blocked You are unable to access rickconlee.com Why have I been blocked?
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data. What can I do to resolve this?
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
Cloudflare Ray ID: 98d88522ad55dbab Your IP: 2a02:3035:671:c0fa:cfc0:827c:68bc:ba8e Performance & security by Cloudflare
Thanks cloudflare!