Questions tagged [resources]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
24 views

System too busy for magic SysRq [duplicate]

Sometimes (perhaps once a month) my system stops responding so bad that it won't react to magic SysRq combinations (which are allowed and do work properly at all other times). I'm quite sure this is ...
0
votes
0answers
27 views

Limiting the resources used by a process

This is now the third time I've had this problem and had to look up how to do it with the specific caveats of my particular instance. As such I want to write a script that will go through all the ...
0
votes
0answers
16 views

Syntax for using systemd-run to limit CPU and memory usage of multiple processes?

I would like to use Linux control groups (cgroups) to limit CPU and RAM usage of multiple processes. If the processes are Process 1 and Process 2 with child process Process 2 Sub, would this be the ...
0
votes
0answers
6 views

Monitor the resource consumption during a system load and send a report to a file

I would like to monitor the resource consumption (cpu, ram, disk) during a system load and send a kind of report to a file during this load, RHEL7 operating system. Can you recommend any way to do ...
0
votes
2answers
57 views

massive resource consumption during mkfs.ntfs on a zvol, why (and how can I limit this)?

On my machine mkfs.ntfs is slow and results in massive use of resources, preventing me from using the machine for anything else. According to top it (or rather directly related zvol processes) is ...
1
vote
1answer
55 views

Systemd resource limits not working as expected

I'm running Ubuntu 20.04 with systemd 245. I'm testing out systemd's resource control features; particularly the memory usage controls. The relevant section of my unit file looks like this: [Unit] ...
0
votes
1answer
16 views

Relationship between RAM and CPU to assign to servers

I would like to know if there is any method, formula, recommendation or good practice to establish the relationship between CPU and RAM on a server, be it physical or virtual, I have recently seen ...
0
votes
1answer
30 views

Systemd resource management via CGroup

I want to know how can I limit ( or eliminate any limitation for ) the resource consumption (i.e CPU and memory usage ) of systemd slices via CGroup ? There's a command named systemd-cgtop which ...
2
votes
0answers
28 views

drm/kms: Limit graphics memory usage of process

Is there a way to limit the amount of graphics resources allocated by a process in the DRM/KMS subsystem, similar to the way one can limit system memory consumption with rlimits and cgroups? Is there ...
1
vote
1answer
42 views

Do context switches take up memory?

I’m relatively new to Linux, and I had a few questions about context switching. What kind of system resources does a context switch take up? Does it take up memory? If so, will the memory show up as ...
1
vote
0answers
782 views

Multiple Processes getting stopped with error “Resource temporarily unavailable” and “can't fork” resulting in crash

We are running a script on Dell Edge gateway 3002 to send data to cloud, but after running for 4-5 days the gateway becomes unresponsive(hanged state) and can't be pinged. The gateway has Ubuntu 18.04....
1
vote
0answers
22 views

How to measure the resource use of a system call?

I've written two system calls, and want to compare the memory used up by each one. How could I go about doing this? I've tried getrusage, but almost all of the fields are 0. Thank you!
1
vote
0answers
48 views

Compiling a program causes my system to run out of memory, any workarounds?

During the compilation my system runs out of memory on a compilation unit. How can I deal with this issue? One way is to enable swap but just doing that would make the machine unuable while the ...
2
votes
0answers
28 views

Where is getrusage defined? [duplicate]

I've been looking into the getrusage function, which I see a prototype for within the file /include/linux/resource.h. I've tried to trace the directives to find where the actual function is, but I ...
0
votes
0answers
28 views

What deteriorating component in my laptop is causing poor performance while playing videos

I have a laptop which I have been using for years. I was always able to watch Youtube videos and hours-long HD videos stored on my hard drive just fine. However, recently the device started poorly ...
2
votes
2answers
226 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
59 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
297 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
1k 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 ...
15
votes
1answer
892 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
97 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 ...
2
votes
2answers
5k 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
435 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
403 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
107 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
11k 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
96 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
138 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
40 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
280 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 ...
3
votes
1answer
60 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
3answers
4k 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 ...
2
votes
2answers
3k 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 ...
2
votes
2answers
109 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
814 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 ...
36
votes
2answers
64k 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 ...
2
votes
0answers
27 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 ...
2
votes
1answer
3k 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
1k 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 ...
27
votes
1answer
8k 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
147 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 ...
19
votes
3answers
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
150 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 ...
2
votes
1answer
912 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
129 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
441 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
2k 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
9k 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
3answers
14k 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 ...