Skip to content

Commit

Permalink
- use default MEMSIZE in check_for_ppc
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Aug 30, 2012
1 parent 6bca34f commit afa6f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ check_for_ppc()
exit 1
fi
PAGES_FREE=$(cat /sys/kernel/mm/hugepages/hugepages-16384kB/free_hugepages)
PAGES_REQ=$(( $MEMSIZE / 16 ))
PAGES_REQ=$(( ${MEMSIZE:-64} / 16 ))
if [ "$PAGES_FREE" -lt "$PAGES_REQ" ];then
echo "please adjust nr_hugepages"
exit 1
Expand Down

0 comments on commit afa6f85

Please sign in to comment.