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

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

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
Optimize Upstreaming Project   Message List  
Reply | Forward Message #8357 of 8443 |
Beta: Optimized Upstreaming in Radio 8.1

We made some changes to the upstreaming in Radio, adding some new scan
intervals for different folders. This reduces the load that Radio places on
the processor during each scan. Significant reductions in overall processor
usage has been seen on both Mac and PC platforms with this beta code.


*** How do I install it?

Important: Quit Radio and backup the entire Radio UserLand folder. This is
good practice before installing any beta software or tools. Also, observe
the current Radio application's processor usage while idle and while posting
before you install the beta. Ensure that upstreaming is turned on when you
check the processor usage.

On Windows 2000/XP, open the Task Manager (press Ctrl-Alt-Delete and click
the Task Manager button) or use Performance Monitor. On MacOS X, use
Activity Monitor.

1. Download this file and save it to disk:

http://lawrence.userland.com/radioParts/upstreamingBeta05.fttb

2. Import the beta parts into Radio using the Open command in
Radio's File menu.

3. In the QuickScript window (Ctrl-;), run the following script:

workspace.upstreamingBeta05.installer ()

4. The Upstreaming preferences page has been temporarily renamed "Upstream
Beta". The wording here is very different and there is no longer a
preference to set the upstreaming interval. We've hard-coded intervals to
something in line with modern weblogging--each folder type is listed on the
pref page with the scan intervals.

http://127.0.0.1:5335/system/pages/prefs?page=1.4

If you need to remove the beta parts, you can run the following command in a
QuickScript command to restore the original parts (prior to installing of
the beta parts):

workspace.upstreamingBeta05.installer (false)


*** How do I test it?

Easy. Use the software like you always have. Let us know if it behaves
like you would expect. The upstream scan intervals have changed so be sure
to visit the prefs page and look for the "Upstreaming Beta" link. Click it
and you'll see the default values and some definitions. Give us feedback on
how to make that page better and easy to understand.

Send an email to the radio-dev list letting us know that it worked, or if it
didn't work, what happened.


*** Thanks

Thanks to Marc Barrot, Andy Fragen and Patrick Ritchie for their hard work
in releasing these changes. Extra special thanks to Jake Savin for writing
the new callback for upstreaming.


*** How does it work?

We've modified radio.upstream.uploadChangedFiles to run a new callback:
radio.upstream.callbacks.upstream.upstreamScanFolder. The callback runs the
scan based on the new user prefs and sets a boolean called flScanNeeded on
the folder. The script at radio.upstream.uploadChangedFiles has a new
subroutine that looks for the boolean and scans the folder only if it's set
to true.

Developers can create similar scripts and store them (or their addresses) in
the user.radio.callbacks.upstreamScanFolder table if they create folders
that need scanning on a different schedule than once an hour, the default
value for 'custom' folders.

Also, the script at radio.file.getAttributes has been optimized to call the
date verb less often and check for the presence of a passed "whenModified"
parameter. This reduces the overall script processing time and processor
load, making upstream scans and page rendering (internal and external) much
faster.

Finally, we've corrected the upstream code so that invisible files or
folders, such as MacOS X's notorious ".DS_Store" files, never clutter the
upstream file cache.


*** Upstreaming Scan Intervals:

www Folder
Defined as: the root of the 'www' folder and the root of all category
subfolders
Interval: 10 seconds

current Folders:
Defined as: Archive folders for the past month for weblog posts (including
categories), stories and images.
Interval: 10 seconds

recent Folders:
Defined as: Archive folders for the previous month for weblog posts
(including categories), stories and images.
Interval: 5 minutes

archive Folder
Defined as: Archive folders more than two months old for weblog posts
(including categories), stories and images.
Interval: 1 day

static Folders:
Defined as: gems, images, stories folder structure
Interval: 1 minute

custom Folders:
Defined as: all folders not defined above.
Interval: 1 hour





Tue May 3, 2005 9:30 pm

tomalak
Offline Offline
Send Email Send Email

Forward
Message #8357 of 8443 |
Expand Messages Author Sort by Date

All: I'm looking for developers in the group to participate in an upstreaming optimization project. We'll be analyzing the process from "top to bottom" in an...
Steve Kirks
srkbuh
Offline Send Email
Mar 24, 2005
6:02 pm

