Search the web
Sign In
New User? Sign Up
radio-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Beta: upstreaming CPU usage improvements   Topic List   < Prev Topic  |  Next Topic >
Reply | Forward < Prev Message  | 
We've been working on some enhancements to Radio's upstreaming
implementation, which make it much more CPU-friendly. We're releasing
the changes here as a beta, so we can flesh out any problems before
releasing through the root updates process.

*** How to test:

1. Download the new parts here:

http://jake.userland.com/gems/upstreamPerfFixes03.fttb

2. Using the Open command in Radio's File menu, open the downloaded
file and click OK to all confirmation dialogs.

3. In the table window that opens after importing the file, run the
install script to install the changes.

4. Make a new post, edit an existing one, create a new story, and
verify that the files are upstreamed as normal.

5. Send a note to radio-dev and let us know how it's working. You
should see much less CPU usage by Radio, especially when Radio is idle,
and no significant change in responsiveness when creating or editing
posts or stories.

*** What are the changes?

There are two primary changes and a few smaller ones:

First, when Radio scans your www folder looking for new or changed
files to upstream, it keeps track of how long it's been since a file
was upstreamed from within a given sub-folder. If it's been more than a
minute, then Radio will only scan for changes in that sub-folder once a
minute. If it's been more than an hour, then Radio will only scan the
sub-folder once every five minutes. Files in the top-level of the www
folder are always scanned once every 10 seconds, to give priority to
your home page and RSS feed.

We also noticed that when scanning for deleted files, Radio was using a
large amount of CPU time. The scan now yields a tick (1/60 sec) of CPU
time for every 5th file when scanning for deletions. In addition, Radio
will only scan for deleted files once every five minutes instead of
once every 10 seconds.

Together, these two changes greatly improved Radio's CPU profile. In my
testing on a 500MHz G3 running MacOS X, Radio's CPU usage went from
about 70-80% to about 15-20%. A similar performance difference was
noted in the lab on Windows.

A more minor change to the scan for new or changed files prevents files
within folders containing an upstream spec of type "none" from being
scanned. This includes the www/system/ sub-folder and most Tool
sub-folders.

Other changes were made to force Radio to scan archive sub-folders,
story sub-folders, and the images sub-folder immediately, when an
archive file, story or image needs to be upstreamed. This should keep
upstreaming as responsive as it was previously, when editing your site
through the desktop website or the Meta-Weblog or Blogger APIs.

If you have any questions, comments or bugs to report, please send
email to the radio-dev mail list.

Thanks!
-Jake




Thu Mar 27, 2003 12:45 am

jsavin
Offline Offline
Send Email Send Email

Forward
< Prev Message  | 
Expand Messages Author Sort by Date

We've been working on some enhancements to Radio's upstreaming implementation, which make it much more CPU-friendly. We're releasing the changes here as a...
Jake Savin
jsavin
Offline Send Email
Mar 27, 2003
12:46 am

*This message was transferred with a trial version of CommuniGate(tm) Pro* ... Jake, Seems to work fine. -- Andy Fragen...
Andy Fragen
ajfragen
Offline Send Email
Mar 27, 2003
5:33 am

... idle, ... editing ... and it spiked the CPU up to 76% and the story didn't upstream right away (more than a minute) otherwise it's working..much much less...
Julie
secret_winds...
Offline Send Email
Mar 27, 2003
11:12 am

Dramatic improvement, Jake. If the rich-text email comes through, see the graph below. Installed the patch about 60% through the timeline. Ignore the flat-top...
Doug Kaye
dkaye23
Offline Send Email
Mar 27, 2003
11:41 am

Looks good so far, Jake. - Dave Seidel...
Dave Seidel
davidseidel
Offline Send Email
Mar 27, 2003
1:41 pm

Hi Jake, Good stuff. So far so good. Is there a simple way to example a table and see when the last time each folder was scanned? It would make it a lot...
Matt Mower
mowerm
Offline Send Email
Mar 27, 2003
2:03 pm

running all night seems good so far no noticeable change in behavior (Haven't looked at processor stats yet) just in terms of function Sam D...
sdevore@...
sdevore
Offline Send Email
Mar 27, 2003
2:08 pm

Hi Jake, I've noticed some problems today. I can't put my figure on what is happening, but I don't see some files being upstreamed that should be and I have...
Matt Mower
mowerm
Offline Send Email
Mar 27, 2003
9:45 pm

... I'm not sure yet, but I'm inclined to put this down to a problem rendering the OPML files I was generating. I've now moved them into folders with...
Matt Mower
mowerm
Offline Send Email
Mar 27, 2003
10:47 pm

5. Send a note to radio-dev and let us know how it's working. You should see much less CPU usage by Radio, especially when Radio is idle, and no significant...
Jim McGee
mcgeejim
Offline Send Email
Mar 28, 2003
2:29 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help