cPanel/WHM deleting account slowness

I’m amazed at how long this takes! My guess is it’d take longer on over-selling sys­tems (i.e. lots of accounts using very lit­tle resources, sold more resources on one host than would ever real­is­ti­cally be used rapidly enough to war­rant con­cern) because of the vol­ume of lines/files to be parsed for var­i­ous ser­vices, but still. I just got rid of a site that’s wound up and it must’ve taken about a minute and a half (this is on a normally-quite-responsive dual Xeon 2.8 with HT (so it looks like a quad proces­sor box! ;-)) with a not-so-small 4GB of mem­ory). There was a really-quite-small data­base and less than 10MB of files (across prob­a­bly less than 100 files for the entire site)… seems like a pretty long time!

I guess things would be slowed down by the fact that because the script is being run from a web­page (prob­a­bly Perl?) it doesn’t mul­ti­task things (so, for exam­ple, sync­ing a pass­word data­base for a par­tic­u­lar ser­vice might be CPU/memory inten­sive whilst other processes are just quickly mark­ing inodes as empty — but the two can’t occur at once). Shrug! I think this is the first time I’ve ever had to do this, so I’m hardly jump­ing up and down with anguish at all the wasted hours of my life (heh, I’m a uni stu­dent, I have no right to com­plain about such things! Or some­thing.)… just seemed a bit lame.

# by Josh on March 14th, 2006 Tags: ,
| No Comments »

Asterisk

Actu­ally got an Aster­isk server func­tion­ing today at work. It’s pretty straight­for­ward when all the pack­ages are there… Asterisk@Home goes some way to doing all that for you. For those fer­vently par­tial to any par­tic­u­lar dis­tri­b­u­tion — or morally/ethically opposed to CentOS’s pack­ag­ing tac­tics… I can see why peo­ple may be, but don’t have those reser­va­tions myself –, let your fury be abated. There is a plain tar.gz file that has a script and some other stuff that basi­cally means you can install it on what­ever plat­form you like, depen­den­cies aside.

Depen­den­cies, inci­den­tally, were the main rea­son it didn’t get installed on a Debian sys­tem as orig­i­nally planned. Pacific Internet’s apt repos­i­tory seems to have been borked the last few days, so there were miss­ing pack­ages and pack­ages in the data­base but unable to be installed and all other kinds of junk… When it got to the point I couldn’t even get some­thing to install from CPAN because of lower-level depen­den­cies in Perl itself, I kind of gave up and started down­load­ing Asterisk@Home. That was yes­ter­day. I can­celled the down­load because Pacific was being too slow for my lik­ing (Tel­stra Cable has spoilt me with down­stream), and this morn­ing before head­ing in I down­loaded the dis­tri­b­u­tion from Source­forge in about 10 min­utes. Bad check­sum. Down­loaded again. Burnt to CD. Still faster than it would have been to down­load at work. Ah well.

I didn’t get in til 9.30 because I was burn­ing CDs etc, and had a func­tional sys­tem call­ing between PCs and with voice­mail, recep­tion mes­sage, etc., by 11.11 (I noted the time, it being a sem­i­nal moment in my per­sonal VoIP-using his­tory, even if I did cheat and use a pre-packaged ver­sion!). Good stuff.

Also, if you’re going to use Asterisk@Home in Aus­tralia, install the Open­Voice IVR prompts and record­ings. It’s much bet­ter than lis­ten­ing to that Amer­i­can voice which was dri­ving us nuts even whilst test­ing :P Hav­ing said that, you may need to restart the server when chang­ing voice files… ours was doing some weird thing where it seems to have cached the old files in voice­mail IVR prompts. The voice would be chiefly Aus­tralian, but for a “one” sound. Might’ve been the inflex­ion (falling “one” or neu­tral “one” instead of ris­ing “one”), but I didn’t think they had par­tic­u­larly con­cerned them­selves with that when writ­ing most PBX/voicemail sys­tems… could be wrong. Any­way redi­al­ing the voice­mail exten­sion a few times seemed to help resolve things. Bizarre.

The Aster­isk box, to bor­row a term (Hi Steve :P), is run­ning with 256MB of RAM — but is sit­ting per­ilously close to swap whilst run­ning. It doesn’t help that it leaves two instances of mpg123 run­ning in the back­ground for hold music, as well as vsftpd (seri­ously, who’d use that on a tele­phony server? If you need to backup voice­mail, write a cron job to copy the files to a remote server. Bingo, no FTP server required! Grr.) and a hand­ful of other crap. Any­way, it’s prob­a­bly going to get more mem­ory before it moves into pro­duc­tion use. There are two Fritz! ISDN cards in it, but they haven’t been set up yet. Any­one seen a site about installing Fritz! cards with Aster­isk? All I’ve seen about them is that they need ker­nel recom­pi­la­tion for chan_capi stuff… and recom­pil­ing ker­nels has never struck me as par­tic­u­larly fun. (The few times I have tried, boot­load­ers have been unco-operative… i.e. I didn’t know what I was doing!)

# by Josh on December 21st, 2005 Tags: , , , , , , , , ,
| 2 Comments »

Solid Linux RSS reader

I’ve been look­ing for a nice, stand­alone feed reader for Linux recently, and I think I’ve finally found one that fits the bill. Read the rest of this entry »

Up and up: page generation times

After briefly flirt­ing with Dar­ing Fireball’s Mark­down, I have since aban­doned the tool for sev­eral rea­sons. Firstly, I’m con­vined that (this ver­sion of) Word­Press’ imple­men­ta­tion of it sucks… sim­ply because code that works per­fectly well on the Din­gus page fails in a most spec­tac­u­lar fash­ion when applied locally.

Yeah. So that was suf­fi­ciently dis­ap­point­ing. I’m inclined to blame Word­Press over the util­ity itself, because accord­ing to the Word­Press Plu­g­ins page, it was writ­ten in Perl, trans­lated to PHP, and then again mod­i­fied for inclu­sion in Word­Press. It’s just like pro­gram­ming Chi­nese Whis­pers, really.

What’s more, is it added a large-ish time to my page gen­er­a­tion, which just won’t do, con­sid­er­ing the fact that I’m try­ing to prove a point over here!

Then, of course, there is the com­pli­ca­tion of try­ing to learn a new markup (or down) lan­guage, and mak­ing sure this doesn’t inter­fere with my use of real HTML. I believe the doc­u­men­ta­tion when it says that it won’t, but the fact that Word­Press’ imple­men­ta­tion of it seems to be so bro­ken causes the ris­ing of eyebrows.

It looks rel­a­tively fix­able with lit­tle amounts of effort, but (yes, there always is one, isn’t there?) I’d imag­ine that this would either have been resolved or aban­doned for the 1.3 build of Word­Press (still in devel­op­ment and testing) — I’m run­ning 1.2 this part of the world.

# by Josh on August 28th, 2004 Tags: ,
| 1 Comment »