Hi! > here 10s is similar with one inside wait_ksmd_done() (see lib/mem.c) > > 10s is an interval for khugepaged to finish scan process's transparent > hugepages, and at the beginning, > khugepaged/[scan_sleep_millisecs|alloc_sleep_millisecs] > are all be set 0, so 'khugepaged' always run 100% during the testing, > depending on > this, I choose an optional value 10s to khugepaged, and I think the > interval is enough > to recognise whether khugepaged finished scanning process's anonymous > hugepage or not.
Hardcoded constants tend to break from time to time. Is there any interface that could give you information about the state of the scan? -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
