staticsafe: https://www.youtube.com/playlist?list=PLc-oq-24r6LFedoVG429DQmARBMeshp6f ooh this will be timeline'd hopefully... http://seclists.org/oss-sec/2014/q3/649 I seem to be getting extremely inconsistent disk read speeds on my VPS... is that just the nature of shared environments? 65MB/sec one minute and then 300+ the next shouldn't be like that awyeah: Which host machine? there can be bottleneck times, but mostly the I/O should be consistent up_the_irons: rebuilding and raids? (I assume not, or you probably would've mentioned it already) let me check my panel kvr07 Aww good old kvr07 I've been around for a little while ;) I used to be on kvr07 Also being on a low-numbered kvr doesn't necessarily equate to age just where there was capacity at the time yep specifically, high UDP load would panic my kvm proc hah, lame It was very lame with my UDP OpenVPN And old bug, fixed in newer kvm so hence my move yeah it had to do with UDP fragments which reminds me, I need to re-up documented virtio bug ^ if your NIC never saw fragments, it would be OK, otherwise not bryce: under heavy write load hard-disk raid can be like that mercutio: eh? 65mb/sec one minute, then 300k/sec the next. mercutio: 301 Redirect to awyeah it was probably ages ago oh 16 minutes, not that ages ago :) lol oh it was awyeah that said it for some reason awyeah is so dark i can hardly read it, weechat and it's damn colours. I think I'm on kvr07 too. Nope. 05(!) mercutio: same. I keep meaning to change my colours I think my machine uses vacuum tubes i dunno if there's a way to make everyone the same colour easily, but that may be quickest path. i don't think it's even doing the 256+ colour thing. yea, everyone but ops is green on mine mercutio: /set weechat.color.chat_nick_colors 1 ops are blue text is all white That's what she said!! BryceBot: no Oh, okay... I'm sorry. 'text is all white' silly bot roses are red! It's not a huge impact I don't think. I'm trying to troubleshoot some performance issues on apache+php+mysql your bot is silly! oh wait, you don't have one that's what she said! hmm whoever sadi that's what she said i can't read now haha, my bot is on another net. he wouldn't do well here Google PageSpeed claims my server takes 19 seconds to respond.... I can't reproduce that. roses on a piano are nice, but tulips on an organ are better. i set 0 oops oh now it's red for everyone's nicks. whee, everybody are green and red now i just need an op to talk :) merry xmas /op brycec >.> <.< maybe i need to join something like #debian :) btw wechatters, if you haven't set /set weechat.look.prefix_same_nick "⤷" you don't know what you're missing ..speaking of which, miracle on 34th street is on one of the HBOs *weechatters no-one's talking in there oh hey that's sweet I'm going to set it to "--" I think brycec: what's that do? Really helps when there are multiple same-colour nicks yeah, that's the stuff mercutio: instead of your nick appearing under itself several times, it's that character hey. someone do me a favor "under itself?" load http://new.ohioares10.org/ in your web browser. mercutio: https://dl.dropboxusercontent.com/u/3167967/screenshot_2014-09-24_14-38-19.png Tell me if it's slow. it was slow to resolve oh mine does inverse already That's what she said!! took close to 6 seconds before first byte with as bad colours as you ditto what m0unds said slow to load gah. it says waiting for ages it's still waiting once it starts it's fine well, f*ck. Good thing I'm not a professional sysadmin. do you play one on TV? And refreshing, it loads right up pretty much haha me neither Really need to learn more about optimizing this stuff. I just poke around until Neil is happy yeah, same here loaded instantly after it loaded once hmm. "Yes... your page caches well!" weird. not just cache. I emptied cache, and it still loaded relatively fast must be some bad DNS lookups awyeah: You can semi-weed out the Apache-side if you just run "php $script.php" and see how long that takes to run hmmmmmm RandalSchwartz: more likely the connection keep-alive No - I closed the window awyeah: i think dns resolution being slow is partially because it has to lookup awyeah.net etc as well I wouldn't trust your browser to close the connection oh hey good call. running it on the command line takes quite some time. I'm just using curl, so only one lookup btw http://en.wikipedia.org/wiki/HTTP_persistent_connection) HTTP persistent connection :: HTTP persistent connection, also called HTTP keep-alive, or HTTP connection reuse, is the idea of using a single TCP connection to send and receive multiple HTTP requests/responses, as opposed to opening a new connection for every single request/response pair. The newer SPDY protocol uses the same idea and takes it further to allow multiple concurrent requests/responses to be multiplexed over a single connection. woo hoo. ugly calendar! oh it's beign slow again awyeah: Is this your own code? or something like wordpress, joomla, etc? tests with curl joomla. Also, static resources should load (http) pretty quick obligatory: ewww Joomla curl -v > /dev/null 0.00s user 0.00s system 0% cpu 23.300 total hahaha not sure why it removed the url 23.3 seconds is pretty damn slow, that is to the public service link lol Yeah, pulling up static resources like CSS is instantaneous so your Joomla is slow yeah perhaps your database is slow that's what she said 8.5 seconds the second time it was going faster before yeah I've been looking at DB stuff that's where I'm the least knowledgeable, TBH \@google slow joomla :P but hooray, my mysql slow-query log is filling up You're probably looking at some mysql tuning or upgrade to an actual database mysql isn't know for being a lightweight, and in a constrained VPS you're going to have some fine tuning to do Also, Apache tends to be a resource (esp. memory) hog so see if you can ditch that joomla is crap That's what she said!! joomla can also leak are you swapping? That's what she said!! heh (I really, really dislike Joomla. But I was trying to remain constructive :P) it says you're using apache freebsd is always swapping. if you're not using mod cgi type php... then you probably want to reduce max number of requests per process to keep the memory consumption down. you're always swapping? That's what she said!! reduce minspare and maxspare too it's much cheaper to create a new process than to swap my php is an apache module freebsd doesn't normally swap... And this is coming from a guy who runs a storage ZFS server bryce: it's not uncommon for joomla to use 250 mb of memory :) You sure? I thought FreeBSD is always putting idle pages into swap. per process.. awyeah: nah that's linux mercutio: I'm sure freebsd is pretty slack about swapping I used to admin a few Joomla sites well not the sites, other sites..., but there were joomla sites on the same server I have 673/1500MB in use, and 419MB of swap in use. weird. wait, you're using mod_php? awyeah: you may have had a burst of processes before. did you restart apache? yeah not doing fastcgi or anything. yeah restarted it like 10 mins ago for a quick config change you might wanna consider trying it; mod php is expensive mod_php does suck yes. well hold on here though, I get a ton of slowness when I run "php index.php" - huge delay. esp when dealing with joomla etc. awyeah: i use strace to debug those things :) moving to fpm or whatever is on my list, but it sounds like maybe that's not the big issue right now. ^ correct it makes it reasonably easy to see if it's doing something like db connect or such ktrace on freebsd i think hmmmmm i think it's ktrace/kdump on freebsd. Is there a "get started with ktrace in 10 minutes" type tutorial I could look at? brycec: i like your prefix_same_nick char better than my ghetto arrow. thx for that. well ti's annoying compared to strace for "spotting" as you don't see the delay so easily but it might mark seconds awyeah: for shits and giggles, reboot (fresh memory slate), stop apache (or it will eat up ram), and then run your php m0unds: don't thank me, thank http://benoliver999.com/2014/02/18/weechatconf.html you basically just run it and look at output briefly and if something pops out at you it pops out i was using --> okay. I'll reboot. brb. that one is fancier it's a good exercise in not reading every line m0unds: I liked the idea of putting my buffers on top too :D And I'm also doing the auto-hide quiet buffers huh, i'm gonna have to check this out i just made weechat as much like irssi as possible, but i'm down to try new stuff haha m0unds: Mine looks like this now https://dl.dropboxusercontent.com/u/3167967/screenshot_2014-09-23_10-02-39.png snazzy Actually it's a bit narrower than that screenshot because it can me now :D *can be wb awyeah awyeah: so now you're on a clean slate. The first query/run will be slow since it has to all come from disk, subsequent runs should be a bit faster alrighty stand by please. yep both pretty slow still first and second Okay, so you've got a good idea where to tweak then btw awyeah what are the vps specs? 1.5GB RAM, 2x20GB disks Well that's not bad then With that much ram, you should have no trouble fitting mysql in ram (caching, etc) And frankly I'm surprised you're having as much trouble as you are I wouldn't put it past myself to really screw things up ;) I'm blaming Joomla for now, both itself and whatever plugins etc have been configured wordpress is relatively slow as well check out http://www.ccskywarn.org same server, same db server, but wordpress. actually it's definitely faster on the command line for that site. See, I evaluated joomla and drupal for this new site. And ended up liking joomla... so... crap Oh so the CMS was your pick? yep Might I recommend Concrete5 for a relatively lightweight gooey CMS? concrete5, eh I've messed with it a bit in the past Not doing any CMS nowadays Or I do 100% static Yeah, I need WYSIWYG editors, access control, etc Been burned by CMS vulnerabilities/hacks too many times this site is going to have several people, each can only edit certain parts of the site c5 should fit the bill one requirement is this I need a nice calendar plugin. And that calendar plugin needs to be able to automatically sync external ical feeds. And it needs to provide its own ical feeds. awyeah: http://www.concrete5.org/marketplace/addons/-/view/?submit_search=1&search_keywords=calendar&sort=recommended&endorsed=endorsed several of those do just that Some are even free :p Interesting. I like that the addons site even showcases sites using a given plugin eg http://www.myactivechild.com/calendar/ hmm wow, Joomla has a lot of crap in it by default. extensions and stuff Joomla is a lot of crap :P I mean, I can't believe that something as popular as Joomla can be so crappy. It's got to be somethign on my side here. popular doesn't necessarily mean "good" :) oh wow holy crap That's what she said!! I changed to the default template WAY faster sweet Oh yeah that is fast yeah, that loaded much faster all the pages load right away twss Okay! twss! 'ACTION mashes the Bigger button' lol now I can't change it back, bleh wow, I can't believe what a difference that makes, holy cripes. I was impressed as well so how did joomla tuning go? i suppose i should say awyeah because it's been a while mercutio: The resource hog turned out to be the theme he was using switched to the default and it came up in <2s yeah, weird how much faster it was maybe it's going over some cache value or something query cache size, or memcached limit or some other cache thingy i've been messing w/ghost a bit. it's pretty nice for a blogging platform. don't really know what to think of node though m0unds: Link? (because googling "ghost node" was next to useless) http://ghost.org So it's hoted? https://ghost.org/download/ *hosted Ah i'm running node behind nginx and just keep the app running w/forever (npm install forever -g) i just like playing with stuff ran wp for years, ran octopress for a bit but updating it was a pita, so i never updated yeah i actually switched to octopress, then killed it and started brand new with WP i like octopress yeah, it's nice, but i'm lazy and having to write in vim then regen then deploy was just too much effort ;) i did like having the blog's code and stuff living in a mercurial repo though, just clone it locally and commit new posts or whatever yeah, for me, i like writing in vim, so that was a big plus