delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/04/18:48:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47CDDFB6.8A192531@dessent.net>
Date: Tue, 04 Mar 2008 15:48:06 -0800
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: writing to /proc file system
References: <1614 DOT 10 DOT 38 DOT 32 DOT 167 DOT 1204643570 DOT squirrel AT mail DOT tmorton DOT com> <20080304152915 DOT GA428 AT calimero DOT vinschen DOT de> <b609cb3b0803041522i76007fc4m6fcf964e1542e8a3 AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

NightStrike wrote:

> I'm pretty sure it's not writable on any system, let alone cygwin.
> It's not a real filesystem per se.  It's instead a read-only gateway
> into the kernel.

What?  No.  The entire /proc/sys tree on Linux is writable, which allows
you to tune a great number of kernel parameters at runtime, including
networking stack parameters, filesystems, cacheing, memory management,
etc.  In fact this forms the basis for the entire sysctl settings
system.  For example you can clear all disk caches with "echo 3 >
/proc/sys/vm/drop_caches".  More at:

<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/filesystems/proc.txt;h=dec99455321fdf86018ca5b2b62936103fd73031;hb=HEAD#l873>
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/sysctl/kernel.txt;h=8984a53962716f3f528964d6c318a9e7dcdf8a47;hb=HEAD>
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/sysctl/fs.txt;h=aa986a35e9945071abed471776565a2cf4644787;hb=HEAD>
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/sysctl/vm.txt;h=6f31f0a247d03137b85955bf59d06a666e34b1a0;hb=HEAD>

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019