How can I use RAM storage for the /tmp directory and how to set a maximum amount of RAM usage for it?


The Operating System is in charge of optimizing the use of the available memory. It is (should be) designed to do a good job of that under "normal" conditions. The designers of the operating system will usually take under consideration that an optimal system makes use of all the available memory whenever possible. Memory that's not used for anything is wasted, and the system will perform best when all memory is used for active programs, file caches, I/O buffers, and so on, except for a small "free" pool set aside for quickly responding to allocation requests.

Therefore, it is usually better to let the OS decide how much memory to use for file caching. If the user has very specific insight into a given application environment, then some further optimization could be applied. From an elevated command prompt, run:

fsutil behavior set memoryusage 2

This tells the operating system to devote more memory to file caching than it otherwise would.

Configures the...

0 0

While the /tmp folder is not a place to store files long-term, occasionally you want to keep things a little longer than the next time you reboot, which is the default on Ubuntu systems. I know a time or two I’ve downloaded something to /tmp during testing, rebooted after making changes and then lost the original data again. This can be changed if you’d like to keep your /tmp files a little bit longer.

Changing the /tmp Cleanup Frequency

The default setting that tells your system to clear /tmp at reboot is held in the /etc/default/rcS file. The value we’ll look at is TMPTIME.

The current value of TMPTIME=0 says delete files at reboot despite the age of the file. Changing this value to a different (positive) number will change the number of days a file can survive in /tmp.


This setting would allow files to stay in /tmp until they are a week old, and then delete them on the next reboot. A negative number (TMPTIME=-1) tells the system to never...

0 0

RAM storage, RAM Disk, RAM Drive - but I use SSD? should I?
That was the question I got from a customer a week or so ago.
I do use one myself, but can I advice a customer to use one? I thought about it while doing my work at the premise and before I left I went by his office and said
"I can see no point in using RAM storage as there is only one area where you can benefit from it and even that area has faults".
While I am certain my answer is spot on and 100% correct for this customer, it will differ depending on who I talk to.

The reason is that the answer to such a question comes as no clear affirmative Yes or No, it simply can not be given without a lengthy explanation ending both conclusive and non-conclusive at the same time. It is no contradiction in this respect, as the answer to it must based on the user asking and the intended usage.
As I am hinting towards above, this is a very advanced question technically speaking. What springs to mind...

0 0

How can I know the maximum amount of RAM used(application)?

Hi, Marco P Hamm

Each software program on a computer will use different amounts of memory when it is running, either actively or when idle. The packaging of a software program will provide a rough idea of the minimum and recommended amount of memory a computer should have in order to run the program, but not the exact amount the program will use itself. To determine how much memory a program is using, follow the steps below.

Microsoft Windows users

Press Ctrl + Shift + Esc on the keyboard to open the Windows Task Manager. In the Task Manager window click the Processes tab if not already selected.

As can be seen by the above example picture, in the Processes tab you'll see each of the running processes including how much memory they're using. For example, the highlighted Firefox.exe is using over 1GB of memory.

Tip: Clicking the Memory column title allows you to sort the...

0 0

How to Find Out the Maximum RAM Capacity for Your Computer. Random Access Memory (RAM) is an important component of your computer just like the hard drive. RAM controls the speed and memory in your computer. Different types of RAM are available for different machines. Here's how to determine your computer's maximum RAM capacity.

A man at a laptop clicks a mouse

credit: Ingram Publishing/Ingram Publishing/Getty Images

Inspect your computer's configuration. Determine the year and make of your computer.

Find out the type of RAM your computer uses. Go to "Start" and select "Settings." This will lead you to the Control Panel. Here click on "System" and select "General." The number at the right hand bottom corner of the screen is the amount of RAM in your computer.

Verify the current RAM usage. If you have Windows OS, open the Taskbar or press "Ctrl + Alt + Del." This will lead you to Task Manager. Click on it first and then press the "Performance"...

0 0

I'm converting a ms sql based asp application to run on a mysql database.

Due to the amount of data, nothing happens untill the sql server has about 800mb of memory, every then works fine.

How can I configure mySQL to use a min of say 800mb and a max of 2gb.

Heres my current my.ini which I have fiddled with, but the mysql engine doesnt take up anymore than 200mb.

# Example MySQL config file for very large systems.
# This is for a large system with memory of 1G-2G where the system runs mainly
# MySQL.
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is C:\mysql\data) or
# ~/.my.cnf to set user-specific options.
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the...

0 0

"nosuid" and "noexec" are security hardening options, they are not required. "noatime" will prevent unnecessary timestamp checks/updates (which would slow down i/o operations if many small-sized files are handled in a short time slice). So if you let /tmp have "exec" properties, the right fstab line would be:

Code: Select all

tmpfs /tmp tmpfs noatime,nodev,nosuid,mode=1777 0 0

the size of a tmpfs is the


maximum, starting from zero: the tmpfs will have the actual size of its true content, growing and decreasing its actual size as needed to hold the temporary files. I have indeed put a limit on 10GB in my example because the machine has 32GB of RAM

and 10GB for short-lived temporary stuff is more than enough on my config.

swappiness=0 does not prevent the system to swap when needed... except it will force to swap only when RAM is almost full.

Regarding "mode=755" for /var/run, this is the normal good default...

0 0
0 0