Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [resources]

The tag has no usage guidance.

0
votes
0answers
15 views

No locks available

I am using ssh logging on a remote server and ran a parallel computing application. I use htop to monitor the CPU usage. But after running a long time, htop exit and shows: htop: too may open files ...
1
vote
2answers
39 views

Who would win, RLIMIT_NPROC or user namespaces?

Depending on configuration, unprivileged (non-root) processes can create a user namespace. RLIMIT_NPROC limits the number of processes per user. If I enter a user namespace, can I create processes ...
1
vote
0answers
15 views

Launch a program to only specific resources

Question: How can I launch a program such that it only uses X ram and Y CPU cores, etc? I happen to be using Ubuntu in this case, but since I often am on other distros, I need a general GNU/Linux ...
0
votes
0answers
40 views

how to determine the impact of an running application on system load average due to CPU resource usage?

As of my knowledge Linux system load average is affected by any means that can affect the system like CPU resource usage, memory consumption, disk I/O, network I/O etc. In top command I am checking ...
1
vote
1answer
131 views

Is this really the official website for DirectFB?

The README document in the DirectFB source tarball lists the official website as www.directfb.org; however, that site seems rather ... odd, to say the least. It starts off talking about Linux, but ...
1
vote
0answers
423 views

Why is this `dd` command producing `Resource busy` errors?

I'm attempting to recover anything possible from a known-bad hard disk (failing, or failed). I began with dd and realized I didn't unmount. After unmounting volumes, I was able to correctly begin the ...
14
votes
1answer
360 views

Is it wrong to think of “memfd”s as accounted “to the process that owns the file”?

https://dvdhrm.wordpress.com/2014/06/10/memfd_create2/ Theoretically, you could achieve [memfd_create()] behavior without introducing new syscalls, like this: int fd = open("/tmp", O_RDWR | ...
3
votes
1answer
63 views

Is there a command or a serie of commands to make the computer use as much resources as possible?

I am looking for one or possibly more commands, or a combination of commands, to get my PC to use as much resources as possible. I want to check how my computer behaves when subject to the maximum ...
1
vote
2answers
2k views

pcs cluster not moving resource when instructed to move

for whatever reason I'm no more able to move resources with pcs pacemaker-1.1.16-12.el7_4.8.x86_64 corosync-2.4.0-9.el7_4.2.x86_64 pcs-0.9.158-6.el7.centos.1.x86_64 Linux server_a.test.local 3.10.0-...
2
votes
1answer
230 views

What could be using 6GB of my swap?

