X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=ZSTMNxEPwLfBR9zm ZvWOzF25MtlGNyo+sHDgtUzjewNTK3IXCA75sUxvVWJayehTREUxR2IfantexYRy eBXEZsLrziAxi4L3SwGWIvaVHUjGp2KbNwkucFuzQfPqNAkmSwgnyJcVme2DqK9R p9ejYuafoh5sKX2ahVqdGk38MtE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=z4JyYR49OLY2ijBlBCnL41 pjmEI=; b=Yu4E68r5sSDJeri7G+hvh6GgSf0GabZ+RDqIhborXbr2jB3VhbjnFs tZDyJHOxXYjdSj8YsHGKnisbpPbbCuIti7kgQZHKUGp66fC1K7x5UDsyC2jskEm/ 3hUpqm/oq8XDY9v2Ciebyipcev56GF0Y96qb/ltMmyw0L2ztyfyBY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=discretion, advised, HContent-Transfer-Encoding:8bit X-HELO: smtp-out-so.shaw.ca Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: non-persistant storage? To: cygwin AT cygwin DOT com References: <20191212120041 DOT GA7699 AT tik DOT uni-stuttgart DOT de> <8905c7b6-b2e6-52bf-bcdd-66890db91e9e AT cs DOT umass DOT edu> <20191212212746 DOT GA12864 AT tik DOT uni-stuttgart DOT de> <5DF2E42A DOT 7020200 AT tlinx DOT org> From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <5a2a2640-112e-adbf-7f7a-d599b086d3cd@SystematicSw.ab.ca> Date: Thu, 12 Dec 2019 23:26:49 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <5DF2E42A.7020200@tlinx.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 2019-12-12 18:06, L A Walsh wrote: > On 2019/12/12 13:40, Eliot Moss wrote: >> Ah!  I think what you want is a tmpfs or ramfs. >> Not sure if cygwin supports that ... >>   > ---- >    Easiest thing might be to use /dev/shm. I used it during > development to store intermediate data that was later to be > transfered via a fifo... > > Basically check for existence of "/dev/shm" (exists on my cygwin). > if "tmp" didn't already exist, create it w/options similar to > /tmp (only owner can delete/edit): > > mkdir -m 1777 /tmp/shm/tmp > > > **Warning, "writes" to /dev/shm/tmp (or /dev/mem) can fill up > your system's memory, so its only good for "small files" > (small being well under your system's free memory amount). I've been using /run, with /var/run as a symlink to that, created in a permanent postinstall script /etc/postinstall/zp_mk_run_var_links.dash (with some others), for some time. It's currently using ~28KB. Is it feasible to mount /run on say /dev/shm/run and create and use files there? Or would it be more feasible to use say Cyg/WinFUSE to provide that function? -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple