From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DATE_IN_PAST_06_12, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5125 invoked from network); 31 Jul 2020 08:17:30 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 31 Jul 2020 08:17:30 -0000 Received: (qmail 9969 invoked by uid 550); 31 Jul 2020 08:17:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 9938 invoked from network); 31 Jul 2020 08:17:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6lyIGoOXpnrcn7T+bKiHSn+atwenHBxIT6mtTk1krc4=; b=of/pyIaqcqfz6xOk+NdOHqsSayZRCS3AK25+WDuv0gNmu4rvBtc95Ay/cwxC05vQDO /UCY2u/9fA2bJtzKPl+8xHcklxYHdh26hF85GK354e4PyZrZ/wROztuLf/bcYhD5zXJR tHfSCnuxPvo0jjAE7WagLGLaGnie+fyL/ho3d/mDeidmAOg3KW2cMPNE1wVB66aF3aPm 0skV0cV6RsxkHgaxZK6CfSJr18sOIL9th5YDv4boLHQM77Eyi2jqnyiKHYtMnzs2IONd VNTxJUNxBv8qTK+eMxKYuIJ79aI/aXd2y8daFg3en6W5y2FHCA5nYb4C2T3ZQG2J0AYS Bj7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6lyIGoOXpnrcn7T+bKiHSn+atwenHBxIT6mtTk1krc4=; b=VNUA8vy7T1vZH1h2+KSdpDZTu7jeYoWhbkjahQfvIC8Hrk1jbgoLvcULFMHceCGcse y7A7VF1SPc7atc9xPNkUd1jwNE1JOS7Ur+TC0ztwO9Ewdwntj6Uc6FX4ndoCTzyosdo5 ASnxvK4mINmgg8JrgYGa2pIXHTZdr9rbdQ+9cgPMlJWRAOOILKIls3qCxRMbHG8wzedW AEq/9QXKLyNy/EWPQHBb3NXeqMchF8GItdP+i3A7RH9J8TYTXLtDbXeoWWBh9W7HOIaa Ef1S3P/xS+JYlq0tbvpUI1mrW4Oq9tb+J6dprf6r6gqJ7IigRHo9qiu5AWuxCujfn21f /big== X-Gm-Message-State: AOAM531VKqgq6qRef5Gih+InKSXdaFJvywfgEoTup3nEYurfhf79cBSX TCgkSbRwlN8F51/A/BTwu8uif30pS49Lbk6gSvmGG3QZ5wY= X-Google-Smtp-Source: ABdhPJyGWg7EKctOIZ2XKPLxozP0mosAgBFv5wou6iOrDmPqxB7zQpwY8U5fpr7wbe06EUOKlLVyd6y16nzfwhvQqWE= X-Received: by 2002:a5d:9b0a:: with SMTP id y10mr2466023ion.86.1596183428789; Fri, 31 Jul 2020 01:17:08 -0700 (PDT) MIME-Version: 1.0 From: Zhao Zhengyu Date: Fri, 31 Jul 2020 08:17:02 +0800 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="00000000000044f91a05abb86a54" Subject: [musl] When to reclaim pages in __bin_chunk? --00000000000044f91a05abb86a54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, When chunks are merged, we use "(curr_size + pre_size) ^ pre_size > pre_size" to decide whether to reclaim. I think this may be something related to performance, but I can=E2=80=99t prove it. I want to know the reason. Thank you! Zhengyu --00000000000044f91a05abb86a54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
When chunks are merged, w=
e use "(curr_size + pre_size) ^ pre_size > pre_size" to decide=
 whether to reclaim. I think this may be something related to performance, =
but I can=E2=80=99t prove it. I want to know the reason.
Thank yo=
u!
Zhengyu

--00000000000044f91a05abb86a54--