From owner-freebsd-hackers Wed Nov 4 09:57:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA02853 for freebsd-hackers-outgoing; Wed, 4 Nov 1998 09:57:05 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA02839 for ; Wed, 4 Nov 1998 09:56:55 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id QAA19119; Wed, 4 Nov 1998 16:54:55 +0100 From: Luigi Rizzo Message-Id: <199811041554.QAA19119@labinfo.iet.unipi.it> Subject: Re: How sync() gets called every 30 seconds? To: seggers@semyam.dinoco.de (Stefan Eggers) Date: Wed, 4 Nov 1998 16:54:54 +0100 (MET) Cc: bf20761@binghamton.edu, freebsd-hackers@FreeBSD.ORG, seggers@semyam.dinoco.de In-Reply-To: <199811041746.SAA02575@semyam.dinoco.de> from "Stefan Eggers" at Nov 4, 98 06:46:08 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Hi, Can anyone tell me where in the source code the sync() (in > > vfs_syscalls.c) is set up to be called every 30 seconds? > > In vfs_subr.c with a SYSINIT_KT() and an associated struct. This > creates a process which consists of sched_sync. speaking of this... is this parametrized ? On a laptop, i wonder if syncing every 30s while doing ordinary activities (e.g. editing) defeats completely the disk auto-shutdown routines. Because power failures are less frequent (i hope!) in that environment, is there any other reason to have frequent SYNCs ? luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message