In addition, they tell the kernel to flush a dirty buffer after 3 seconds rather than 30, the default.
另外,它们告诉内核每隔3秒而不是30秒(缺省值)刷新“脏”缓冲区。
Before extracting audit records from the db2audit.log file, flush any remaining audit records in the buffer out to disk by issuing the following command.
在从db2audit. log文件提取审计记录之前,发出以下命令将缓冲区中的所有审计记录刷新到磁盘。
The audit buffer may also be flushed manually using the db2audit flush command.
还可以使用db2auditflush命令手动地刷新审计缓冲区。
From that point everything is similar except you will need to flush the output stream or it is possible that the last bit of the stream buffer will not be sent.
从这一点来说,除了您将需要清空输出流(否则流缓冲区的最后一位可能会未被发送)之外,一切都很相似。
Make sure you flush the data after you're done writing an iteration; otherwise, it may be stuck in a buffer until the next iteration is written to the stream.
确保在执行写迭代后刷新数据;否则,它将滞留在缓冲区中,直到向流写入下一次迭代。
Note that you can use the sync command to flush the buffer cache out to the storage media (force all unwritten data out to the device drivers and, subsequently, to the storage device).
注意,可以使用sync命令将缓冲区缓存中的请求发送到存储媒体(迫使所有未写的数据发送到设备驱动程序,进而发送到存储设备)。
An hour passes by and you decide to check the contents of the audit log. You flush the audit buffer to ensure any audit records still buffered in memory are written to disk.
一个小时过去了,您决定检查审计日志的内容。
An hour passes by and you decide to check the contents of the audit log. You flush the audit buffer to ensure any audit records still buffered in memory are written to disk.
一个小时过去了,您决定检查审计日志的内容。
应用推荐