swap management