Re: [LTP] [PATCH 1/3] mm/thp: new case thp04.c

chrubis
2013-04-15T12:20:24Z

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
chrubis@suse.cz

------------------------------------------------------------------------------
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!