From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: Emacs on Android OOMs with pdf-tools. (And an Android howto.) Date: Tue, 20 Aug 2024 21:07:56 +0800 Message-ID: <87r0ajfikz.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35693"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier To: Stefan Monnier via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 20 15:08:42 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sgObJ-00094C-6A for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 20 Aug 2024 15:08:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgOaw-0005t9-Iz; Tue, 20 Aug 2024 09:08:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgOas-0005sq-B8 for help-gnu-emacs@gnu.org; Tue, 20 Aug 2024 09:08:14 -0400 Original-Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sgOaq-00059m-83 for help-gnu-emacs@gnu.org; Tue, 20 Aug 2024 09:08:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1724159289; bh=pSX4IEsOmVkxJCC4fT3tVI4Yj5t9ZXUA32POHbqBSdQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=SuHtZyQqo2lwz23xhre7MDznjst0Oyo/XSrCeBCdAntDX2Kdj2wAegdokG2vte9cqgr8/sH94wQfFzjydTIz01IY7c4D51lnPvpWF5kNI4o21GVfEIB2Dea1GzH0ooTRXJZ37QhYCdpQM/aJBm/rE1AQG9+XiSYYxVTe8GuzRtBSXaN/LemKYpYmQaL4Yrqt5Pm/sThiAxF/3kY/iZbEDXHZ2Osy5xYDBHyQdcB7jFdkSunhTFYlc/eOAd5wa8tSvp6+lKzh6d1UGebRaOQxK2InRitxtck4kODBvA0vtlIikT5LUCT0OH3HPtwGljuR6+2GVVuEmiYL0ANS1gclOw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1724159289; bh=qj9lpCnQ0aiMHRgA10yGWt5WmsEG0pVusQLEviQ/Btk=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=TKc77Ev37YxOAwJARobgz3zjy2WqwcNsgKbr0Qz6rgfj5J6F4aRfaZkgYT6wS/uEl4he0vSdnhPWojl2GzrN5f3t5rsN1FfvJT+3gR6kAwFKVLxZ6uWtwYhSm7DOBnzqHJolOtYaTHpyOsCJ6E8HutxttpvTWd7qoMhUsrgjME9ZNpbAyHof6sL/VJCey1FK01kws0ni5C1XRgVxFcVdo8+YLpDYUWb+p5GdRihjKNM5wLMVt7saEksqRh/7tmKiSVtIie1Ew/Z+sZ7KrBxItnqIrQVqkovvgh/KWAexyG+PwG378ef/sfQcZQD6GlpFTLA3mReMNcv1T9CRGnt4vw== X-YMail-OSG: dFw8KKEVM1niY9gwIGoKiGgUecnwVkIm2BvWe9zx4acizWuMTFTYW9S5eCMXrfN Hxagms1zcEMntSZfJoes6.KQUWBHzjxzl6P2bJf5sHn5V0oSlYp29XoVjYll9zntA7Lq9gKGt0Sc G59fujbxCveJOSZdRPyQvJbqLKRRNJu2tG9VtJidqXYVegEDShryA4TnVFRC6g_N3PMzzFSOowJL 9scCp8zK.dV3sTCpP2cYVh2TcpnydCCdL_WYPwr6fQB5fA0AJGKjSqVsuyzsX0icNMVo5vlG4jlh IYq6HPpJCfoljRJAernH3hW3LQrqK4ttH2yorNLOVMBiwK3yYE7EMF4X3YWCD0Y._2Nbre7Whf3t ce_1T_Lh4Ae4gAyyGTLXLajzy7F9_nu1D0d4AmwsCzKUHx8AlQcRuy0x6JUa2rrTI4eteEzdqWa1 kGzl5KlXI_fc3y1bJG_IrYp7W6SNNGN20k12yc9qG0o9hMS7qP6i2oyheQ50P4QY0JGnijgpj6rI JDRxRXiNyaudbPiMvek2N7ugDr2khLEHJk7ZhYjPLsfebvpQBnmumcpAz86dWVN8KHsaa2OtPRqE 0BtuFkZycYMG8ppq3N2YLCPFYxKuUCXYR20r2abdeLLUqoZag9t2USPE2U.fVda4ZYQqSkm7Yyen EqmcIPeV_RRtChuyVtWyBjreRAobvqGcO.stP4ytuORoI1PGIDaqxe4N8TW1oUXC_k0muWRKoPiA Lfu._3NH0N8JACxBz5qkKGIJyJ_rt8vwrn5kscDqYXPPWlOu.y0tgt0pH48eYQ.qIv3.6zBwtBJ3 lDqnCLswU7h2vbq1paaoh6FFOwbvnZFU9_U2E6Pj2c X-Sonic-MF: X-Sonic-ID: d1cec699-c727-4e42-aa99-34b6e745d75b Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 20 Aug 2024 13:08:09 +0000 Original-Received: by hermes--production-sg3-fc85cddf6-27j2l (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4273704c173148db1ab89a858e26b998; Tue, 20 Aug 2024 13:08:02 +0000 (UTC) In-Reply-To: (Stefan Monnier via Users list for the's message of "Tue, 20 Aug 2024 08:21:08 -0400") X-Mailer: WebService/1.1.22544 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.146; envelope-from=luangruo@yahoo.com; helo=sonic314-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147742 Archived-At: Stefan Monnier via Users list for the GNU Emacs text editor writes: >> I have progressed a little bit by disabling pdf-tools cache, and trying >> imagemagick. But I still haven't managed to get to the end of even a small >> pdf of 22 pages. To whomever the OP is (I cannot find his e-mail), > Can you compare the size of the process (RSS, VMEM, M-x memory-report, > ...) "just "before" it crashes with the size of a similar Emacs in (say) > GNU/Linux doing the same thing? How much memory does your device provide? Also, I recommend against comparing Emacs's RSS on Android with that on other systems, since the former includes graphics memory that is allocated in enormous quantities to foreground user applications and released as demand increases elsewhere--it's much better simply to refer to the size of the image cache printed by memory-report.