As you probably noticed, the Server really bogged
down today. The reason is quite simple: Katz's story,
with about 500 comments weighed in at about a meg.
70 httpd's trying to serve a one meg file (which takes 2-3 minutes
for most of you to download) perhaps a dozen times a second.
Do the math *grin*.
So I have a server level setting that will enforce Comment Limits
when we get bogged. This will annoy the heck out of
some how you, but it vastly speeds up page loads.
After that mess, I'm glad to have some good news: I
brought the 2500 stories online that I yanked awhile back when we were
getting overloaded (mostly stories from late 97 early 98)
so you can search for them again. More random musings
are attached below.
I changed the numbered links on the homepage (and
the word 'XX Bytes in Body') to link to the article instead of
to the comments page, so you can cleanly use them instead of
the 'Read More' link to browse at -1 or 'No Comments' mode,
and still read the article contents. Thanks to the 8
billion of you who asked for that one :)
I added a Default Comment Limit now. Originally the limit
was 50,000 (in other words, never :) but I've changed that to
100. This won't happen much, but it will be a good line of
defense when those stories get really huge. You can still
change that number in your user preferences if it annoys
you. Your user preference will always take priority, unless
the server goes into Overload mode.
Finally, I wanna strut a bit: Since we brought the old
archives back online, Slashdot now has over 5400
stories in the database. Over 3300 of them were posted by yours
truly, which strangely seems to explain my lack of a social
life at this point :) Anyway, I just thought that was cool.
Slashdot Moderation (Score:1)
Well after my 4 points where gone, that was the end of it, no more point sense then or anything. I'm wondering if this is just how it is, and I was misinformed, we arn't sposed to use up our last point but wait for more, or is this some kinda bug? I'm confused. Just wanted to ask.. oh btw about the job.. (You could probably figure out who this is just by the stle of writing and the heavy use of parethesis.. and bad spelling
OSS??????? (Score:1)
Overloading at /. images server images.slashdot.or (Score:2)
Why not serve the topic images from the same server as the html, i.e. good old sebastian.slashdot.org. Ever since slashdot started getting really popular in late 1998 images.slashdot.org [slashdot.org] has been getting even slower than slashdot. That's where the topic images come, so rendering of web pages gets delayed too unless you browse with images turned off.
How to tell if server in "overload" mode? (Score:2)
No. Say there are 300 comments. You will first go to a page with the 30 top comments (depending on how you have them sorted -- I use highest score first). At the bottom of the page you will see something like:
1 2 3 4 5 6 7 8 9 10
Meaning you are on the first page of 10, each with 30 comments.
the power of linux? (Score:1)
A mod_perl process can get pretty huge, because it contains the apache server code, a perl interpreter, which, as any perl monger will tell you, consumes memory prolifligately. A single int consumes about eighteen bytes, IIRC. Not to mention all the Perl modules that may be loaded.
The problem is compounded by the fact that perl code looks like data to the virtual memory system, which means that children sharing pages rapidly start to dirty them and thus get their own copies.
In the mean time, the mod_perl process processes the actual request very quickly. The trouble is it then spends precious time dribbling bytes back to the client browser. Valuable time that could otherwise be spent creating dynamic content. And so more and more mod_perl processes are spawned, trying to deal with the load, when at any given time most of them are twiddling their thumbs.
Enter a proxy, such as a Squid cache. The mod_perl emits the dynamic page at bus speed, and the proxy picks it up. The mod_perl process is then free to handle another client request. The proxy then doles out the page as fast (or as slow) as the client can accept it. Such processes can be built to have an extremely small footprint, due in part to a strong propensity to share VM pages.
It is therefore not uncommon to see one mod_perl process doing the grunt work that is shipped out by ten or so lightweight caching processes. In any case, far fewer heavy mod_perl processes are required, thus much less memory is consumed by IO-blocked processes. People have reported dramatic savings on the mod_perl list using this approach. (Like, the difference between having to build a server farm or not).
Use BorderManager in reverse proxy configuration (Score:1)
OK. I know that's not P.C. round here but Novell have a better clue when it comes to Real Time network data server than Linux does. Not that I have anything against Linux being the source server.....it is very good at that.
Xitami is great (Score:1)
the URL is http://www.imatix.com/
I want 'reply' to be a text link. (Score:1)
Are you sure about that? (Score:1)
I'm not sure about the difference between code space and data space, but I think that code space is marked "read-only", so copy-on-write never becomes an issue (there are no writes).
- doug
I still say use news (Score:2)
If the stories themselves were only accessible via WWW, the banner hit count shouldn't be changed much. (I'm kind of surprised I haven't seen any rude remarks about the recent Ziff-Davis banners, BTW...:-)
Cachedot (Score:1)
or something some time ago? cachedot has stopped
working more than two weeks ago. I mailed Rob
about this, but we all now how busy he is...
Mathijs
Suggestion (Score:1)
Again, this is only a suggestion. If there's a technical reason this isn't what's already being done, or a personal preference thing, etc, that's cool. Or even if there is no "reason", it's cos you don't want to, that's also cool.
The fact that the problem is being dealt with -somehow-, the method outlined in the intro to the thread, or whatever, is what's important.
"Doing the math" (Score:1)
If Slashdot was truely open source... (Score:1)
Slashdot needs to be rethought (Score:1)
JonKatz's article: busiest ever? (Score:1)
--
ashp.
now fix cachedot (Score:4)
Use squid in reverse proxy configuration (Score:1)
Use squid in reverse proxy configuration (Score:1)
I usually design network architectures for high volume of small hits not large hits, which is why I hadn't thought that through. Good bit to file away in the back of my head though!
5MB seems high for apache -- you sure thats taking into account the shared code between apache processes? I'd figured the overhead at more like a meg and a half... but then, I'm not running mod_perl in any of my servers.
"Doing the math" (Score:1)
Minute #1: 50 new users on modems
Minute #2: Those first 50 users (still) + 50 more
Oops, 100 users, we can't fork that many httpd processes. Some have to wait!
Minute #3: Half those first minute users are done, they've got good 56k connections... maybe a dozen or two people can get back in and start transfers...
See the problem? You get stuck, its like a traffic jam -- once it gets started it takes ages for it to correct itself. 12 connections per second over the course of a minute to 56k modem users comes just under the point where a T3 would begin to be saturated.
Its important to remember that its not just number of connections that causes web performance problems, its the number of connections from slow users. Slashdot's problem is not hit-rate... look at the stats for the last 24 hours -- if anything the hit rate seems low. Its the time it takes the processes to free up.
the power of linux? (Score:2)
Best way to improve performance other than using a more robust database and multiple servers that can generate dynamic pages is to restrict the number of possible combinations that a subpage can fall into, get rid of the stuff thats different between two users who have the same page settings (ie, get rid of the user-specific stuff), and make sure whatever differentiates it is in the PATH_INFO part of the URL so it caches, and the caching proxy doesn't think its a form submission. I bet Slashdot's got enough clout to get a donation of little ones from Corel or some place like that to throw Squid on.
Only the homepage really needs to be different per-user. The rest of the site should be comment pages in various combinations (for each of the sort methods, and a handful of comment options... moderator pages could be served by bypassing the cache servers... Even if every page was served to the proxy with a two or three minute timeout, you'd get good performance, and could spread the load on long-download pages among a few more servers... getting a few hundred simultaneous downloads instead of 70 (which seems low anyway... Apache can usually grok more than that, although maybe the mod_perl stuff can't...)
If Slashdot was truely open source... (Score:1)
--
Overloading at /. images server images.slashdot.or (Score:1)
James Turinsky
slash-faq editor
Excellent Article (Score:1)
I find that I still had resentments against the way some people treated me in Junior high school and, to a lesser extent, high school. This is something I have kept secret, and Jon Katz's article has really help me get in touch with and start to get over what happened over ten years ago.
One of my disillusments with the geek culture is that it is hard for people to open up with their feelings. I am glad to see Jon Katz's article giving people the courage to open up and get in touch with their feelings.
For me, what those kids did was unacceptable. Then again, I have a part in the blame. If I knew then what I know now in terms of how people are emotionally, I would not have projected myself as someone to pick on.
One advantage of all the moving I did in those years is that whatever image others had about me was wiped clean every time I went to a new school. By my last three years of high school, things were reasonable, if not ideal.
- Sam Trenholme
Linux World does this (Score:1)
but it's clunkier, not as pretty, and unless we all use Netscape for news (the easiest thing to do in X, since just clicking on a news url in Navigator brings up Messenger and automatically downloads the group), we won't be able to post in HTML (unless everyone agrees not to bitch), which I kinda like.
That said, it's less convenient (but hey, if you can't figure it out, maybe you don't belong on slashdot), and a totally different dynamic. It'd be a hell of a lot faster, though, and MUCH easier to read.
Of course, news.slashdot.org could have other uses too, like permanent slashdot newsgroups. I can think of a few right now.
I also think we would get to know each other better, and it would build a better sense of community.
it was popular because he's finally hitting home (Score:1)
I hate to use such a trite term, but I think it was a bonding experience for us all.
"GNOME 1.0 is out" got a littl over 1,000 comments (Score:1)
Why ask why ?! (Score:1)
I mean, look at what we have around us today
--- NATO bombs Yugoslavia killing civilians in the name of "peace"
--- Cops beating up people in the name of "upholding the law"
--- Parents beat the craps out of the children in the name of "teaching them value"
--- People killing/maiming/hurting/torturing/abusing each others in the name of "community interests"
So why should we expect the kids to behave like CIVILIZED BEINGS while we grown ups behave like bloody @$$holes ?!
Stop blaming the kids. Blame ourselves for making this world a pathetic place for the kids to grow up in.
Stop blaming the guns. Blame ourselves for behaving so violently.
All the question asked "Why kids do that?!" "Are guns dangerous?!" are nothing but monday-morning armchair quarterbacking.
If we don't want the kids to behave like animals, we adults have to stop our barbaric behavior first.
If Bandwidth is the bottleneck... (Score:1)
I've never used content-coding myself, can anyone comment on how successful it is ?
Most of the bandwidth you're using is relatively plain text, I would have thought gzip on a low setting could reduce the number of bytes to be sent by a fair bit IF you've got some CPU power to spare AND the chunk of text to be returned is a decent size (say > 10K). The browser request indicates which encodings are allowed (Accept-Encoding header field).
I haven't looked at the slashdot perl source recently, but I would think that it would be a pretty small mod to use Compress::Zlib to do an in-memory deflate of large text bodes for users with browsers that will accept it.
I still say use news - Agreed... (Score:1)
Why can't it be possible to link in the NNTP server to the articles database on the Web version of slashdot?
e.g. Replies to article posted to "news.slashdot.org" gets copied to "slashdot.org".
Replies to articles on "slashdot.org" get posted to the relevant forum in "news.slashodt.org".
OR... what about making the Slashdot web page a front-end to the real article/replies repository - "news.slashdot.org", a la Dejanews ?!?!?
Some clever jiggery-pokery and you could probably maintain the look 'n feel of Slashdot, but with the added advantage of people being able to use an NNTP server to read/post articles. Otherwise your always going to be battling with ever-increasing demand fot HTTP downloads.
Suggestion for a Slashdot Poll... (Score:1)
[ ] Yes
[ ] Nah!
Searching for Articles. (Score:1)
I can't seem to get ANYTHING back for my queries.
I checked searching for "linux" to see if i'd
get anything back, and voila!! Nothing. . .
Use squid in reverse proxy configuration (Score:1)
So in practice, your httpd processes share a few megs of Apache, and do not share any of your perl code or data. This makes them very expensive.
Use squid in reverse proxy configuration (Score:2)
You silly doof! Don't let your expensive mod_perl+mysql processes sit there pushing bytes down 28.8 & 56K pipes. Use squid in reverse proxy mode to buffer the output of mod_perl and then let squid, which has extremely cheap threads, twiddle its thumbs waiting for the client to receive.
This is all well documented in recent discussions on mod_perl@apache.org. See also the mod_perl guide [apache.org] and the mod_perl mailing list archives [swarthmore.edu].
Banners (was: I still say use news) (Score:1)
the power of linux? (Score:1)
I invite Rob et al to take a look, i suggested using the Slash code but we did this one pretty much in a homegrown fashion.
http://www.sin.wm.edu
click the "guest" button, no login or password
the power of linux? (Score:2)
(but then again, so can freeBSD, my OS of choice, or so I've been told
rob, have you considered using a multithreaded server like Xitami? That might improve performance somewhat.
How to tell if server in "overload" mode? (Score:1)
The other guy was right... If your limit is set fairly low, you only get [limit] number of comments *per page*. Then there's a 1|2|3|4 etc in a grey dividing bar at the top and bottom of the comments area, which are the pages, each with [limit] number of additional comments.
The wording in the preferences area isn't exactly clear about that, though. I think someone ought to add the words "per page" to the description of what that setting does.
should Slashdot use an NNTP server? (Score:1)
Err... waitaminnit, I think I said that already a few weeks back. *grin*
Why ask why ?! (Score:1)
But if the parents hadn't become parents in the first place, there'd be no kids to worry about, and the kids' kids wouldn't be there, the house could be smaller, the bills would be a heck of a lot less, there probably wouldn't be any counselor or medication bills, and things would probably be a whole lot better.
My suggestion: birth control. Use it early and often, folks!
Or, we could just go with your idea: that as long as someone somewhere is acting like an asshole, everyone everywhere is free to act like an asshole. Hey, it's not OUR fault, it's that guy over there! How do you expect all of US to behave when he's doing that??
How to tell if server in "overload" mode? (Score:2)
How to tell if server in "overload" mode? (Score:2)
Question: It says the comment limit is 30. Does this mean I'll miss all but the 30 most recent comments posted?
If so, that really sucks... I'll have to reload about every two minutes to avoid missing anything.
katz.slashdot.org? (Score:1)
By the way, Katz article was brilliant. I thought Jonathan Yardley had the last word in the Washington Post yesterday, but Katz absolutely blew him away. Actually being in touch with the people you're claiming to represent makes a HUGE difference, and it shows.
----------------------
I want 'reply' to be a text link. (Score:1)
Anybody else miss this?
Not out of the woods yet (Score:1)
It took three attempts to get to the page to submit this comment, for example.
I think it's still useful. (Score:1)
Christian R. Conrad
MY opinions, not my employer's - Hedengren, Finland.
Katz Article Setting Talkback Record? (Score:1)
I don't recall any article ever getting 700 talkback posts....
How bout the gender one again? (Score:1)
Sigh.
D
----
Filtering Suggestion (Score:1)
I'd like to screen stories that have both "ZDNet" and "Linux" in them.
I'd also like to screen comments that has the words ("sucks"&&"Microsoft")||"first post"
I'm sure many would use that.
It can help browse the main page easily,
and shrink overcommented stories by eliminating the posts you dont want to see.
(if you don't think moderators score good, or have certain subjects that doesnt interest you)
---
So in other words... (Score:1)
slashboxes broken? (Score:1)
x86.org/Intel Secrets hasn't updated in a week.
MacOSRumors is missing.
Slashdot got slashdotted (Score:3)
Use squid in reverse proxy configuration (Score:1)
It WILL work. The idea is to let the memory hogging httpd processes that are producing the dynamic content to exit out as quickly as possible. Then let squid which doesn't use as much memory pump out the data...
This design would obviously improve the delivery of the static content more than the dynamic content. But that doesn't mean that the memory usage etc... wouldn't decrease for dynamic content.
While I'm not sure what type of overhead squid takes per process... But my Apache processes normally chew about 5MB or RAM per connection. Assuming that squid uses 1MB overhead and you have another 1MB of content that has to be put in memory while it's being sent out that would only mean that you're chewing 2MB per process. Assuming that all the content was pulling that 1MB page (which we know it isn't) you would be able to server 250% (or 2.5 times) more connections than you would with the same amount of RAM. That's a pretty good...
Slashdot Moderation (Score:1)
But "Voices from the Hellmouth" is now over 1100.. (Score:1)
At least five from different places on BIX.
The message count is still climbing.
Help me with some math here....... (Score:1)
But moderation points are granted at a rate of 1%
Granted, prior posts would give it a little leeway, but....
That rate is not sustainable.
Perl modules are compiled & cached (Score:1)
JonKatz's article: busiest ever? (Score:2)
In my opinion, it was the BEST article I've read on the Littleton, Colorado subject; the BEST article I've read by JonKatz; and the BEST news-related article I've read on Slashdot. We all give JonKatz hell for articles like his Linux newbie article... but this one was extremely well-written and hit a nerve with all of us. (Probably us "geeks" and "nerds" moreso than others. As well as those of us like myself, fresh out of high school and into college.)
Ryan
"Doing the math" (Score:1)
gigabit-Ether
How to tell if server in "overload" mode? (Score:1)
Help me with some math here....... (Score:1)
You're doing the math a bit wrong. Yes for each individual out of every hundred post, they are allowed to moderate 1 BUT!! you have you remember there are some 400+ moderators. This means that for every 100 post 400+ points are given out. This means that potentially %100 percent of articles can be moved up 4 points. Which is extremly excessive, but it works out right. The problem is oviously that the points are not being given out properly, and therefor I guess not. Unless it is accually only giving them to 400 people at a time, chosen randomly of the people who qualify.
"Doing the math" (Score:3)
and using squid to reverse-proxy, what I
think Rob may have been getting at is this:
1 Mb file, served 12 times/sec.:
1,000,000 x 12 x 8 =~ 100 Mbit/sec. Last
time I checked, a T-3 was approx. 45 Mb/s.
You could be running a Cray, and as long
as your pipe ain't large enough, your pages
are gonna be slow.
How does Slashdot work now? (Score:1)
Does slashdot not do that anymore due to all the configuration options?
I just hope you wack out the poor ones... (Score:1)
set my preferences. But I've already found
some articles that really moved me, and some
of the comments are sometimes even better that
the article itself.
I actually wanted to comment on The story "Voices from Hellmouth" but it was so filled with comments
that it really was no point..
Noone would really read my comment anyway.
I guess some things really get to you, and people
with a geeky background (which I partly have)
is a lot more alike than imaginable, and a lot
of people have gone through the same things.
now fix cachedot (Score:1)
No kidding! But who are you to complain, Mr. "I'm on a T-1 thanks to my college"? There are real modem users who need cachedot to be fixed!
-jason
OSS??????? (Score:1)
Click the link on the left, near the top that says "Code".
the power of linux? (Score:1)
When modem users pull down a large file it takes a long time, and that "heavy" apache process is required for the entire duration they're pulling it down.
By using the squid accelerator, the apache can QUICKLY offload the page to the cache, which then feeds it out to the user at a slower speed with less system load.
Suggestion for a Slashdot Poll... (Score:1)
I don't get it (Score:1)
I need slashdot for dummies.
-cebe
Roxen Challenger - Diff server software (Score:1)
I'd just like to notice that Roxen would work exceptionally well for this task. One of the issues though is that Malda is a perl nut, not a pike nut. =)
The threading alone doesn't make roxen faster(in fact, it isn't faster, just more scalable, which is what is needed here..), its its use of select() or poll() along with a server-side implmented caching system, so you don't end up reprocessing crap that you don't need to keep doing. The only benefit of threading of course is that all the threads share the same memory.
Roxen Challenger [roxen.com]
Pike [idonex.se]
Something someone noted a while back is that roxen actually responds faster to the slashdot effect.. =) Probably due to the fact that it stores more stuff in ram because of the higher load. Doesn't make the OS freak out with 1000 connections.
Counting of comments is broken (Score:1)