From owner-freebsd-questions@freebsd.org Thu Oct 17 11:11:24 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E1D1914E02E for ; Thu, 17 Oct 2019 11:11:24 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46v61741Jwz45SV for ; Thu, 17 Oct 2019 11:11:22 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id x9HBBGf4024448 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 17 Oct 2019 13:11:18 +0200 (CEST) (envelope-from ml@netfence.it) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfence.it; s=201910; t=1571310678; bh=AIXuW0BAkcZcsbFSXQxsh51kr8+aJ0TGGBHXEmSOpOk=; h=To:From:Subject:Date; b=d7JU5d9JWR6rQJU68M66sdp5Qccw5HpH5AI4LIKMBF3ndo1qMT4BdelHfJr1ELJPD g85HmbURupz+xnWy7LEhLN6cFebhVyDblX+LHpDleXq3kZkvj3x8TayrUFGesVm4sU 1YCzMXq4Ysp8ES+tI3MhYh8jDsSbWFsNCl4osWkU= X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu To: freebsd-questions@freebsd.org From: Andrea Venturoli Subject: Avoiding LibreOffice DOS Message-ID: Date: Thu, 17 Oct 2019 13:11:16 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46v61741Jwz45SV X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netfence.it header.s=201910 header.b=d7JU5d9J; dmarc=none; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-0.20 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(0.00)[netfence.it:s=201910]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:2.44.121.52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; URIBL_RED(3.50)[netfence.it.multi.uribl.com]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[netfence.it:+]; HAS_ANON_DOMAIN(0.10)[]; DMARC_NA(0.00)[netfence.it]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.80)[ip: (-5.87), ipnet: 2.44.0.0/16(-2.94), asn: 30722(-0.22), country: IT(0.03)]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2019 11:11:25 -0000 Hello. (FreeBSD 11.3p3/amd64, 8GiB RAM, with or without a 16GiB swap partition). I'm working on a program that produces an .ODS file. Sometimes this file is not valid and when LibreOffice (6.3.2) opens it, it will start hogging memory until the system is so loaded that it will stop answering to commands. No killing X with Ctrl-Alt-Backspace, no switching to another VT and logging in, no getting in through SSH; the only thing that works is the reset button. Of course it's my responsibility to get my program to produce a correct .ODS file. Maybe I should try and get in touch with LibreOffice support about how it behaves. The real question here is: how do I get the OS to kill LibreOffice (or any other program that hogs my machine) before I need to reset it? I tried putting vmemoryuse=6g in /etc/login.conf, but it didn't help. Any other hint? bye & Thanks av.