zoukankan      html  css  js  c++  java
  • The Importance of Sync in Embedded

    The Importance of Sync in Embedded

    1 My experience

    When I modify /etc/init.d/rcS in development board, and restart the board once I have modified it, the modification disappear !!

    2 Solution

    Before reboot, use

    # sync
    

    especially for newly modified config files, e.g. rcS

    3 Sync Info

    use

    $ info coreutils 'sync'
    
    14.4 `sync': Synchronize data on disk with memory
    =================================================
    
    `sync' writes any data buffered in memory out to disk.  This can
    include (but is not limited to) modified superblocks, modified inodes,
    and delayed reads and writes.  This must be implemented by the kernel;
    The `sync' program does nothing but exercise the `sync' system call.
    
       The kernel keeps data in memory to avoid doing (relatively slow) disk
    reads and writes.  This improves performance, but if the computer
    crashes, data may be lost or the file system corrupted as a result.
    The `sync' command ensures everything in memory is written to disk.
    
       Any arguments are ignored, except for a lone `--help' or `--version'
    (*note Common options::).
    
       An exit status of zero indicates success, and a nonzero value
    indicates failure.
    
  • 相关阅读:
    django类视图MRO
    ThreadPoolExecutor 多线程
    数论-最小公倍数、整数的唯一分解定理、一次不定方程
    buuctf-level4
    数论-整除+欧几里得+扩展欧几里得
    第三届江西省网络安全大赛-部分Crypto
    网鼎杯-re-signal
    nebula 星云模拟器适配 xbox手柄;星云模拟器支持xbox手柄;星云模拟器xbox手柄配置;
    git 上传大文件;remote: fatal: pack exceeds maximum allowed size
    Kawaks 项目文件整理
  • 原文地址:https://www.cnblogs.com/aqing1987/p/4831281.html
Copyright © 2011-2022 走看看