找回密码
 新注册用户
搜索
楼主: ebx

资深GIMPer报到,欢迎提问

[复制链接]
发表于 2004-11-3 00:00:00 | 显示全部楼层
我看到楼主在官方论坛上发布的技术性的讨论文章了:
转自: http://www.mersenneforum.org/archive/index.php/t-119.html--------------------------------------------------------------------------------
ebx
September 24th, 2002, 07:55 PM
Here is a unix script I use to get my account info daily. I bet teamprimerib has better tools.I setup a cron job to run the script daily. From primenet server, it grebs my account summary, total LL and factoring top producer files. It then extracts my own info and appends it to a log file. For 3 lines a day, you can almost keep the info for as long as you want. I choose to leave the top producer files for manually deleting. You can delete them right away to save room. One other thing to watch is not to start the script at hour marks since that is when the data gets updated.I am not sure if primenet likes this idea since it puts a load on the server. If the server compresses the files and provides a pointer, the traffic is instantly cut to 1/6, or 500k vs 3M.Obviously, there is a lot of room to improve. #!/bin/sh
#
# get gimps account stats twice daily, in case one
# doesnt work.
#
# ebx
# 9/23/2002today=`date "+%Y%m%d%H"`
GETCMD=/usr/local/bin/wget
LYNXCMD=/usr/local/bin/lynx
USERID="ebx"cd ~/gimps# get the raw data
${GETCMD} -q "http://mersenne.org/cgi-bin/primenet_report.pl?UserID=&UserPW=" -O ac${today}.html
${GETCMD} -q http://mersenne.org/ips/topproducers.shtml -O ll${today}.html
${GETCMD} -q http://mersenne.org/primenet/ftops.txt -O ft${today}.html# convert them to txt format
${LYNXCMD} -dump ac${today}.html > ac${today}
cat ft${today}.html | col -b > ft${today}
${LYNXCMD} -dump ll${today}.html > ll${today}# drop a line to the history file
echo ${today}: " `grep "${USERID}" ac${today}`" >> hist
echo ${today}: "`grep "${USERID}" ft${today}`" >> hist
echo ${today}: "`grep "${USERID}" ll${today}`" >> hist# save some space
gzip ft${today} ll${today}
/bin/rm ac${today}.html
/bin/rm ft${today}.html
/bin/rm ll${today}.html--------------------------------------------------------------------------------garo
September 25th, 2002, 04:22 PM
ebx,
Yes 3M is a lot of data. Depending on where you are in the standings who don't you only grab that section of the standings instead of the whole report?For instance, for the LL standing you can easily use the following URL instead of the whole report:http://mersenne.org/cgi-bin/primenet_user.pl?UserID=ebxThis gives your LL rank.For factoring use a URL like http://mersenne.org/primenet/ftop5001to6000.txtI know you will have to keep changing this URL as you move up the ranks but it should be done rarely enough that it is not a problem. Garo(TPR)--------------------------------------------------------------------------------ebx
September 25th, 2002, 07:28 PM
Good point! For now, as I said, I keep the full reports. So maybe I will came back one day to study how I have climbed the ladder. It is interesting to see what kind of daily cpu hour can sustains at what level, how stable the high runners are, etc. (Over time, the top players will be very stable unless we change the sorting.)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 新注册用户

本版积分规则

论坛官方淘宝店开业啦~
欢迎大家多多支持基金会~

Archiver|手机版|小黑屋|中国分布式计算总站 ( 沪ICP备05042587号 )

GMT+8, 2024-4-28 05:10

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表