From owner-soc-status@FreeBSD.ORG Mon Aug 12 18:01:54 2013 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5DABC286 for ; Mon, 12 Aug 2013 18:01:54 +0000 (UTC) (envelope-from b.ambarisha@gmail.com) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [IPv6:2607:f8b0:400c:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2257420F7 for ; Mon, 12 Aug 2013 18:01:54 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id d10so5895529vea.19 for ; Mon, 12 Aug 2013 11:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0V5N3WMoTTxmVUgJrkGmizKrcS+cgsxopW7Mme/3anA=; b=st7EgGpcTsGxSjel9uM+3utQcSuMBTdm7vg0U1Gh0Nh5yVCoYADyepk4710pymBJr5 tbgLACWLPbaB82AP/mCazTrwLf681weepBEB1P9B4h0cpqTVIpgXdIi1Gdg5/uXnONcf FQXTb6GPypkbAafeLA867xZMK5QG28vYcXg+Ogr4rLXAWQeYZ3pnbb8FwG8VtpYdvHfu ezuPPWlQKybAe6R3IPlbFoxMTDqOUWLTsIPWdtmNvsxvzLbOlun9Vv4NwN5PnHuNwdMh 3lOb0dEzORDC5W6nqmACsHhw/Up6hHJw2o1qRikgV6wh+MDGEXCyTnRjtRNvQLGYDHmC GXMg== MIME-Version: 1.0 X-Received: by 10.52.120.7 with SMTP id ky7mr156622vdb.12.1376330512892; Mon, 12 Aug 2013 11:01:52 -0700 (PDT) Received: by 10.58.45.162 with HTTP; Mon, 12 Aug 2013 11:01:52 -0700 (PDT) Date: Mon, 12 Aug 2013 23:31:52 +0530 Message-ID: Subject: IDMS: Weekly status report #8 of 14 From: Ambarisha B To: soc-status@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 18:01:54 -0000 Hi, Past week I've been working on site profiling. Progress so far: The DMS server maintains a profile for each of the mirrors which it stores to disk when exiting and loads up when starting. The profile contains (domain, 256 most recent speed samplings, remark indicating whether there was an error while using the mirror last time, number of active connections to this mirror) Every time a new request is received, the daemon picks a mirror. Here's a short description of the criterion it uses: - If a mirror hasn't been tried yet, try that. - Average the download speed from a mirror from all the samples collected in the past 1 week(a slight change will make this configurable). Pick the site with maximum average speed. - If there was an error, when using this mirror last time, pick this mirror only as a last resort. - If the number of active connections to a given mirror is already MAX_CONN, pick the next best mirror. This week is a buffer for testing this feature. So, I'll spend some time testing and fixing anything that turns up. You'll see the latest code in the svn repo latest by this time tomorrow. Please review it and let me know of improvements. Cheers Ambarish