Revert "use runtime default local size"

This reverts commit 74331c5a5f7f58b287c309e95e67c1cdc441e4d1.
Revert "remove local size query"

This reverts commit c993c2833c214238439626d5b9cab2355c106f52.