Commit Graph

1156 Commits

Author SHA1 Message Date
David Anderson 91665c7109 - user web: bug fixes for prefs
svn path=/trunk/boinc/; revision=21301
2010-04-26 20:28:54 +00:00
David Anderson 26c0814d26 - client: clean up network suspension logic.
There are now separate flags for
    "file_xfers_suspended": don't do file transfers
    "network_suspended": don't do any network comm
        (scheduler RPCs, RSS fetch, master fetch, etc.)
    The policy:
    if preferences/settings say no network
    (quota exceeded, no-network mode, user active, time, excl. app)
    then:
        file_xfers_suspended = true
        if (no recent network-related RPC) network_suspended = true
- user web: code cleanup for project prefs

svn path=/trunk/boinc/; revision=21299
2010-04-26 19:31:28 +00:00
David Anderson 37f08f46b0 - user web: message tweaks
svn path=/trunk/boinc/; revision=21290
2010-04-26 02:34:58 +00:00
David Anderson 8f91d96150 - user web: add network quota pref (the goal that spurred all this cleanup)
- rename prefs.daily_xfer_period to daily_xfer_period_days


svn path=/trunk/boinc/; revision=21269
2010-04-23 20:29:02 +00:00
David Anderson a32dca3fbc - user web: separate general stuff from prefs.inc
svn path=/trunk/boinc/; revision=21268
2010-04-23 18:32:30 +00:00
David Anderson 9619791ad3 - user web: more cleanup of prefs.inc
- client: code cleanup


svn path=/trunk/boinc/; revision=21267
2010-04-23 17:46:57 +00:00
David Anderson 1b044796c9 - user web: first whack at cleaning up the mess which is prefs.inc
(to be continued)


