Search Results for 'swap'

Forum Forums Search Search Results for 'swap'

Viewing 15 results - 1 through 15 (of 1,706 total)
  • Author
    Search Results
  • Moderator
    BobC

      I looked at the inxi and the PC has 3.16 gb of memory. Has it got 2 x 2 gb chips? If not, adding a 2nd 2 gb chip might be a cheap way to reduce swapping. Another opportunity to improve swapping performance would be to upgrade to a fast SSD instead of the 7200 RPM HD.

      If not then make do. Find out which programs are using the largest chunks of memory and substitute lighter alternatives as much as possible.

      Encrypted swapping on an old PC is going to be quite slow. Slow because it is swapping out and in to a HD at all. And slower because it needs to encrypt it before it goes out, and even slower because it needs to decrypt before it comes back in.

      Moderator
      Brian Masinick

        Based on the replies, I think your best solution is to run very light apps and not need any swap to worry about.

        Swapping is inherently slow. Encrypting anything will make it even slower. You don’t have a rocket fast machine. Use sudo ps_mem.py to analyze what you are running and try to find lighter solutions that are acceptable.

        I agree with you Bob. For as long as I can remember, I’ve rarely had to actually use swap.

        Once a long time ago I had a Dell Dimension 4100 desktop computer. When it was new around 2000 it was a capable system, and it certainly was reliable because I got close to a decade of use out of it. I do remember that if I ran the KDE desktop as it aged, it would gracefully swap, and it’d only allow one or two apps active, particularly if a memory consuming Web browser was running. That’s when I probably used antiX most; it worked fantastic on that old desktop, and of course I’ve continued to use antiX, as I am right now…

        Since that old desktop I’ve never seen swap in active use since… at least not on any of MY systems!

        --
        Brian Masinick

        Moderator
        BobC

          Based on the replies, I think your best solution is to run very light apps and not need any swap to worry about.

          Swapping is inherently slow. Encrypting anything will make it even slower. You don’t have a rocket fast machine. Use sudo ps_mem.py to analyze what you are running and try to find lighter solutions that are acceptable.

          Member
          Xunzi_23

            Maybe always running shred command from an alias on your swapfile before leaving the system unattended and before shutdown
            would be an option. You could call the action from an icon in taskbar easily.

            Even swapping to volatile memory such as ram is not completely risk free, with an expert around, he might
            freeze the system to preserve data. Sounds like he needs a short sharp kick in the right place to calm him down….

            Member
            PPC

              I followed the instructions you posted, and the system keeps freezing when it starts swapping

              I assume you did read my post that mentioned that probably current Linux Kernels do not work well with encrypted swap files, and that if you wanted encrypted swap it would be advisable to use a swap partition, not a swap file? Did you try using a swap partition? If so, does the problem persist?

              P.

              Member
              RJP

                Encryption consumes CPU-time and memory, so it is a vicious circle if computer swapping trying to encrypt swap.

                • This reply was modified 20 hours, 9 minutes ago by RJP.
                Member
                Pelucia Siffred

                  How about if you run
                  sudo chmod 0600 swapfile0

                  What should keep the security expert assumed from reading its contents anyway, just booting the PC with a disk analysing tool instead of antiX?

                  Using unencrypted swap is dangerous.

                  Yes, sure, if your device is not physically secured by locking it up in your apartment all the day…

                  But you might get still away when following the additional hints for setting up encrypted swap files given here:

                  https://wiki.archlinux.org/title/dm-crypt/Swap_encryption#With_suspend-to-disk_support

                  In these instructions some common pitfalls are treated, so check out also what the links to known issues and missing prerequisites keeping encrypted swap from proper working suggest, and check what their warnings read.

                  Just keep trying.

                  Maybe @anticapitalista can give you some hints whether the swap is encrypted also when setting up antiX encrypted using the defaults in antiX installer.

                  Robin, I followed the instructions you posted, and the system keeps freezing when it starts swapping (between 40 and 80 MB). Unfortunately I was not able to resolve the issue.
                  Is the problem my processor? My processor does not have AES by hardware.

                  • This reply was modified 20 hours, 32 minutes ago by Pelucia Siffred.
                  Member
                  Pelucia Siffred

                    Could you put the swap on a USB, and eject it when done?

                    BobC, Putting the swap file on a flash drive could slow down the system, and the health of the flash drive could be impaired.
                    Thanks for the idea.

                    #106449
                    Forum Admin
                    rokytnji

                      Battery:
                      ID-1: BAT0 charge: 48.8 Wh (144.8%) condition: 33.7/48.8 Wh (68.9%)


                      @rokytnji
                      : Something seems a bit off with your battery charge percentage.

                      Yeah. Probably because chinese cheap as you can go product… I don’t sweat it.

                      Updating this box

                      harry@mx:~
                      $ inxi -zv8
                      System:
                        Kernel: 5.10.0-22-amd64 arch: x86_64 bits: 64 compiler: gcc v: 10.2.1
                          parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-22-amd64
                          root=UUID=8d18d6c3-7355-42de-9762-0a664eca307b ro quiet splash
                        Desktop: Fluxbox v: 1.3.7 info: tint2 vt: 7 dm: LightDM v: 1.26.0
                          Distro: MX-21.3_fluxbox_x64 Wildflower Oct 20 2021 base: Debian GNU/Linux
                          11 (bullseye)
                      Machine:
                        Type: Desktop System: Dell product: OptiPlex 755 v: N/A
                          serial: <superuser required> Chassis: type: 6 serial: <superuser required>
                        Mobo: Dell model: 0GM819 serial: <superuser required> BIOS: Dell v: A11
                          date: 08/04/2008
                      Battery:
                        Message: No system battery data found. Is one present?
                      Memory:
                        RAM: total: 3.7 GiB used: 1.21 GiB (32.7%)
                        RAM Report: permissions: Unable to run dmidecode. Root privileges
                          required.
                      PCI Slots:
                        Permissions: Unable to run dmidecode. Root privileges required.
                      CPU:
                        Info: model: Intel Core2 Duo E6550 bits: 64 type: MCP arch: Core2 Merom
                          level: v1 built: 2006-09 process: Intel 65nm family: 6 model-id: 0xF (15)
                          stepping: 0xB (11) microcode: 0xBA
                        Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB
                          desc: d-2x32 KiB; i-2x32 KiB L2: 4 MiB desc: 1x4 MiB
                        Speed (MHz): avg: 2150 high: 2306 min/max: 2000/2333 scaling:
                          driver: acpi-cpufreq governor: ondemand cores: 1: 2306 2: 1995
                          bogomips: 9309
                        Flags: acpi aperfmperf apic arch_perfmon bts clflush cmov constant_tsc
                          cpuid cx16 cx8 de ds_cpl dtes64 dtherm dts est fpu fxsr ht lahf_lm lm mca
                          mce mmx monitor msr mtrr nopl nx pae pat pbe pdcm pebs pge pni pse pse36
                          pti rep_good sep smx sse sse2 ssse3 syscall tm tm2 tsc vme xtpr
                        Vulnerabilities:
                        Type: itlb_multihit status: KVM: VMX unsupported
                        Type: l1tf mitigation: PTE Inversion
                        Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
                          SMT disabled
                        Type: meltdown mitigation: PTI
                        Type: mmio_stale_data status: Unknown: No mitigations
                        Type: retbleed status: Not affected
                        Type: spec_store_bypass status: Vulnerable
                        Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
                          sanitization
                        Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling,
                          PBRSB-eIBRS: Not affected
                        Type: srbds status: Not affected
                        Type: tsx_async_abort status: Not affected
                      Graphics:
                        Device-1: NVIDIA GF108 [GeForce GT 430] vendor: eVga.com. driver: nvidia
                          v: 390.157 non-free: series: 390.xx+ status: legacy-active (EOL~late 2022)
                          arch: Fermi code: GF1xx process: 40/28nm built: 2010-16 pcie: gen: 1
                          speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:0de1
                          class-ID: 0300
                        Display: x11 server: X.Org v: 1.20.11 driver: N/A display-ID: :0
                          screens: 1
                        Screen-1: 0 s-res: 1366x768 s-dpi: 49 s-size: 708x390mm (27.87x15.35")
                          s-diag: 808mm (31.82")
                        Monitor-1: VGA-0 res: 1366x768 hz: 60 dpi: 50
                          size: 697x392mm (27.44x15.43") diag: 800mm (31.48") modes: N/A
                        API: OpenGL v: 4.6.0 NVIDIA 390.157 renderer: GeForce GT 430/PCIe/SSE2
                          direct render: Yes
                      Audio:
                        Device-1: Intel 82801I HD Audio vendor: Dell Optiplex 755
                          driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:293e
                          class-ID: 0403
                        Device-2: NVIDIA GF108 High Definition Audio vendor: eVga.com. GeForce GT
                          430 driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
                          bus-ID: 01:00.1 chip-ID: 10de:0bea class-ID: 0403
                        Sound API: ALSA v: k5.10.0-22-amd64 running: yes
                        Sound Server-1: PulseAudio v: 14.2 running: yes
                      Network:
                        Device-1: Intel 82566DM-2 Gigabit Network vendor: Dell OptiPlex 755
                          driver: e1000e v: kernel port: ecc0 bus-ID: 00:19.0 chip-ID: 8086:10bd
                          class-ID: 0200
                        IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
                        IP v4: <filter> type: dynamic noprefixroute scope: global
                          broadcast: <filter>
                        IP v6: <filter> type: noprefixroute scope: link
                        WAN IP: <filter>
                      Bluetooth:
                        Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
                          bus-ID: 3-2:2 chip-ID: 0bda:8771 class-ID: e001 serial: <filter>
                        Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0
                          lmp-v: 5.1 sub-v: 646b hci-v: 5.1 rev: d99
                        Info: acl-mtu: 1021:5 sco-mtu: 255:11 link-policy: rswitch hold sniff park
                          link-mode: slave accept service-classes: rendering, capturing
                      Logical:
                        Message: No logical block device data found.
                      RAID:
                        Message: No RAID data found.
                      Drives:
                        Local Storage: total: 4.55 TiB used: 46 GiB (1.0%)
                        SMART Message: Unable to run smartctl. Root privileges required.
                        ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
                          model: WD2003FYPS-27W9B0 size: 1.82 TiB block-size: physical: 512 B
                          logical: 512 B speed: 3.0 Gb/s type: HDD rpm: 5400 serial: <filter>
                          rev: 5G09 scheme: MBR
                        ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Toshiba model: DT01ABA300
                          size: 2.73 TiB block-size: physical: 4096 B logical: 4096 B type: HDD
                          rpm: 5940 serial: <filter> scheme: MBR
                        Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GH41N rev: MN01
                          dev-links: cdrom,cdrw,dvd,dvdrw
                        Features: speed: 40 multisession: yes audio: yes dvd: yes
                          rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
                      Partition:
                        ID-1: / raw-size: 85.89 GiB size: 84.36 GiB (98.22%) used: 46 GiB (54.5%)
                          fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: rootMX21
                          uuid: 8d18d6c3-7355-42de-9762-0a664eca307b
                      Swap:
                        Alert: No swap data was found.
                      Unmounted:
                        ID-1: /dev/sda2 maj-min: 8:2 size: 3.95 GiB fs: swap label: N/A
                          uuid: 96461763-a4aa-4535-9d37-5de8130f84f8
                        ID-2: /dev/sda4 maj-min: 8:4 size: 1 KiB fs: <superuser required>
                          label: N/A uuid: N/A
                        ID-3: /dev/sda5 maj-min: 8:5 size: 244.14 GiB fs: ext4 label: /data
                          uuid: cf478cb9-3e25-4236-9118-801f1ae76212
                        ID-4: /dev/sda6 maj-min: 8:6 size: 244.14 GiB fs: ext4 label: /data2
                          uuid: 16c3c4b1-7067-4f94-8dd2-423c23ea427d
                        ID-5: /dev/sda7 maj-min: 8:7 size: 1.25 TiB fs: ext4 label: /misc
                          uuid: a14d3c77-5729-40ee-900a-4c792b99a9da
                        ID-6: /dev/sdb1 maj-min: 8:17 size: 2.73 TiB fs: ntfs label: TOSHIBA EXT
                          uuid: 6CD2B55FD2B52E68
                      USB:
                        Hub-1: 1-0:1 info: Full speed or root hub ports: 6 rev: 2.0 speed: 480 Mb/s
                          chip-ID: 1d6b:0002 class-ID: 0900
                        Hub-2: 1-3:2 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s
                          power: 100mA chip-ID: 1a40:0101 class-ID: 0900
                        Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
                          chip-ID: 1d6b:0001 class-ID: 0900
                        Hub-4: 3-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
                          chip-ID: 1d6b:0001 class-ID: 0900
                        Device-1: 3-2:2 info: Realtek Bluetooth Radio type: Bluetooth
                          driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 500mA
                          chip-ID: 0bda:8771 class-ID: e001 serial: <filter>
                        Hub-5: 4-0:1 info: Full speed or root hub ports: 6 rev: 2.0
                          speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
                        Device-1: 4-5:3 info: Toshiba America External Disk 2TB Model DT01ABA200
                          type: Mass Storage driver: usb-storage interfaces: 1 rev: 2.1
                          speed: 480 Mb/s power: 100mA chip-ID: 0480:d000 class-ID: 0806
                          serial: <filter>
                        Hub-6: 5-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
                          chip-ID: 1d6b:0001 class-ID: 0900
                        Hub-7: 6-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
                          chip-ID: 1d6b:0001 class-ID: 0900
                        Device-1: 6-2:2 info: China Resource Semico Keyboard type: Keyboard,HID
                          driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s
                          power: 98mA chip-ID: 1a2c:0021 class-ID: 0300
                        Hub-8: 7-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
                          chip-ID: 1d6b:0001 class-ID: 0900
                        Device-1: 7-2:2 info: Trust B.V. USB+PS/2 Optical Mouse type: Mouse
                          driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s
                          power: 100mA chip-ID: 15d9:0a4c class-ID: 0301
                      Sensors:
                        System Temperatures: cpu: 39.0 C mobo: N/A gpu: nvidia temp: 60 C
                        Fan Speeds (RPM): N/A gpu: nvidia fan: 65%
                      Repos:
                        Packages: 2091 pm: dpkg pkgs: 2083 libs: 1009
                          tools: apt,apt-get,aptitude,synaptic pm: rpm pkgs: 0 pm: flatpak pkgs: 8
                        No active apt repos in: /etc/apt/sources.list
                        Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
                          1: deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
                        Active apt repos in: /etc/apt/sources.list.d/debian.list
                          1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
                          2: deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
                        Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
                          1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
                        Active apt repos in: /etc/apt/sources.list.d/mx.list
                          1: deb http://mxrepo.com/mx/repo/ bullseye main non-free
                      Processes:
                        CPU top: 5 of 177
                        1: cpu: 20.3% command: firefox pid: 3715 mem: 455.1 MiB (12.0%)
                        2: cpu: 4.4% command: xorg pid: 2280 mem: 53.8 MiB (1.4%)
                        3: cpu: 3.3% command: firefox-bin pid: 3863 mem: 143.3 MiB (3.7%)
                        4: cpu: 3.2% command: firefox-bin pid: 4166 mem: 167.0 MiB (4.4%)
                        5: cpu: 1.5% command: xfce4-terminal pid: 7875 mem: 45.9 MiB (1.2%)
                        Memory top: 5 of 177
                        1: mem: 455.1 MiB (12.0%) command: firefox pid: 3715 cpu: 20.3%
                        2: mem: 167.0 MiB (4.4%) command: firefox-bin pid: 4166 cpu: 3.2%
                        3: mem: 143.3 MiB (3.7%) command: firefox-bin pid: 3863 cpu: 3.3%
                        4: mem: 105.5 MiB (2.7%) command: firefox-bin pid: 3804 cpu: 0.3%
                        5: mem: 62.6 MiB (1.6%) command: firefox-bin pid: 4591 cpu: 0.0%
                      Info:
                        Processes: 177 Uptime: 11m wakeups: 1 Init: SysVinit v: 2.96 runlevel: 5
                        default: graphical tool: systemctl Compilers: gcc: 10.2.1 alt: 10
                        Shell: Bash v: 5.1.4 running-in: xfce4-terminal inxi: 3.3.23
                      harry@mx:~
                      $ 
                      

                      Just finished update before the inxi report. This is a old city hall server I received for free. All add-ons are mine. Still on time consuming kitchen remodel. At least the fence is done.

                      Sometimes I drive a crooked road to get my mind straight.
                      Not all who Wander are Lost.
                      I'm not outa place. I'm from outer space.

                      Linux Registered User # 475019
                      How to Search for AntiX solutions to your problems

                      Member
                      RJP

                        How about if you run
                        sudo chmod 0600 swapfile0

                        What should keep the security expert assumed from reading its contents anyway, just booting the PC with an disk analysing tool instead of antiX?

                        Nothing. The only way is not to use swap and install enough ram-memory, and glue ram unit into motherboard.

                        Member
                        Robin

                          How about if you run
                          sudo chmod 0600 swapfile0

                          What should keep the security expert assumed from reading its contents anyway, just booting the PC with a disk analysing tool instead of antiX?

                          Using unencrypted swap is dangerous.

                          Yes, sure, if your device is not physically secured by locking it up in your apartment all the day…

                          But you might get still away when following the additional hints for setting up encrypted swap files given here:

                          https://wiki.archlinux.org/title/dm-crypt/Swap_encryption#With_suspend-to-disk_support

                          In these instructions some common pitfalls are treated, so check out also what the links to known issues and missing prerequisites keeping encrypted swap from proper working suggest, and check what their warnings read.

                          Just keep trying.

                          Maybe @anticapitalista can give you some hints whether the swap is encrypted also when setting up antiX encrypted using the defaults in antiX installer.

                          Windows is like a submarine. Open a window and serious problems will start.

                          Member
                          RJP

                            I was able to find all my passwords with the following command line:

                            strings swapfile0 | grep -e "$PASSWORD1" -e "$PASSWORD2" -e "$PASSWORD3"

                            Using unencrypted swap is dangerous.

                            How about if you run

                            sudo chmod 0600 swapfile0

                            Moderator
                            BobC

                              Could you put the swap on a USB, and eject it when done?

                              Member
                              Pelucia Siffred

                                I was able to find all my passwords with the following command line:

                                strings swapfile0 | grep -e "$PASSWORD1" -e "$PASSWORD2" -e "$PASSWORD3"

                                Using unencrypted swap is dangerous.

                                #106262
                                Member
                                PPC

                                  There are some important zzzfm features that need my attention, but my focus went to fixing and adding a few more features to the IceWM Manager GUI script:

                                  Fixes:
                                  – It now always starts maximized
                                  – The function to change Themes is not perfect, but I removed a bug that allowed for an empty space at the top of the list of available Themes, that had unforeseen effects, if clicked…

                                  New features:
                                  – Added a “Show collapse button” to the toolbar toggle – this is very handy on small screens, like netbooks, or screens with low resolution- it allows the toolbar to be rolled up instantly to the lower right side of the screen, releasing screen real-state without “auto-hiding” the toolbar.
                                  – Added a not so well named “Show only used network devices”- what this does is fix the default Icewm toolbar configuration, that shows “info squares” for each of the available technologies to connect to a network- if your computer has a Ethernet card and a Wi-Fi card, by default, the system tray will show a square with info on each of those cards- which for me, does not make sense- most people only use a kind of network connect at a time (either cable or wireless connection). This option, when on, makes the toolbar display only info on the network connection technology that is being used – releasing a bit of toolbar space and making the info squares easier to read (by default I use only 2: network and CPU/RAM/SWAP)

                                  Note: if this new version of the script is accepted by anticapitalista, the names of the 2 new buttons will have to be localized- thankfully, this is easy, since all text is inside variables- this means only 2 new texts will have to be localized, no further change is needed. To get the correct translation for “Collapse Toolbar”, please run the script and enable that feature. If you over the mouse over the arrow that appears next to the toolbar clock, a tool-tip will show the exact translation for that feature…

                                  Please test the new script, the only changes are those referred above, everything else remains the same.

                                  P.

                                  • This reply was modified 3 days, 23 hours ago by PPC.
                                Viewing 15 results - 1 through 15 (of 1,706 total)