v-list-sys-memory-status 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. # info: list virtual memory info
  3. # options: [FORMAT]
  4. #
  5. # The function lists virtual memory information
  6. #----------------------------------------------------------#
  7. # Variable&Function #
  8. #----------------------------------------------------------#
  9. # Argument definition
  10. #format=${1-shell}
  11. # Includes
  12. #source $VESTA/func/main.sh
  13. #----------------------------------------------------------#
  14. # Action #
  15. #----------------------------------------------------------#
  16. # Displaying memory and swap usage
  17. free -t -m
  18. echo -en "\n-------------------------------------"
  19. echo -en "-------------------------------------\n\n"
  20. # Displaying memory stats
  21. vmstat -S m -s
  22. echo -en "\n-------------------------------------"
  23. echo -en "-------------------------------------\n\n"
  24. # Displaying ram information
  25. dmidecode -t 17 2>/dev/null
  26. #----------------------------------------------------------#
  27. # Vesta #
  28. #----------------------------------------------------------#
  29. exit