From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3E3A63858C52; Fri, 15 Sep 2023 13:02:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E3A63858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1694782947; bh=noDG8wKAat4uQvU/IWiIHTD6qYdoX7rZrXnr1C0+MpU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NTOb682f1aG5gDfY1g3whPRfuISKkUkklCtTPP0y+cbxAxh5X1K6UYwTBJBFE81aC +zXxBuYWdq+JIoqREt8IAcXSISLLoDsYwjLIP5RzQteIbuEETzQVAs3zc6sem8rxsU 6uo3cYNKIQzWtT9O8tM1NwettOkeD8YGFnUkXt48= From: "safinaskar at mail dot ru" To: glibc-bugs@sourceware.org Subject: [Bug malloc/30852] Big deallocation takes 8 minutes Date: Fri, 15 Sep 2023 13:02:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: safinaskar at mail dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30852 --- Comment #2 from Askar Safin --- Thanks for investigation! > from the swap used value it *does* seem that you are stressing it instead= of the allocator Yes, exactly! Program's occupied memory doesn't fit in physical memory. And= I don't like that in such situation deallocation takes very long time. My actual production program is written in Rust. In Rust deallocation happe= ns automatically. This means that I have to insert ugly "_Exit(0)" call before= the end of program to prevent deallocation to make the program faster. The need= for such ugly hacks means that something gone wrong > does it use compression or encryption? No > the IO bandwidth, the media throughput Swap is located on NVMe SSD device (in my laptop) > the system load I had a lot of apps opened in that time --=20 You are receiving this mail because: You are on the CC list for the bug.=