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:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=qP+6 xchFgLpm0X4jlYR/263KHpb7Pe5CCUz/G6W/tiUg8kYECrhI3T0TtFApB2wxRdgl D6L0+fOOhsAa/DFEvK+gGqAc3zFeQUYWIAiJ8JsSo/sJIWap0GzE0JTeAkMrUBP3 jyqcGFYfCuPoL0vz33WMS2fwmhwXY1SwjPqZ55w= 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:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=cUl0VwyYa4 sL9/UwXaIg7zOjeoU=; b=OS0N+e37A4aD41IWinGul6OzERFRbAJXRU3MsuNlqT Ee8VM4erbu44E8ZiAJgIlJ7Y4evyDeKERsZ3EJ8TZGau0nk7zWF+v9TFrQFK0Tq4 wvFMpQRuL4RjYbmLDUMP57S4YP7JeS3eEenc52wOso38UdhXls7S9J3DUfCRLWnb s= 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=-4.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2 autolearn=ham version=3.3.1 spammy=tel, Tel, UD:png X-HELO: smtp01.belwue.de Date: Fri, 13 Dec 2019 10:41:26 +0100 From: Ulli Horlacher To: cygwin AT cygwin DOT com Subject: Re: non-persistant storage? Message-ID: <20191213094126.GF12864@tik.uni-stuttgart.de> Mail-Followup-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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5DF2E42A.7020200@tlinx.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes On Thu 2019-12-12 (17: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). This is true for Linux, but not for cygwin, where /dev/shm is ntfs on disk: ~: uname -a CYGWIN_NT-10.0 VD-TIK-12 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin ~: df -TH /dev/shm Filesystem Type Size Used Avail Use% Mounted on C:/cygwin64 ntfs 34G 25G 8.9G 74% / Its content is still there after a reboot and I can see it with the windows explorer: https://fex.belwue.de/fop/dyQzlG1x/X-20191213103905.png -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlacher AT tik DOT uni-stuttgart DOT de Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/ REF:<5DF2E42A DOT 7020200 AT tlinx DOT org> -- 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