----- Original Message ----- > From: [email protected] > To: "Zhouping Liu" <[email protected]> > Cc: [email protected], "LTP List" <[email protected]> > Sent: Monday, April 15, 2013 8:21:12 PM > Subject: Re: [LTP] [PATCH 1/3] mm/thp: new case thp04.c > > 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?
yeah, but I can't get any interfaces to know the state of the scanning from my side. IMO, it's a better solution to check the modification of khugepaged/* files so far. Thanks, Zhouping ------------------------------------------------------------------------------ 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