I have a mystery: what is using 6GB of my swap? My kernel version is 4.15.9-300.fc27.x86_64. This happened following some crashes. dmesg shows I had a segfault in a gnome-shell process (which ...
2
votes
1answer
147 views

systemd shows as reading 300M in atop?

I just installed atop, waited half an hour, and looked at the logs with atop -r /var/log/atop/atop_20180216. Why does my systemd --user instance show hundreds of megs of disk usage, including tens of ...
1
vote
0answers
84 views

systemd resource management (specific case: mysql)

I have a problem tying to figure out, how the resource management in systemd works. To make clear where I am and how I got there, I should start with explaining my situation: After migrating a mysql-...
2
votes
3answers
6k views

Increasing open files limit for all processes: Do I need to set Soft/Hard limits?

I'm trying to fix the following error that I get after a day or two of running my game server. 2017/12/13 12:08:35 http: Accept error: accept tcp [::]:8081: accept4: too many open files; retrying in ...
2
votes
1answer
70 views

How does Qubes do memory management, especially with regard to shared objects?

I'm just reading about Qubes OS, and I have a very simple question -- how does it do memory management and shared object use? Feel free to correct any misconceptions or errs in vocab, but we have the ...
0
votes
1answer
43 views

Get size of multiple folders - How to calculate server resources consumption of the process?

I need to get the size of multiple folders (with subfolders and several files) and update a database, in order to limit the users upload to my server. This process must be done periodically, in the ...
1
vote
0answers
38 views

Limit a process or users physical memory share

I have a system running many processes on behalf of other users. Virtual memory space with 64bit operating systems is less of a concern, but my users will still often use up all the physical memory ...
6
votes
2answers
201 views

Prevent a script exhausing system resources and crashing entire system

I was thinking if there is "canonical" way to have this? Background & description I have to install some program on live server. Although I do trust the vendor (FOSS, Github, multiple authors...)...
3
votes
1answer
55 views

Docker user executing a process cannot be removed

I have some resources used by a specific user that I had to delete because it was taking a lot of resources from the server. When I listed the processes in the server the deleted user now shows as “...
1
vote
2answers
3k views

How to remove duplicate source list on Debian 8.7

Am running Debian 8.7, after installing #letsencrypt following the tutorial on Digital Ocean. I couldn't update my operating system any more, If I run sudo apt-get update it displays the following ...
1
vote
2answers
2k views

Soft limit vs hard limit

I ran into a problem of : fork: Resource temporarily unavailable I know that nproc is the problem Some suggested to increase the soft limit of nproc while other suggested the hard limit. Which ...
1
vote
2answers
95 views

How to determine the status of my server

I would like to know how to determine the status of my server using the top command or if I have to change the server or add more resources. Next is the output the top command in my server. Next are ...
2
votes
0answers
680 views

gnome-shell takes over the CPU

I have Debian 8.5 with the gnome desktop. Very often the gnome-shell is using the CPU over 70% (sometimes over 100%). Why is this happening? mostly until now when I run a python-pygame project CPU ...
23
votes
2answers
32k views

Running dd. Why resource is busy?

I just formatted microSD card, and would like to run a dd command. Unfortunately dd command fails: $ sudo dd bs=1m if=2016-02-26-raspbian-jessie-lite.img of=/dev/rdisk2 dd: /dev/rdisk2: Resource busy ...
1
vote
0answers
22 views

Generating report resource usage report for child processes

I'm looking for a tool that would generate a report about child processes. I'm interested in CPU usage, memory usage, etc. Ideally the tool would be used like this: uber_reporter -o report.html ...
1
vote
1answer
2k views

wget mirror site + resources from other domain

I'm trying to download a website so it can be browsed offline, so I want the html, images, css, javascript, etc. The problem is that the images are not all hosted on the same domain as the website, ...
3
votes
1answer
862 views

Allow only wrapper script but not command

Say one has a resource hungry command that users on a server need to run. I want to wrap said command with a wrapper script that will parse the arguments passed and ensure that the command is only ...
26
votes
1answer
6k views

How to use cgroups to limit all processes except whitelist to a single CPU?

There is a guide to cgroups from Red Hat which is maybe sort of kind of helpful (but doesn't answer this question). I know how to limit a specific process to a specific CPU, during the command to ...
1
vote
2answers
130 views

Minimal Linux for virtual network lab

I'm looking for a small linux (in memory and disk usage) distribution to be used in a network of virtual machines for lab testing. Suggestions or pointers to related information? Addendum Now ...
16
votes
2answers
2k views

Resource usage using pipe and here string

We can get the same result using the following two in bash, echo 'foo' | cat and cat <<< 'foo' My question is what are the difference between these two as far as the resources used are ...
2
votes
2answers
116 views

How to track resources' (inodes, blocks) usage change upon starting a program

I am supposed to track how file system's usage of resources (i-nodes, blocks) changes before I start a program, after I start a program, delete its executable file, and then finally after I kill its ...
1
vote
1answer
647 views

Distributing CPU cores between cgroups and outside world

Is it possible to manage access to CPU cores in a similar fashion that memory limiting works? In particular I need to be able to dynamically create and destroy cgroups that will limit a particular ...
0
votes
1answer
123 views

What desktop enviroment consumes fewer resources? [closed]

I want to install Mint in my laptop, but I'm undecided about which desktop environment I should use with it. Currently the available desktop environments the distribution offers are Cinnamon, MATE, ...
1
vote
1answer
295 views

Is there a way to change the number of processors a program sees?

Is there any way I can trick a program into thinking the system has fewer processors? To explain: I am debugging a program that creates as many threads as it has processors, using sysconf(...
-1
votes
1answer
1k views

How much RAM and CPU for a NTP server? [closed]

As a side project, I am thinking about adding a NTP server to pool.ntp.org. I would like to use CentOS basic, but how much RAM and CPU should I assign to a machine that will only be running ntpd (plus ...
9
votes
2answers
6k views

How to add persist shell ulimit settings on Mac? [duplicate]

I want to enable core dump generation by default upon reboot. Executing: ulimit -c unlimited in a terminal seems to work until the computer is rebooted.
6
votes
1answer
10k views

Pacemaker: migrate resource without adding a “prefer” line in config

Using pacemaker in a 2 nodes master/slave configuration. In order to perform some tests, we want to switch the master role from node1 to node2, and vice-versa. For instance if the current master is ...
4
votes
3answers
319 views

Is there any way to tell exactly what files a command is accessing?

I'm working on a piece of software that requires me to know what files and resources any certain launched process are accessing. I'm not planning on attempting to track what every single script, ...
2
votes
2answers
3k views

Linux freezing randomly

My Computer has been freezing a lot lately, and with no apparent reason.It freezes even if my usage is 3% CPU and 9% RAM. I was using Windows 8 until I installed Ubuntu 14.04. It was really slow, ...
2
votes
1answer
97 views

Openvz resource management

I have a couple of nodes ( which are not mine ) running one openvz kernel version -2.6.32-042stab092.2 specifications : processor model name : E5-2620 0 @ 2.00GHz Number of Processors : 24 RAM : 48G ...
0
votes
0answers
28 views

how to find where buffers/cache are and how to clean them up? [duplicate]

I want to create 20gb ram disk for ANSYS to work in yet on free -g I see: And personally I have not created any ram drives yet. So I wonder how to maximize avaliable ram: how to locate what is using ...
15
votes
2answers
6k views

How to limit the total resources (memory) of a process and its children

There are plenty of questions and answers about constraining the resources of a single process, e.g. RLIMIT_AS can be used to constrain the maximum memory allocated by a process that can be seen as ...
10
votes
1answer
4k views

Does 'ulimit -m' not work on (modern) Linux?

This article claims that the -m flag to ulimit does nothing in modern Linux. I can find nothing else to corroborate this claim. Is it accurate? You may try to limit the memory usage of a process ...
3
votes
5answers
2k views

How can I force a script to use more resources?

I'm running a very time-consuming script which takes many hours to end. Watching top I see that it's only taking 5% of the CPU at best, usually around 3%. Is there any way to force the script to use ...
1
vote
1answer
1k views

Worker MPM or Prefork?

I understand that there is a comparison topic between the two modules but this is different. I was contacting cPanel support in order to help me freeing up some memory usage on the VPS. They found ...
0
votes
0answers
74 views

Is Linux bad at handling misbehaving programs? [duplicate]

This is really not a duplicate, because my main question is how to get able to use the system again once it started swapping (maybe I can raise the priority of what handles ctrl-alt-F1, or something ...
13
votes
2answers
9k views

How to prevent fork bomb?

To prevent fork bomb I followed this http://www.linuxhowtos.org/Tips%20and%20Tricks/ulimit.htm ulimit -a reflects the new settings but when I run (as root in bash) :(){ :|:&};: the VM still goes ...
15
votes
3answers
17k views

ulimit & rlimit in Linux, are they the same thing?

I see people use the terms ulimit & rlimit interchangeably, can I say they are referring to the same thing?
0
votes
1answer
5k views

Limit CPU and memory usage for PHP-FPM and Nginx processes in CentOS

I want to limit CPU and memory usage for PHP-FPM and Nginx processes in CentOS. I came across following tools cpulimit cggroups memory resource locater which will more efficient and how can I ...
27
votes
1answer
1k views

Why does it take up to several minutes to clean a listening TCP port after a program dies?

If I kill a program that is listening on a TCP port, it takes up to several minutes until the port is reclaimed by the system and usable again. I've seen several Q/A mentioning this phenomenon, but ...
0
votes
3answers
371 views

Is there a difference in resource use/requirements between Ubuntu and Debian versions of Linux Mint (under the same DE)?

I intend to use Linux Mint on a RAM/1GB laptop. I'm used with Xfce and LXDE and I see that both Linux Mint 14 Nadia and Linux Mint Debian have Xfce versions. Is there a reason to prefer one to the ...