[backend] support build constraint to physical memory excluding swap space