Hamiltonian dynamics, nanosystems, and nonequilibrium statistical mechanics