From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.toke.dk X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.4 Received: from mail.toke.dk by mail.toke.dk with LMTP id QWHTNFDAfF5VGgIAOr1fkg (envelope-from ) for ; Thu, 26 Mar 2020 15:46:40 +0100 Authentication-Results: mail.toke.dk; none (SPF check N/A for local connections - client-ip=77.235.54.103; helo=web6.sd.eurovps.com; envelope-from=flent-users-bounces@flent.org; receiver=) Authentication-Results: mail.toke.dk; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=YYifpEK1 Received: from web6.sd.eurovps.com (web6.sd.eurovps.com [77.235.54.103]) by mail.toke.dk (Postfix) with ESMTPS id B3D2671E7C2 for ; Thu, 26 Mar 2020 15:46:39 +0100 (CET) Received: from [::1] (port=48750 helo=web6.sd.eurovps.com) by web6.sd.eurovps.com with esmtp (Exim 4.93) (envelope-from ) id 1jHTmH-00AcD3-9M; Thu, 26 Mar 2020 16:46:37 +0200 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:56851) by web6.sd.eurovps.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (Exim 4.93) (envelope-from ) id 1jHTm7-00Ac69-CJ for flent-users@flent.org; Thu, 26 Mar 2020 16:46:33 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585233945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bX/NXobXYNdUNprj5rnJiRJ7/kQQ3/bvcyY3lB2LNdI=; b=YYifpEK19kUOR+G+gb8KC8I2tUPRU6g2UlGdCNEJnHf4TNQY5Gk98yQmr6rWmfJ13m90Sv sROrIvYjPbPhIAKp57NWbgX+TsbohP0UOshW1K2ZZEtau/sB6ZQ2XnypFSPdVdJdsWc9Qy VGzzwidevaF7zerPcePWIyDjRkW3NYo= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-121-VayjVlmPNpmR1cQudoFEFA-1; Thu, 26 Mar 2020 10:45:34 -0400 X-MC-Unique: VayjVlmPNpmR1cQudoFEFA-1 Received: by mail-lf1-f70.google.com with SMTP id i24so2337528lfo.20 for ; Thu, 26 Mar 2020 07:45:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=81MH5HCPa84/gva8u3sEQy/QPD6eZ5XuC6hSL2cZcQA=; b=KgrLPGnvyxOOUiyaQSzzMhACTcvzGK/oy0p3fnIVRGCfUdgyLYd91XWEkNJimVQwX1 eov7p1jBiaQmlchxkvzvqTT+fakeeMN6vL0fSNXCCl51HqciGtz4aduYzZNm8R49Pl7f U/jDl28d5kLnzZl6K+0OKXUuCTSEP3Kcj7G7HRnwHz8hagCEM9X4SQhjm3j4uskvBh+r d/3/L8By4QCAtBpPK2dbj4EMPL7cXqFoYshesNqBGuDxOE4P1/rvwF6GSiMmTRqYdFDV JF+ZulyXib00I3Gyjfnj3JTGvcDTVfYmtzBkD+vPVW9cdqf0bB6BdpGu/1RubeDiq6N5 PuiA== X-Gm-Message-State: ANhLgQ0whigmzFGt5K5hFyAhHR5tvc4ewM/vgMqGDSfkp+gB49HuV9+s n+grOeYWdGo6itwQd8WERWFAihDzWwgAUuKj3mNISVVLt/dw1GiRGqy/wCJr+fnanXuHSbygKpc 0Ii8bDF8qrHImPZA= X-Received: by 2002:a2e:9a54:: with SMTP id k20mr5380271ljj.272.1585233933068; Thu, 26 Mar 2020 07:45:33 -0700 (PDT) X-Google-Smtp-Source: APiQypKWTFLKcbJPSvtemwnvcxoPETQcALhg7dSO0L9xlMWy7oWKJiNYv0NzsZeEBe4TosP4LMwEiw== X-Received: by 2002:a2e:9a54:: with SMTP id k20mr5380259ljj.272.1585233932772; Thu, 26 Mar 2020 07:45:32 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id i2sm1793135ljj.72.2020.03.26.07.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 07:45:31 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 2900118158B; Thu, 26 Mar 2020 15:45:31 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Tim Higgins , Make-Wifi-fast In-Reply-To: <52c7544e-6b3b-d43b-8e41-0b9ecf2cb33f@smallnetbuilder.com> References: <52c7544e-6b3b-d43b-8e41-0b9ecf2cb33f@smallnetbuilder.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 26 Mar 2020 15:45:31 +0100 Message-ID: <87blojnpis.fsf@toke.dk> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: Re: [Flent-users] [Make-wifi-fast] Calling flent from python script X-BeenThere: flent-users@flent.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Flent discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: flent-users@flent.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: flent-users-bounces@flent.org Sender: "Flent-users" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - web6.sd.eurovps.com X-AntiAbuse: Original Domain - toke.dk X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - flent.org X-Get-Message-Sender-Via: web6.sd.eurovps.com: acl_c_authenticated_local_user: mailman/mailman X-Authenticated-Sender: web6.sd.eurovps.com: mailman@flent.org Tim Higgins writes: > Apologies that some discussion with Toke and Dave took place outside this > list. At Dave's request, I'm bringing the conversation back here so that > others can benefit/contribute. > > I'm exploring using flent for OFDMA performance testing. I'm using Win10 > /AX200 STAs because the Win10 driver is the only one whose peformance I trust, > in both bands and both directions. > > I have a python 3 script that associates each Win10 STA, starts netserver on > it and runs a short netperf TCP_STREAM test to check that the STA is reachable > and that netserver is running. I have to do this because flent provides no > indication (other than hanging) when it's not really running. > > My problem is starting flent via the python script. Using the following, > works: > p = subprocess.Popen(command, stdin=subprocess.PIPE, > stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) > (output, err) = p.communicate() > print('\n>>> output : ', output) > print('\n>>> err : ', err) > > But I get no output until flent finishes. I know flent prints the following > when it starts, if I start it in another terminal window: > > /snb_devel$ flent rtt_fair_var -p all_scaled -l 10 -H 192.168.1.3 -H > 192.168.1.15 -t "2.4 GHz Down NETGEAR RAX15 AX200Pico AX200mini OFDMA on" -o > "snb_testresults/2020-03-25_16-06_netgear_rax15/2020-03-25_16-06_OFDMA_Traffic_w_ping/2020-03-25_16-06_netgear_rax15_snbofdma_tnp_24g_dn.png" > > Started Flent 1.2.2 using Python 3.6.9. > Starting rtt_fair_var test. Expected run time: 20 seconds. > > I'll also get the above, plus the "Data file written..." result when I print > output as above, but not until flent finishes. > > How can I get the two start lines returned to the python script when flent > starts, then the final data file written line when it finishes? Rather than running Flent in this way, might I suggest you take a look at the batch facility of Flent itself? That will allow you to specify a list of tests to run, pre/post scripts before each test run, and easy test repetition. It's there exactly for the purpose you are describing. There's a commented example batch file here: https://github.com/tohojo/flent/blob/master/batchfile.example And here's the file used for the example in the paper describing Flent: https://github.com/tohojo/flent/blob/master/flent-paper.batch -Toke _______________________________________________ Flent-users mailing list Flent-users@flent.org http://flent.org/mailman/listinfo/flent-users_flent.org