From: Ben Pfaff Date: Wed, 27 Jun 2012 17:42:34 +0000 (-0700) Subject: vlog: Use worker process to write to log file. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=cbb13e8e4c3e5766202ebe68bed9e414f62fa1c7;hp=cbb13e8e4c3e5766202ebe68bed9e414f62fa1c7;p=openvswitch vlog: Use worker process to write to log file. Writes to regular files under Unix-like kernels, including Linux, typically block until the write is complete, regardless of O_NONBLOCK. When the I/O subsystem is busy, this can cause indefinite delays. We have actually observed "write" calls sleep for 5 seconds or more for this reason. Delegating to a subprocess through the worker mechanism should solve the problem. Signed-off-by: Ben Pfaff ---