def METHOD_NAME(nr_full):
    '''
    Tries to set the hugepages to the nr_full value and returns the
    max possible value set.
    '''
    memory.set_num_huge_pages(nr_full)
    return memory.get_num_huge_pages()