Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

syncer(4) [freebsd man page]

SYNCER(4)						   BSD Kernel Interfaces Manual 						 SYNCER(4)

NAME
syncer -- file system synchronizer kernel process SYNOPSIS
syncer DESCRIPTION
The syncer kernel process helps protect the integrity of disk volumes by flushing volatile cached file system data to disk. The kernel places all vnode(9)'s in a number of queues. The syncer process works through the queues in a round-robin fashion, usually pro- cessing one queue per second. For each vnode(9) on that queue, the syncer process forces a write out to disk of its dirty buffers. The usual delay between the time buffers are dirtied and the time they are synced is controlled by the following sysctl(8) tunable variables: Variable Default Description kern.filedelay 30 time to delay syncing files kern.dirdelay 29 time to delay syncing directories kern.metadelay 28 time to delay syncing metadata SEE ALSO
sync(2), fsck(8), sync(8), sysctl(8) HISTORY
The syncer process is a descendant of the 'update' command, which appeared in Version 6 AT&T UNIX, and was usually started by /etc/rc when the system went multi-user. A kernel initiated 'update' process first appeared in FreeBSD 2.0. BUGS
It is possible on some systems that a sync(2) occurring simultaneously with a crash may cause file system damage. See fsck(8). BSD
July 14, 2000 BSD

Check Out this Related Man Page

SYNC(2) 						      BSD System Calls Manual							   SYNC(2)

NAME
sync -- synchronize disk block in-core status with that on disk LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <unistd.h> void sync(void); DESCRIPTION
The sync() function forces a write of dirty (modified) buffers in the block buffer cache out to disk. The kernel keeps this information in core to reduce the number of disk I/O transfers required by the system. As information in the cache is lost after a system crash, kernel thread ioflush ensures that dirty buffers are synced to disk eventually. By default, a dirty buffer is synced after 30 seconds, but some filesystems exploit ioflush features to sync directory data and metadata faster (after 15 and 10 seconds, respectively). The function fsync(2) may be used to synchronize individual file descriptor attributes. CAUTIONS
Many modern disks contain write-back caches. In theory sync() flushes these. In practice there are many possible ways for this mechanism to go astray. It is prudent (where possible) to allow a few seconds after syncing for everything to settle before e.g. turning off the power. It may also be desirable to use dkctl(8) or scsictl(8) to disable the write-back cache entirely. SEE ALSO
fsync(2), dkctl(8), scsictl(8), sync(8) HISTORY
A sync() function call appeared in Version 6 AT&T UNIX. Historically, sync() would schedule buffers for writing but not actually wait for the writes to finish. It was necessary to issue a second or sometimes a third call to ensure that all buffers had in fact been written out. In NetBSD, sync() does not return until all buffers have been written. BSD
March 25, 2009 BSD
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

control the process

I found that in my system , there are some strange process , it will make the system crash so I would like to control the system no such process is running , this is if the system process that its process name is "ora" AND its ppid is not "2" , then it will crash the system, can suggest how to... (2 Replies)
Discussion started by: ust
2 Replies

2. HP-UX

Equivalent Kernel parameter in HP-UX

Hi, May I pls. know what would be the equivalent kernel parameter in HP-UX for the below Linux kernel parameter. sysctl kern.ps_showallprocs - This setting in Linux would let users see their own processes in "ps". Thanks, Narasimha (1 Reply)
Discussion started by: vnarsim
1 Replies

3. UNIX for Dummies Questions & Answers

Which process is doing all the writing

Hi We are running an IBM P570 with AIX and Unidata. The disk monitor in nmon is showing that one of our logical volumes is hitting 100% most of the time, and that 98% of it is write. I am trying to identify the top processes in terms of disk IO, obviously particularly write so that we... (4 Replies)
Discussion started by: idwalton72
4 Replies

4. UNIX for Advanced & Expert Users

Help with Inodes please

How can i trace Inode structure and modify it in UNIX kernel? We want to change the inode structure in the sense that we want to add a new field to the inode data structure. So we want to know how and where to trace inode (7 Replies)
Discussion started by: Group_Inode
7 Replies

5. Slackware

Help with kernel panic - not syncing slackware 13.0

Hi, first of all I'm 110% newbie, sorry for any mistake if I made it. In my country there are no normal or active linux forums, so i found this forum. Ok, that's for begining, but not for may real problem. --------------------------------------------------- I am system administrator... (4 Replies)
Discussion started by: ElvijsL
4 Replies

6. UNIX for Advanced & Expert Users

'time' for disk stats

we all know the time shell command Is there a way to test disk i/o of a process in a similar fashion? I am trying different methods to limit disk writes in a 24/7 daemon process and would like to measure. I know pidstat does it but only to a running process, i want to do one shot test... (7 Replies)
Discussion started by: bigearsbilly
7 Replies

7. Shell Programming and Scripting

<< Threading inside multiprocessing using queues >>

Hi All, I am trying to achieve threading inside each process of multiprocessing. I have 2 queues one for multiprocess (process) & another inside each process. when i execute it got hung after below output. My goal here is to go through p_source queue & for each process picks up all t_source... (0 Replies)
Discussion started by: kamauv234
0 Replies