FYI the deadline is Friday, March 25th by noon Central time (-6GMT). Sorry about the omission. Steve ... -- Steve Kirks Product Manager, Radio UserLand ...
Steve Kirks
srkbuh
Offline Send Email
Mar 24, 2005
6:10 pm

We made some changes to the upstreaming in Radio, adding some new scan intervals for different folders. This reduces the load that Radio places on the...
Lawrence Lee
tomalak
Offline Send Email
May 3, 2005
9:32 pm

... I guess I should test it some more beforing repying but I just wanted to say that I'm back from Mexico, looking forward to diving back into Radio stuff,...
iceplantradio
Offline Send Email
May 4, 2005
1:43 am

Donovan: Just to make sure it's installed, can you check to see if the Upstreaming pref page is titled "Upstreaming Beta"? Steve ... -- Steve Kirks Product...
Steve Kirks
srkbuh
Offline Send Email
May 4, 2005
3:18 am

Steve, that's what the title says. "Upstreaming Beta"...
iceplantradio
Offline Send Email
May 4, 2005
5:45 am

Ok, here is what to look for when evaluating the upstreaming beta: You need to monitor CPU activity by using the Activity Monitor utility under MacOS X or the...
Marc Barrot
mb1022002
Offline Send Email
May 4, 2005
2:38 pm

... For instance, on my MacOS X laptop, average CPU load when Radio is not running, and system is idle is very low: CPU is around 80% idle. I usually have...
Marc Barrot
mb1022002
Offline Send Email
May 4, 2005
2:49 pm

In `top`, Radio spikes to 50-65% every 10 sec or so with the remaining time spent under 10%. If I have another process using lots of CPU I only get spikes in...
Andy Fragen
ajfragen
Offline Send Email
May 4, 2005
3:39 pm

Bug: What I did: With a clean copy of Radio 8.1 on MacOS X, I created a new empty folder called "customerDemo" in the root of the www folder. What happened:...
Steve Kirks
srkbuh
Offline Send Email
May 4, 2005
3:47 pm

I'm not sure what Steve expects is the standard procedure: I think 'empty' folders should not be upstreamed at all. They are created on the public site when...
Marc Barrot
mb1022002
Offline Send Email
May 5, 2005
12:23 am

All: Marc is right... ... I tested with old code and new (thanks, installer!) and in the old code, the empty folder is skipped. In the new code, an error is ...
Steve Kirks
srkbuh
Offline Send Email
May 5, 2005
2:39 am

... Well, meanwhile I've managed to replicate the bug evidenced by Steve and locate its origin: a rather obvious mistake in radio.upstream.uploadChangedFiles....
Marc Barrot
mb1022002
Offline Send Email
May 7, 2005
1:36 am

... Hmm... I'm having a situation where categories starts upstreaming in an endless loop. It's alphabetic though, because if something comes before ...
Forest Oak
mutualaid
Offline Send Email
May 16, 2005
4:11 pm

... I've uninstalled the upstreaming beta, & now my home index.html is getting published, but the endless loop of publishing & republishing the categories is...
Forest Oak
mutualaid
Offline Send Email
May 17, 2005
5:59 pm

Jeff: Beta 6 will ship tomorrow.... Steve ... -- Steve Kirks Product Manager, Radio UserLand http://steve.userland.com/...
Steve Kirks
srkbuh
Offline Send Email
May 18, 2005
1:24 am

I'll be trying it again. The endless loop did finally quit... but it took about an hour. I was just happy the uninstall works. Jeff ... ...
Jeff Imig
mutualaid
Offline Send Email
May 18, 2005
1:39 am

... Thank Patrick Ritchie for that....he wrote the code... :) -- Steve Kirks Product Manager, Radio UserLand http://steve.userland.com/...
Steve Kirks
srkbuh
Offline Send Email
May 18, 2005
3:50 pm

My findings: On my MacOS X laptop (PowerBook G4 800MHz), average CPU load when Radio is not running, and system is idle the CPU is around 80% idle. I usually...
iceplantradio
Offline Send Email
May 5, 2005
12:18 am

We released a fix for the upstreamScanFolder callback that caused custom folders from never being upstreamed. *** How do I install it? Important: Quit Radio...
Lawrence Lee
tomalak
Offline Send Email
May 19, 2005
3:42 am

... status using radio categories with upstream beta 06 Mac OS X local file upstream driver No longer gets caught in endless loop in categories. BUT: if the...
Forest Oak
mutualaid
Offline Send Email
May 19, 2005
2:31 pm
Advanced

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