svn path=/trunk/boinc/; revision=21260
2010-04-22 23:19:49 +00:00
David Anderson bede9972b1 - client: fix bug with NVIDIA GPUs.
Some of them allow only 1 CUDA context at a time.
    You need to create a CUDA context to get available VRAM.
    So the client would run a CUDA job, then immediately kill it.
    Solution:
    - If a GPU app is running,
        let it keep running regardless of available VRAM
        (if it's still running, it has enough VRAM).
    - But don't start new apps if there's not enough available VRAM,
        or it the amount is unknown
        (if the client can't create a CUDA context,
        the app won't be able to either)
- client: if <coproc_debug> is set, print available GPU RAM periodically

svn path=/trunk/boinc/; revision=21253
2010-04-22 17:45:33 +00:00
David Anderson b71d3e6cf4 - back end: typo and tweaks
svn path=/trunk/boinc/; revision=21196
2010-04-16 21:16:18 +00:00
David Anderson a92b7a5c32 - client: attempt to fix bug where a GPU would be assigned
to multiple jobs at the same time.
    I fixed one error (reference arg to assign_coprocs())
    but I can't see why this would explain the problem.
    I added a lot of extra <coproc_debug> log messages.
- user web: give scientists moderator privileges

svn path=/trunk/boinc/; revision=21158
2010-04-09 20:27:42 +00:00
David Anderson 78769ee501 - admin web: show more credit-related info
svn path=/trunk/boinc/; revision=21141
2010-04-07 20:16:43 +00:00
David Anderson 23997a28e3 - user web : improve result display
svn path=/trunk/boinc/; revision=21117
2010-04-06 16:34:31 +00:00
David Anderson f1bbf5c339 - web: show anon platform correctly in task list
svn path=/trunk/boinc/; revision=21048
2010-04-01 16:32:16 +00:00
David Anderson fb851311e0 - server: various changes;
see http://boinc.berkeley.edu/trac/wiki/CreditNew

    Projects will need to update DB and recompile all back-end programs.

    Summary:
    - new way of computing credit
    - "reliable host" mechanism is per app version
    - "host punishment" mechanism is per app version
    - adjustment of wu.rsc_fpops_est provides the
        equivalent of per app version DCF
    - max jobs in progress is now per app
    - max jobs per RPC is now per app

    TODO:
    - reliable mechanism:
        - populate and use host_app_version.error_rate
        - populate host_app_version.turnaround
    - host punishment:
        - populate host_app_version.max_jobs_per_day
        - populate host_app_version.n_jobs_today
        - use app.max_jobs_per_day_init
    - job limits:
        - use app.max_jobs_in_progress, max_gpu_jobs_in_progress
        - use app.max_jobs_per_rpc
    - adjust wu.rsc_fpops_est
    - remove old credit stuff
        fpops_cumulative, credit_multiplier
        credit computation in scheduler

- AVERAGE class: use the Knuth algorithm (Wikipedia)


svn path=/trunk/boinc/; revision=21021
2010-03-29 22:28:20 +00:00
David Anderson 6c39a91b1c - user web: in above case, remove notifications as well
svn path=/trunk/boinc/; revision=21011
2010-03-28 23:47:17 +00:00
David Anderson 03f646779c - user web: if a forum or thread is not visible to a user,
remove their subscriptions to it.


svn path=/trunk/boinc/; revision=21003
2010-03-26 05:34:14 +00:00
David Anderson 7bb82a9f83 - web RPC: include mem and disk info in host XML record
svn path=/trunk/boinc/; revision=20997
2010-03-25 16:38:17 +00:00
David Anderson 5b7f8b8348 - web: fix bug that caused "send email" and "show hosts"
in project prefs to always select "no"


svn path=/trunk/boinc/; revision=20786
2010-03-04 04:16:00 +00:00
David Anderson 811c61e79a svn path=/trunk/boinc/; revision=20734 2010-02-25 17:51:41 +00:00
David Anderson 575cec858c - admin web: a project must provide an .htaccess file
or an auth_ops() function (not necessarily both).
    New projects are given an .htaccess file with no .htpasswd,
    so they must either create a .htpasswd file
    or define auth_ops() in order to use admin web pages.

svn path=/trunk/boinc/; revision=20671
2010-02-21 04:45:52 +00:00
David Anderson 04425c51af - web: translation stuff
svn path=/trunk/boinc/; revision=20657
2010-02-19 17:51:00 +00:00
David Anderson 6dd7401da7 - various components: fix inconsistencies in how user names
and team names are represented.
    In particular, edit_user_info_action.php was using
    htmlentities() on names; this led to double-encoding.

    The new rules:
    1) no HTML tags allowed in either one.
        This is enforced silently, using strip_tags()
    2) names are stored in the DB exactly as entered.
        They may contain chars like & and >.
        They may contain non-ASCII characters
        (use UTF-8 if you want them displayed correctly).
        None of these are not escaped.
    3) When the names are put in XML
        (e.g. in scheduler reply or db_dump output)
        they are XML-escaped.
        This escapes <, &, and non-ASCII chars
    4) The client leaves them in this form,
        and writes them that way in GUI RPCs
        and init_data.xml files.
    5) The parsing of GUI RPC replies and init_data.xml files
        XML-unescapes them.

svn path=/trunk/boinc/; revision=20647
2010-02-18 22:33:26 +00:00
David Anderson 9bc2e0a281 - web: fix typo
svn path=/trunk/boinc/; revision=20612
2010-02-17 21:12:31 +00:00
David Anderson 21a18b7045 - web: more translations, from Christian. fixes #982
svn path=/trunk/boinc/; revision=20582
2010-02-16 01:06:03 +00:00
David Anderson 4a963143ec - web: more translations, from Christian. fixes #981
svn path=/trunk/boinc/; revision=20568
2010-02-15 04:30:25 +00:00
David Anderson d78b5fb79a - client: if a project is anonymous platform and it has no
app versions that use a resource,
    don't request work from it for that resource.

svn path=/trunk/boinc/; revision=20549
2010-02-11 22:19:22 +00:00
David Anderson dd358791b7 - web: make a bunch of strings translatable (from Christian Beer)
fixes #977


svn path=/trunk/boinc/; revision=20462
2010-02-07 23:51:37 +00:00
David Anderson b9db4b16db - web: fix bug that caused news RSS to show wrong items
svn path=/trunk/boinc/; revision=20427
2010-02-05 04:46:10 +00:00
David Anderson 5f1bf70056 - web: Drupal stuff
svn path=/trunk/boinc/; revision=20418
2010-02-04 16:55:16 +00:00
David Anderson e44ac6dede - web: code shuffle for Drupal
svn path=/trunk/boinc/; revision=20417
2010-02-04 16:15:54 +00:00
David Anderson ae6420ab65 - client: if GPU get available RAM fails, don't use the GPU
- web: put $languages_in_use into $GLOBALS.
    Apparently it can't be referenced as a global in Drupal otherwise

