Code Monkey home page Code Monkey logo

Comments (6)

christoph-heinrich avatar christoph-heinrich commented on June 12, 2024 1

On linux it uses /tmp/ for it's files, which usually is usually in RAM.

If you want to make sure, check your /etc/fstab and look for the line that mounts /tmp. If it uses tmpfs, your SSD will be fine 😉.

Here is what that line looks like in my fstab:

tmpfs                                     /tmp            tmpfs   defaults,noatime,mode=1777,size=7G 0 0

But you can also customize it with the socket and thumbnail options, if you would rather have them somewhere else.

from thumbfast.

christoph-heinrich avatar christoph-heinrich commented on June 12, 2024 1

I'd say something this would make sense

socket=/dev/shm/thumbfast
thumbnail=/dev/shm/thumbfast.out

Those are the filenames that thumbfast uses by default for the /tmp/ directory.

from thumbfast.

teodor6140 avatar teodor6140 commented on June 12, 2024 1

@trappedinspacetime

I checked /etc/fstab it doesn't have tmpfs entry.

Even if it's not in fstab, systemd has a service that sets up tmpfs, so /tmp is probably still using tmpfs.
You should check with mount | grep tmp

from thumbfast.

trappedinspacetime avatar trappedinspacetime commented on June 12, 2024

@christoph-heinrich Thank you for responding and the info. I checked /etc/fstab it doesn't have tmpfs entry. I decided to use /dev/shm/tmp directory for socket. I'm confused about thumbnail file path. What should I use for it regarding /dev/shm/tmp path?

from thumbfast.

trappedinspacetime avatar trappedinspacetime commented on June 12, 2024

Thank you for your help. It works well. I hope you document it for other users.
All the best.

from thumbfast.

trappedinspacetime avatar trappedinspacetime commented on June 12, 2024

@teodor6140 Thank you for the suggestion. I am running Ubuntu 22.04 Mate.

      mount | grep tmp
      udev on /dev type devtmpfs (rw,nosuid,relatime,size=2908728k,nr_inodes=727182,mode=755,inode64)
      tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=593092k,mode=755,inode64)
      tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
      tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
      tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=593088k,nr_inodes=148272,mode=700,uid=1000,gid=1000,inode64)
      tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=593092k,mode=755,inode64)

from thumbfast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.