From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 0B7833B29D for ; Thu, 26 Mar 2020 10:45:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585233939; 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=KxJnu2Zpt13b7NPGn9n00aRVVDmdKQhLZftUUTdh30yHGd2tJ7e0eXQ3lLl+Jw1rN2gYy0 gyY3BhukOXhRLAgb4IASwRe0uB9WG1xor/UIKI8CKvHf08UUyrJiR4IQjij1mYKBdnRvPT R2anNu5IQWQSZXPvqzi1L4lnOhBCKzU= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-12-BEZxSA4jPcW4EVc7km2xVA-1; Thu, 26 Mar 2020 10:45:34 -0400 X-MC-Unique: BEZxSA4jPcW4EVc7km2xVA-1 Received: by mail-lf1-f72.google.com with SMTP id k15so592994lfc.11 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=MHQCzlzzKd2t99XXuYLc9Zf4mRBHPUJsd/C0D6CFu9qvPR7haWG0jSr/xtDfX4ntnK E+Fp6qooUVni5rz5hGlxMazjJQ38c5XfrvHQcLNd9vy0Y1fNUrcX0cuksRRjsRMAOa8u 761OVSWiMu+4FR/GYBfeTplO2RqVPpaaKI1O/bF9QgDx0zeimbjW6zyfuPsU1iNQPKeB wpX5NqwoEzxw6qK3Kl80pFa09eepP0LoKeg2jkfIjQyjWjU4jLs5iD9UNDxFN1Zx6O57 HE2uakEUtOIfWlaeKI/Q/TyoNQm3CH2FT9RciycD1xiTN3nKi6HU16tiPdzdqpBjFSi2 Rr2A== X-Gm-Message-State: ANhLgQ1su/EA4BGAsXteMBk1y7U1FzNQNF7AHy41sY4ewcNV8gVIJn7O HtmNgK9WL8Ekv9SoFm49lFufNlrsWaoMDKyShAVzCGbvTssrXnCwnCXlfRNEWlvH/aXHL95QzsB arLdXbwvXt+0Ix6KnlE+6FJhQaIS8f8IxR68= X-Received: by 2002:a2e:9a54:: with SMTP id k20mr5380270ljj.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 Cc: flent-users@flent.org 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 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Subject: Re: [Make-wifi-fast] Calling flent from python script X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2020 14:45:40 -0000 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 t= rust, > 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 reac= hable > and that netserver is running. I have to do this because flent provides n= o > indication (other than hanging) when it's not really running. > > My problem is starting flent via the python script. Using the following, > works: > p =3D subprocess.Popen(command, stdin=3Dsubprocess.PIPE, > stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.STDOUT, shell=3DTrue) > (output, err) =3D p.communicate() > print('\n>>> output : ', output) > print('\n>>> err : ', err) > > But I get no output until flent finishes. I know flent prints the followi= ng > 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_Tr= affic_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 pr= int > output as above, but not until flent finishes. > > How can I get the two start lines returned to the python script when flen= t > 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