From owner-freebsd-questions@freebsd.org Thu Oct 17 11:49:14 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 3712414EC39 for ; Thu, 17 Oct 2019 11:49:14 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46v6rm6nlhz47C6 for ; Thu, 17 Oct 2019 11:49:12 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pf1-x42b.google.com with SMTP id q7so1492361pfh.8 for ; Thu, 17 Oct 2019 04:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=a/18TcZHYX1WUBlDHnnj39oDw03i5UBn52axf9Tvvws=; b=mslaGO85gjt+3O53+Z8nVUU5G8xC3wSP7HZWDYjX1tSYmmWrBUQFDtjp/3oBvPRBPG 1+07dGeXLKmUZHmu5wdCJ+YJLOatz1NHQW3av9tyN9GQSFNvBBDWyhnAafxz2OgLvxif Tgbml/u91PeaRfCfX63fDBi6ZhBspvXf73BATXitWw6yBLvGQw784kMH3TcqZY+Vp6Vr 450l4m7AruCJwO4y7SD9GM28ijDsOnXYrsUIf0n4ZwsdfmTL4cUqrmZhaghIpdNET+PG BgSjeP2I5B1IdbU5VmDSirVXvmpgS2JlSS6cZE4ywVJTBK0Px3Di6k8aiad4zDjYh/k0 EcJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=a/18TcZHYX1WUBlDHnnj39oDw03i5UBn52axf9Tvvws=; b=ula9hPx2Rxnuygl5qDRTxcF145Q4HWoo2r0LCry0ST6zUPbqVp648wVNhXmITX982n 8q+lJ7Ko8cyoVI9MtGysAQbNhDWexccKXpcmEqWhwd+KG8xW38toXni5S8kEcBFiQmp0 g9t+bztqgw92LfvolGcbXzDpQ4DlTJc/MdXmI2qfTBGedVl0wNt7tiHCBW9qksex/8vM 9teERPsF18bAzgSM5/LW7U1DHC66l+UO67x7iHXby4EJX2JHdm1tlX7FKNPDUdIKbWxb zsV2QhbVcC/nmVcjgAT3ggq8k1FJj6cj/eCs4GUIr2ayTKZfk785zp5qSoXAcQ0agkPk 0WMw== X-Gm-Message-State: APjAAAVqM0b4JBvuObO0nnVnEovGbMgc2xRLgxbL7WCDXC2f8+4To3M8 BdKMTsRMOo50poKDVB/OD5+48Ur4 X-Google-Smtp-Source: APXvYqxUOEdcnVghgQeUyjJ1rqi3pKuJLU0kc+/gjC7WLFnfQJ3OQ2zp1YRH5JWF9nXIjipTWMRbOg== X-Received: by 2002:a63:6949:: with SMTP id e70mr3650374pgc.226.1571312950790; Thu, 17 Oct 2019 04:49:10 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-161-221.mel.connect.net.au. [59.101.161.221]) by smtp.gmail.com with ESMTPSA id b16sm2085450pgb.21.2019.10.17.04.49.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 04:49:10 -0700 (PDT) Subject: Re: Avoiding LibreOffice DOS To: Andrea Venturoli , freebsd-questions@freebsd.org References: From: MJ Message-ID: Date: Thu, 17 Oct 2019 22:48:44 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 46v6rm6nlhz47C6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=mslaGO85; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::42b as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[221.161.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[b.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-8.90), ipnet: 2607:f8b0::/32(-2.47), asn: 15169(-2.10), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] 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:49:14 -0000 On 17/10/2019 10:11 pm, Andrea Venturoli wrote: > 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. Well the short answer is: You pretty well can't. If LibreOffice gets in such a tight loop processing that the kernel can't process keyboard commands, then you've got no alternative. Unless you can wait for it to stop, if it will ever stop. Mucking around with settings is a waste of time until you know what's causing the lock-up. Is it the cpu? Memory exhaustion? etc Running it virtually would seem the only quick practical approach, or better still fix your program. :-) > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >