February 28th, 2002

  • rtdean

Well, I'm impressed... (and curious, too)

I downloaded the LiveJournal code from CVS two days ago and spent the majority of yesterday tinkering with it. It took a bit to get everything going, but finally I got pretty much everything working. (Displaying journals doesn't work, theres currently an issue with it, but its already being discussed in another thread). Went to sleep last night, woke up today the webserver had crashed and was spewing kernel messages at me: '/kernel: swap_pager_getswapspace: failed' Started at 3:46 AM, and while the server kept running, it did try to sync and reboot itself. When I caught it at 5:40AM, the console would still respond, but was lagged ~45 seconds (well, obviously, no swap space). It failed its sync at ~5:46, and I force rebooted it then. I was not able to get a process snapshot before the system went down.

After rebooting, I've let the system run all day. (1:40PM, now) when I took a look at the process table. 280 sleeping perls, 88 zombied perls, all the physical memory used, almost all the swap space used - had about 100mb of swap left. I killed all the perls, shut down apache, and removed my cron entries, just to keep myself sane. All my swap space freed right up, along with most of my physical memory.

So, I've started to wonder... is this normal, or has the code I've grabbed (and cvs update'd a few times since my first co) been bugged?

For reference, the system I was testing on is a Dual PPro 200 with 192mb of physical ram, another gig in swap space, and the database resides on a different host (my database server). Running FreeBSD 4.5-STABLE, updated as of less than 2 weeks ago. Apache 1.3.23, with mod_fastcgi and mod_php4 loaded. mod_ssl is compiled, but for the test was starting with 'start' and not 'startssl'.

Any thoughts are appreciated. Thanks. =)
  • Current Mood
    impressed impressed
  • dottey

"Add &numcomments=xx" user-option

Awhile back, there was a default that all links on journal pages would have &numcomments=xx or something like that added to the talkread URLs, so that the link would become "new" if there were new comments made. Many people liked this, though some didn't, and Brad removed it.

Then they said they would add it back in the future as a user option.

I don't know if anyone has ever submitted a patch to do this, but I was going to try to write one myself. I've never really used my goathack account before though, so I'm real new to this. This seemed like a good thing to try to work on as a first go.

So I've been looking at the table sin the database and looking over some code. It seems to me that each user option needs a column in the userproplist and then also in the userprop tables.

So my question is, is this something I can do in my goathack that will get incorporated in a patch I make? If not, I guess its worthless for me to work on this. I'm just not sure how I would go about adding a column in the table and get it included in a patch.

Hope this question makes sense. Any help for a newbie would be appreciated!
  • Current Mood
    curious curious