Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2257878rwi; Fri, 21 Oct 2022 01:28:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7EDh1lmnWIboevzQPJkXJbOBEiBRSPv+R4dsTlcpElMNNNxa9taxcO1S1EbvJtLSJ2XGka X-Received: by 2002:a17:907:2daa:b0:78d:4dca:43e with SMTP id gt42-20020a1709072daa00b0078d4dca043emr14499333ejc.134.1666340915932; Fri, 21 Oct 2022 01:28:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666340915; cv=pass; d=google.com; s=arc-20160816; b=cTursj2NPjPEJoW9v52xrcJQwGZb8NYvk9zITUWfrrLfwXAC218opTVepj9bCnv5nx 1lAQiTsYCgE7Al3UBHDWeLX2OYlD3cRllIBIxXTjenrKSqeGJhpWukD65U2EtySo4bMi Xse1t0u+goODLoku9XRDeIE4+ErlWpWZpQhD2kuADUp/0/ZPHaTnwtnXTXbP90EJ4pcO +ZRALxg5RCHv58IME1JU4XBeo4WXRItHRNU+0gNyUJX0Olq8RPAcSgTCrPoG15/wfBfZ MqXOsPOLr1q766j6dOg0C7zLELQMGh0VFDq2kDi9wqakSuIMzmIllO3LbETI+D2CwG3g ngyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=+aL203TCkgk/7HSkXr7KZ0wtWkP//ZvSOKoc0iyHdrk=; b=TgbiVAm9e7QHp5e3uACa9F9kkKLakalj+yplln5A1I8DzzyX7Z0Io6bu/Lf/RVsOti Sp/nTvRkJ3dda61iSaiY/6LjK6fdpy694kgaFGXWDnsqyBsqCVJJCKl7swZ14ZB7N0n8 b04N5l4bYp38Dc50e/idjysVJgCGvz7ry6hVSlzu8UR64OTAi1vP/Phby6u6ZEqdPVly pVGJnGi1GEWKBiLeZLLYLZ33U+lS/gYwlg7bGHkPadAfpcpRlcTDFSPurD1jQH0XMOo3 3AMx3h9bCiPDwCblH1w5Hpe2mmBRhOHaAon/69vRjadZ0XO62pxjTpK64yt2QeZJIC99 gfiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=hNIQBhoV; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a50cc87000000b00457594320f5si20144577edi.107.2022.10.21.01.28.10; Fri, 21 Oct 2022 01:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=hNIQBhoV; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbiJUIDE (ORCPT + 99 others); Fri, 21 Oct 2022 04:03:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiJUIDB (ORCPT ); Fri, 21 Oct 2022 04:03:01 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150122.outbound.protection.outlook.com [40.107.15.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FEF244C5A for ; Fri, 21 Oct 2022 01:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OfXryvEf3ZKd5iFoT7PCNw+iSXk+a8IjhdHYA6mzpByhBq4ZQ0u6fgW6ROLcrJ4xz8QvvEJcgFrgJHz8+IdlH2UpUwyzBGtck4si4OZCo2UDvSIDJt40B0Q1M9TGGlXq70GsMU7jX1xcQKkidTyb5mMYazp1fHLsfxqAxmyoQ8hc4OQOg3HUUoSomS7v/Mz3MPQ7lVDWY0SCIJr8o/ImMhmanup9fRAJ3+oInEYAcnIIv0sMxVRdN/uPW0A8SaETnFnN//HTC+xM6J3y9JqCssil3NYzcuhnN9S0IyUCqtIswF1Ob2RFdYQxILeYRkwVfjmbBud2LVEWwT9Vq9hrgg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+aL203TCkgk/7HSkXr7KZ0wtWkP//ZvSOKoc0iyHdrk=; b=YpnCSF0Mze6jH2q0Xz8BlC0cDOVbGQOwPfgE7+aezXlKsdQmWAXwzgj1wA7Oh5k5T8Tt3mFgy72XA4PbOMtDanNJWNeA77K/Z4AYnx0/3xPu67bMBJjzuxTUm8RL7JGMlhTzTioNHqBKavm9RKYTJ3U5I05yPwR20a5n48iDQjZEJv0IUTD/k26fs4n8Ge4OrwXQHry/z42cAIRLFpAlkxiiLXUbZDXdZIcgdN4Wj8AdIPVVUWe7HGwFVjkBwaicbatZcDTj+/ZPMyBv7CRmqsTmc+9WmB0J62i5IAmNhoSPlbV5BnArQN+DMINhX5+kAEzzGwmuFQvllmVeqKcPAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+aL203TCkgk/7HSkXr7KZ0wtWkP//ZvSOKoc0iyHdrk=; b=hNIQBhoVPOOK5G6nKfof0+kQS961bbt6AMrMcv4/Rjwf/JXQeXkfKXRbFu4zLEbAsaHk2ea+bxtTSnYzQ7IrTU9/xgOcURHNhWR1NGkA8AbNTZL6g1ZggIhWjJRpcgHSJuveRRwkoJFx1JxHBnXVdFtpoZ1RLXzOq8t6cdugjFkFfGPqnhQkXGEfcN/Pm1o6ohvTV1UeQA8cJKsvumhfi+p/QlTruL0CpJOeAhwAoGT6i3fgkAm4ZoSy8rifxUCZ4l2GUtjAQC4qk2myRSHg9a6jsb6s7DG7vuqnZqIr5QlCKUjwSCpTH7QX8xIkHhtWnRiA0QU4EPGCwycG/dMj+g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=virtuozzo.com; Received: from DBBPR08MB4758.eurprd08.prod.outlook.com (2603:10a6:10:da::16) by GV1PR08MB8428.eurprd08.prod.outlook.com (2603:10a6:150:81::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Fri, 21 Oct 2022 08:02:50 +0000 Received: from DBBPR08MB4758.eurprd08.prod.outlook.com ([fe80::abdc:cee5:91bf:4c78]) by DBBPR08MB4758.eurprd08.prod.outlook.com ([fe80::abdc:cee5:91bf:4c78%7]) with mapi id 15.20.5723.034; Fri, 21 Oct 2022 08:02:50 +0000 Message-ID: <0ed00686-4355-7f3b-4c73-cc6b5a0317b3@virtuozzo.com> Date: Fri, 21 Oct 2022 11:02:47 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [RFC PATCH v5 6/8] drivers: vmware: balloon - report inflated memory To: Nadav Amit Cc: Pv-drivers , Arnd Bergmann , Greg Kroah-Hartman , "kernel@openvz.org" , "linux-kernel@vger.kernel.org" References: <20221019095620.124909-1-alexander.atanasov@virtuozzo.com> <20221019095620.124909-7-alexander.atanasov@virtuozzo.com> <39FA848F-290D-4110-B27C-8822377E6AA5@vmware.com> <627d2c7f-8ba0-2910-a98d-ef42b9dd5ade@virtuozzo.com> From: Alexander Atanasov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR0701CA0041.eurprd07.prod.outlook.com (2603:10a6:800:90::27) To DBBPR08MB4758.eurprd08.prod.outlook.com (2603:10a6:10:da::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBBPR08MB4758:EE_|GV1PR08MB8428:EE_ X-MS-Office365-Filtering-Correlation-Id: 0080ca26-183a-47d6-3184-08dab33aa609 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yb9DwDnn42KjDmMjPAtUlBuq0fiu4W1CtmbIxAqJ5Jcy7pqxGClNVY2xQcYLoYl0PLKJqrE18uF1Y/ony3wjPwklH6GRqmIzPB8c0KhYnUg9r8HHuAMSczUL4eedCU81udSGazgqspMkgBayvcQVhtKDgiGKWHI44sMhXnSbzGlN9U9BXr6DVxU29As1em0IUR2qZFWZC2vT7iLbb6qdbqliWQT80c9iNfNP277jjrBY6s/SF8UPNmRoJkgdCru1qX6fesLavybjwTGhB8auSIk4gDVoV2M1F1XWHlss7kcr+Ij8XaPyxfZI290xX62A3hbE6VSErJK8DBI0muJEF6pfhHe4sIsla0SIFxUvKQbn1iKR4D+Owl6FGA/ZFyDmAkauljSGjbY6DdpP62uWg5S9bNfzaIFHun5ygGOBgE2qdnjeKrwygr7zV1u6NMWVFCnlNNp9w8/1CxSAo7EIJaPJ2ECAy4QJclnjUUvt+dUMweVMcILHzTGoTGZRijugwHbCmN2Ktjbo4G07vhCZ19Gf+VqYNJd7ch27sn/CHG7+M0TuCdVRn+8eQwj9Z0z0iZ3TjTF8BbcQbCQwgXNRJUXenPddRKquJ2AuHkZLiXQ/g1SdCZFgJNDPeI31h3Q5/EUj1XiHpfnovKVaUDkAYCHaulp7BhrumZJ2+YhYt7N8WF+Ocor8iZy5ixpI6uZOqBkil0BKz0o61lZvOLdb1Rp5MfNxuqk8wFQ6a2/j8ZF0vXpcvNPSnnRv1OYVuGqekvFTYOiDJOStpKtOrbZaoSSSG7MD0/LwHzOFVj3UUcA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBBPR08MB4758.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(39850400004)(136003)(366004)(396003)(451199015)(31686004)(86362001)(6512007)(6506007)(26005)(4744005)(66476007)(8676002)(2906002)(44832011)(66556008)(41300700001)(31696002)(4326008)(38100700002)(5660300002)(316002)(66946007)(36756003)(2616005)(8936002)(54906003)(6916009)(6486002)(83380400001)(53546011)(478600001)(6666004)(186003)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VXhiNGcwVWJBZ21ROFlGdkQwRXpNdTZFQ1lzaWp1dDFwQTN2K0dZeWRlTm9w?= =?utf-8?B?ZWgvVW1BL3FXS0Iva1pVN3ZEbXUyVG5IZkpwcnZCU3lXeWpPVkRSYUo5Y0hS?= =?utf-8?B?OGlrV0MxQ3BlOEZiNjdOQWphcXI0R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nB2MFA0MnVZYVcrUjBGc1ptUHVXTS9TUWRnZ2plZmc0NUhWY3FZU2VEV08y?= =?utf-8?B?L09iQ2xpM3ZHREw2b29qaU9XcHhkWHVNVlpackMwVHBHeVROeWlBa0dwUm01?= =?utf-8?B?Ym1CYnRVdjRoeGVydWdYUFBpRS8yZ2RtNWdVQTRQdGRWWWkzd3hoaVVrSHI2?= =?utf-8?B?RDN5RmJEMWlFWFRPdXVpTDJYdmNjUnhEV3JDWjZBODMvdFJYZmxzb2o4bTA5?= =?utf-8?B?ZVE9PQ==?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0080ca26-183a-47d6-3184-08dab33aa609 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4758.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2022 08:02:50.2848 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: P/CPtEiJXQP9lgZLGGUyjwUFcyAWsSkwHFqjestKh83UhRfJKlHYRVPtHaH/iIE1TkUcJ0hfcaxILMm9IwiHhcpXLd4gcV35GdBPhsdZL8zxfpAQJMTjyccti9svnvVe X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8428 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.10.22 10:31, Nadav Amit wrote: > On Oct 21, 2022, at 10:25 AM, Alexander Atanasov wrote: > >> >> Ok,I will move it before the enqueue call. >> But are you sure about this the reset? >> vmballoon_reset(...) is called only from vmballoon_work(...) which does >> the update ? what i am missing? > > My bad. But when the module is unloaded, vmballoon_pop() is called. Yes, i missed the unload - i will just set it to zero there. -- Regards, Alexander Atanasov