From users-return-21731-archive-asf-public=cust-asf.ponee.io@qpid.apache.org Wed Dec 9 18:37:31 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id E3DEF18037A for ; Wed, 9 Dec 2020 19:37:31 +0100 (CET) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id EEB2167935 for ; Wed, 9 Dec 2020 18:37:19 +0000 (UTC) Received: (qmail 55205 invoked by uid 500); 9 Dec 2020 18:37:19 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 55171 invoked by uid 99); 9 Dec 2020 18:37:18 -0000 Received: from spamproc1-he-fi.apache.org (HELO spamproc1-he-fi.apache.org) (95.217.134.168) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2020 18:37:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-fi.apache.org (ASF Mail Server at spamproc1-he-fi.apache.org) with ESMTP id 3F0CEC045D for ; Wed, 9 Dec 2020 18:37:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: -2.604 X-Spam-Level: X-Spam-Status: No, score=-2.604 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.403, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamproc1-he-fi.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pgs.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-fi.apache.org [95.217.134.168]) (amavisd-new, port 10024) with ESMTP id 4FjYqdUgtVNM for ; Wed, 9 Dec 2020 18:37:14 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=40.107.4.108; helo=eur03-db5-obe.outbound.protection.outlook.com; envelope-from=toralf.lund@pgs.com; receiver= Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40108.outbound.protection.outlook.com [40.107.4.108]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 6A9047F9E6 for ; Wed, 9 Dec 2020 18:37:14 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gJK6j3VwDtsdw8LSGdy6CqCIvKpA+m5XXV++9YwhKBQY9YBJ1b0U8i7dR/bieBa6LdpRgWF61t3zjYNsDWv7D9jyqAGuTLR/16o7nnEoCEImf/Dj5sOmxkWlIBfypzs2/nQqSahS7dxw1ByUY7/t4EB9znn0bcyVtZBo/nI3kVkDBcQ655K3vBWRvo/TfgRMCyrhJ47Y8p7ED9lv1HIbaC4fNpUkqUSUZz7ejch0gbSUrEW9EIzzDP7sTurjd8lynpMhdrxIBWcxCAlSk9r1Y9Ugdqfv3nGoDYzeO/dLb2RbiM+jDdR2khkKvu2LG7YSpxp/oFi5GjrDRa407x6D6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eSEW9R2ZUY7ED7RFJhgSSMvOYlnGr9Ci7sZPmBRu6ZA=; b=GVXmLFEkaNpvxZSd8rizLz7EoInzOYWsOqn/mPfnTkQFWOk6EzGUNJZ9qjX5jN7n0Pkz33oDHG9mNnsx0PCsLKpuDcJuQg39bul+ypytTYyBTLnljjI9i51SIIn0xXx1UFm5AK9+leG7bOURcoTHvjwRxCTUeIIW+RBPbrT5dEwxLhjCodxYDRwDMvUbhj8r1dwxfjG33P8WCvec3Y7Me3Fz479aFSBD9hXMtTaIu71Y/zI19ZCQ2I5gXZhslNcZo4w4TnES+nGkeCcy46V/9N9fUXsVUhw4BvGKcepAO1TlWMdfgwheGSXDxihIHGh16O59UxZKFbymcDi7/sG8Mw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=softfail (sender ip is 216.227.253.193) smtp.rcpttodomain=qpid.apache.org smtp.mailfrom=pgs.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=pgs.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgs.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eSEW9R2ZUY7ED7RFJhgSSMvOYlnGr9Ci7sZPmBRu6ZA=; b=R4u3cG/HMzzApkdj+ewfk4fbgumyw3AwTnyJMRuBd4cbAjrlqCwDvkZzKSoj/xacKFgX1JKBkJxLCMRj/INy2KeUc8LHXTXNC60GPkvB7pNUzxNyUPqOaIl3V5RBSZJI1CIugpNfkuWCzzLTyMYCpqRWmeevfj6X0pH7a6qE6fssrcznoCq7D9nwiZHdXJ2GBVsLrSJEgiArTAg37UQRr1GQ2ou+FavhNt5SOMZxKyXj7TSIbbh7mpmvY1hDLP2zK+y3y+lAgghD59lc+0/RYM9q4oauqLj/3hOcv6yjMwMlC5U2DFnsiG1mXs/mBY72EBhvNFhXj05H4dqfeMvwtg== Received: from AM5PR0301CA0023.eurprd03.prod.outlook.com (2603:10a6:206:14::36) by DBAPR03MB6374.eurprd03.prod.outlook.com (2603:10a6:10:19a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Wed, 9 Dec 2020 18:37:06 +0000 Received: from HE1EUR04FT028.eop-eur04.prod.protection.outlook.com (2603:10a6:206:14:cafe::dc) by AM5PR0301CA0023.outlook.office365.com (2603:10a6:206:14::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:37:06 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 216.227.253.193) smtp.mailfrom=pgs.com; qpid.apache.org; dkim=none (message not signed) header.d=none;qpid.apache.org; dmarc=fail action=none header.from=pgs.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning pgs.com discourages use of 216.227.253.193 as permitted sender) Received: from mail.pgs.com (216.227.253.193) by HE1EUR04FT028.mail.protection.outlook.com (10.152.27.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3632.17 via Frontend Transport; Wed, 9 Dec 2020 18:37:05 +0000 Received: from OSLMS28A.onshore.pgs.com (10.30.20.138) by OSLMS28DR.onshore.pgs.com (10.20.13.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 9 Dec 2020 12:37:01 -0600 Received: from [10.30.112.32] (10.30.112.32) by OSLMS28A.onshore.pgs.com (10.30.20.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 9 Dec 2020 19:36:58 +0100 Subject: Re: [External] Re: qpid::messaging::Sender::send() sometimes takes much longer than expected (in C++) To: References: <6a98cd3a-d095-f448-58d2-0b8383d6ef31@pgs.com> From: Toralf Lund Message-ID: Date: Wed, 9 Dec 2020 19:36:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.30.112.32] X-ClientProxiedBy: OSLMS28A.onshore.pgs.com (10.30.20.138) To OSLMS28A.onshore.pgs.com (10.30.20.138) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5411ca1e-68ed-4204-a813-08d89c716da4 X-MS-TrafficTypeDiagnostic: DBAPR03MB6374: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LJAJ4vaKN/7fv6zphY0yWLs051D9x6sGKX6IfPrv4mNVhbs3DdDusDyCwgUZi/urvNr/4pi61KV3AQFUfAvmLoJIJ5i46g+rDw7nHIQZ51QU4qFedn+2HITIR/ok5jJldf6l+8al6qJoSez6bJIx+cZADzm5zAPhL8TB1sPMPpY15HhnnnGZbcBxsO9EFE+i8Ej0FBhblcG+lhdDhF79I2l4PBer/9s1sfVrxeytfaZcfZGLwL/q/4+NDCKR+Q8wKTaGAD0wY+555vAQn1E8yhv8ssgfQiIqtQkzW0JBv6GDEnfwo1qF0BsuHDKxztUaqB0kofTtuVFDFcsOGQADjFJT/lQEmVXY3UV8yrR2jtlzASL3fRZ3m5b7uHUIIfuvXZCfu6Zezi3Ab0RvfjBRA+z+fmY0TkUvcU/Acb73EvHnwL9+FVs8v0+QRHk4weQlQRNn0OCNnq5sUhPZwj7df1BkRw8799+AyPVA6q8CPM75G+cK/aNlwqyxUPaojiKdUGIWdhyCjtVNCXVoXFq+Ew== X-Forefront-Antispam-Report: CIP:216.227.253.193;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.pgs.com;PTR:gphou-pgs.com;CAT:NONE;SFS:(4636009)(376002)(346002)(136003)(46966005)(53546011)(47076004)(26005)(31696002)(16576012)(8936002)(426003)(2616005)(44832011)(8676002)(86362001)(70206006)(82310400003)(70586007)(508600001)(6916009)(16526019)(186003)(5660300002)(36756003)(2906002)(83380400001)(336012)(31686004)(356005)(81166007)(141753001)(148743002)(3940600001)(43740500002);DIR:OUT;SFP:1102; X-OriginatorOrg: pgs.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 18:37:05.4511 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5411ca1e-68ed-4204-a813-08d89c716da4 X-MS-Exchange-CrossTenant-Id: 51d05d61-47e9-480b-93b2-98dc84f1ed06 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=51d05d61-47e9-480b-93b2-98dc84f1ed06;Ip=[216.227.253.193];Helo=[mail.pgs.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR04FT028.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR03MB6374 On 09/12/2020 19:16, Gordon Sim wrote: > On 09/12/2020 13:35, Toralf Lund wrote: >> My question is simply, what might cause the send to take several >> seconds? I can't see any reason why the communication itself should >> be that slow; the software runs on a machine that's connected to the >> same network switch as the broker. The systems do have a certain >> load, but I didn't think it would be able to cause anything like >> this. And shouldn't threading etc. make sure something gets done >> within a reasonable time in any case? What am I missing? > > One possibility might be lack of capacity (e.g. if the previous 100 > messages have not yet been acknowledged). Maybe. But I still don't get why it would take as long as 6 or 7 seconds. I have a test app that sends messages through a sender with 0 capacity, with a certain delay between transfers, and send() then generally takes less than 1 ms. > > Is there any pattern (in time for example) as to when the long sends > occur v. the more normal send times? I haven't been able to find one yet. - Toralf > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org