September 18th, 2001

emacs client?

From the list, it looks like there isn't one, but I figured that before jumping into writing it, I would ask if anyone has written an emacs LJ client? (Note, I'd be happy with a client that just allowed you to edit entries with emacs, but if I were to write it, I would write it to run completely in emacs.)

login_do.bml 1.8 bug

Upon trying to log onto LJ too quickly, I mistyped my password and got a very funky-looking error page. Knowing that LJ was updated last night I decided to see if any changes were made to login_do.bml, and if so, what they were. According to the CVS log (very nice interface, btw), LJ::bad_input replaced some of the old error code, causing interesting (see also: ugly) things to happen. If I knew Perl and/or BML I'd fix it, but since I don't, I figured I'd let the developers know so they can fix it. :)

BTW, I downloaded the LJ server source hoping to find the data to populate the Zips table, but that data wasn't included. Does anyone know where I can download this data?
  • cryo

small site optimization?

I've been digging around since I got lj up and running, and I'm kinda shocked that it's currently configured to be a beeeeg peeeeeg.

I'm running on a 600MHz Alpha with 128M of memory, with nothing else running besides the OS, MySQL, Apache and Perl.

So, I start MySQL up.. everything looks normal.

I start Apache up, and fast cgi spawns off a bunch of Perl processes, which I would expect, until I started noticing the -size- of them. So large that it swaps out 98M by the time it's finished firing up. Needless to say top is reporting:

Memory: 60M Act, 34M Inact, 4776K Wired, 8048K Free, 98M Swp, 159M Swp free

For a totally idle system, this seems amazingly excessive. I notice that all hits require page ins to happen, since there's only the 8M free...

I'm sure this is great on a 1G memory system and flies, but for a development box, it seems a little overwhelming.

Anyone have any ideas? My Apache settings are sanely set to minspare 5, maxspare 10, start 5, max clients 150, maxreq/child 30