• <fieldset id="8imwq"><menu id="8imwq"></menu></fieldset>
  • <bdo id="8imwq"><input id="8imwq"></input></bdo>
    最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
    問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
    當(dāng)前位置: 首頁 - 科技 - 知識百科 - 正文

    Redischildrencannowreportamountofcopy-on-wr

    來源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-09 13:10:48
    文檔

    Redischildrencannowreportamountofcopy-on-wr

    Redischildrencannowreportamountofcopy-on-wr:This is one of this trivial changes in Redis that can make a big difference for users. Basically in the unstable branch I added some code that has the following effect, when running Redis on Linux systems: [32741] 19 Nov 12:00:55.019 * Bac
    推薦度:
    導(dǎo)讀Redischildrencannowreportamountofcopy-on-wr:This is one of this trivial changes in Redis that can make a big difference for users. Basically in the unstable branch I added some code that has the following effect, when running Redis on Linux systems: [32741] 19 Nov 12:00:55.019 * Bac

    This is one of this trivial changes in Redis that can make a big difference for users. Basically in the unstable branch I added some code that has the following effect, when running Redis on Linux systems: [32741] 19 Nov 12:00:55.019 * Bac

    This is one of this trivial changes in Redis that can make a big difference for users. Basically in the unstable branch I added some code that has the following effect, when running Redis on Linux systems:

    [32741] 19 Nov 12:00:55.019 * Background saving started by pid 391
    [391] 19 Nov 12:01:00.663 * DB saved on disk
    [391] 19 Nov 12:01:00.673 * RDB: 462 MB of memory used by copy-on-write

    As you can see now the amount of additional memory used by the saving child is reported (it is also reported for AOF rewrite operations).

    I think this is big news for users as instead to see us developers and other Redis experts handwaving about the amount of copy-on-write being proportional to number of write ops per second and time used to produce the RDB or AOF file, now they get a number :-)

    # How it is obtained?

    We use the /proc//smaps, so yes, this is Linux only.
    Basically it is the sum of all the Private_Dirty entries in this file for the child process (actually you could measure it on the parent side and it is the same).

    I verified that the number we obtain actually corresponds very well with the physical amount of memory consumed during a save, in different conditions, so I'm very confident we provide an accurate information.

    # Why a number in the log file instead of an entry in the INFO output?

    Because even before calling wait3() from the parent, as long as the child exits we no longer have this information. So to display this information in INFO we need some inter process communication to move this info from the child to the parent. Not rocket science but for now I avoided adding extra complexity. The current patch is trivial enough that we could backport it into 2.6 for the joy of many users:

    https://github.com/antirez/redis/commit/3bfeb9c1a7044cd96c1bd77677dfe8b575c73c5f
    https://github.com/antirez/redis/commit/49b645235100fc214468b608c1ba6cdbc320fa88

    The log is produced at NOTICE level (so it is displayed by default). Comments

    聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

    文檔

    Redischildrencannowreportamountofcopy-on-wr

    Redischildrencannowreportamountofcopy-on-wr:This is one of this trivial changes in Redis that can make a big difference for users. Basically in the unstable branch I added some code that has the following effect, when running Redis on Linux systems: [32741] 19 Nov 12:00:55.019 * Bac
    推薦度:
    標(biāo)簽: copy now on
    • 熱門焦點(diǎn)

    最新推薦

    猜你喜歡

    熱門推薦

    專題
    Top
    主站蜘蛛池模板: 国产精品99久久久久久猫咪| 亚洲精品老司机在线观看| 国产精品亚洲综合一区| 久久久一本精品99久久精品66| 国产精品videossex白浆| 精品福利视频一区二区三区| 久久九九久精品国产免费直播| 精品免费视在线观看| 久久免费的精品国产V∧| 欧美日韩国产成人高清视频,欧美日韩在线精品一 | 无码国产69精品久久久久网站 | 国产精品福利一区二区久久| 蜜芽亚洲av无码精品色午夜| 无码国内精品久久人妻麻豆按摩| 99久久国产综合精品成人影院 | 精品乱码久久久久久夜夜嗨| 亚洲国产精品lv| 国产精品久久永久免费| 国产精品色内内在线播放| 亚洲av午夜福利精品一区| 日韩专区亚洲精品欧美专区| 精品久久久久久无码中文野结衣| 中文字幕亚洲精品资源网| 国产精品久久久久久久久免费| 国产福利精品一区二区| 精品久久久久中文字幕日本| 无码日韩精品一区二区三区免费 | 国模精品一区二区三区| 国产精品美女网站| 国产精品成人精品久久久| 亚洲午夜久久久精品影院| 青青青国产精品国产精品久久久久 | 日本精品少妇一区二区三区| 精品人妻少妇一区二区三区| 国产精品综合久久第一页| 国产精品亚洲高清一区二区| 国产精品你懂的在线播放| 国产情侣大量精品视频| 精品国产乱码久久久久久浪潮| 国产精品无码DVD在线观看| 精品国产国产综合精品|