Who's going to use the bunks?
I would not want to use a bunk bed where there is not sufficient height to sit upright on the mattress. This goes for both the upper and lower bunks. More space is nicer, of course, but being unable to sit makes many things much harder and less convenient. For me, that works out to about three feet of clearance.