svn path=/trunk/boinc/; revision=20412
2010-02-03 23:04:34 +00:00
David Anderson 1600c26206 svn path=/trunk/boinc/; revision=20403 2010-02-03 17:28:03 +00:00
David Anderson 09b92f0841 - user web: allow zero resource share
- client: allow zero resource share


svn path=/trunk/boinc/; revision=20315
2010-01-29 15:50:47 +00:00
David Anderson 04b8cf965f - web: assume all translation files are UTF-8
svn path=/trunk/boinc/; revision=20270
2010-01-27 04:04:17 +00:00
David Anderson 6b3ea3d339 - user web: don't show "database error" if result refers
to deleted app version

svn path=/trunk/boinc/; revision=20251
2010-01-23 00:36:12 +00:00
David Anderson eeffc6de96 - web: translation fix from Nicolas:
"There is a bug in tra() that causes problems if one of the arguments
    contains a replacement marker itself. For example, if the first
    argument contains an encoded URL, which contains '%2', the second
    argument may appear in the middle of the URL."
- client simulator: further fiddling around.  Not done.

svn path=/trunk/boinc/; revision=20201
2010-01-19 23:01:09 +00:00
David Anderson e2d3f75eef - client and user web: finish the above.
Should add the Adv Prefs dialog as well.

svn path=/trunk/boinc/; revision=20193
2010-01-19 00:38:31 +00:00
Rytis Slatkevičius d6d8037f5d user web: do SQL escaping before storing prefs in the database as some projects store user-editable strings in the preferences.
svn path=/trunk/boinc/; revision=20188
2010-01-18 15:19:23 +00:00
David Anderson 4ab335eb49 - user web: make a bunch of strings translatable (from Nicolas)
svn path=/trunk/boinc/; revision=20180
2010-01-16 06:19:19 +00:00
David Anderson e7dcff182f - web DB code: fix PHP warning when enumeration returns nothing.
From Nicolas. fixes #974
- client: tiny code shuffle

svn path=/trunk/boinc/; revision=20178
2010-01-15 23:08:55 +00:00
David Anderson 737952dbb5 - server: client version numbers are represented as
10000*major + 100*minor + release,
    rather than 100*major + minor.
    Sometimes you need release-level resolution.
    This affects:
    - app_version.min_core_version
    - config: min_core_client_version_announced
    - config: min_core_client_version
    Projects using these must multiply them by 100.

svn path=/trunk/boinc/; revision=20149
2010-01-13 17:28:59 +00:00
David Anderson ee343cea02 - client: small tweak to work fetch:
if project has crazy DCF, don't automatically request 1 sec;
    only request work if there's a shortfall.
- intermediate checkin for notices stuff

svn path=/trunk/boinc/; revision=20145
2010-01-12 21:53:40 +00:00
David Anderson f10384af43 - client: add <stderr_head> config option;
sends the first rather than last 64KB of stderr to server.
    This doesn't belong here; this choice should come from the server.
    I may take this out later.
- user web: when add a private message, always add a notification

svn path=/trunk/boinc/; revision=20141
2010-01-12 18:39:59 +00:00
David Anderson 2e6e97cfe6 - web: don't show news items if they're hidden
svn path=/trunk/boinc/; revision=20063
2010-01-04 17:06:54 +00:00
David Anderson 98df3052c5 - web: if someone edits their profile, remove it from the cache
so that they and others will see the new version.

svn path=/trunk/boinc/; revision=20039
2009-12-25 04:23:48 +00:00
David Anderson 4ae4fce8c0 svn path=/trunk/boinc/; revision=20038 2009-12-25 01:27:29 +00:00
David Anderson d86c0b2802 - web tweaks
svn path=/trunk/boinc/; revision=20037
2009-12-24 22:47:53 +00:00
David Anderson bfe4e1bf3d - web: fix motd bug
svn path=/trunk/boinc/; revision=20013
2009-12-22 18:39:40 +00:00
David Anderson 8132f29140 - web: fix bug if news item title occurs in middle of content
svn path=/trunk/boinc/; revision=20004
2009-12-21 19:38:50 +00:00
David Anderson 4e9fc3d595 - client: a big glob of new code related to notices.
Not functional yet.


svn path=/trunk/boinc/; revision=20002
2009-12-21 17:49:28 +00:00