Questions tagged [resources]
The resources tag has no usage guidance.
92
questions
0
votes
0
answers
20
views
How to setup shared limits for a set of users in cgroup?
In work we have centos server where we can connect and give it things to run. Every now and then someone manages to hog all the resources of the server (either cpu or memory) and everything freezes up,...
0
votes
1
answer
26
views
QNX resource manager full duplex or half duplex
I am using a resource manager to read the data from the communication channel and send it to the application. I have doubt, is the QNX resource manager half duplex or full duplex?
Can simultaneous ...
1
vote
1
answer
283
views
HP Pavilion x360 Convertible, installing Linux, endless IRQ and logging loop
When installing a Linux OS (e.g. Mint) from a live cd or USB stick, editing /etc/default/grub does not solve the problem. You can add or edit a line like
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ...
3
votes
1
answer
381
views
Is the kilobyte used by time and ulimit commands either 1000 (SI) or 1024 (old school) bytes?
From man time:
M Maximum resident set size of the process during its lifetime, in Kilobytes.
From ulimit -a:
max memory size (kbytes, -m) unlimited
But a "kilobyte" may mean ...
0
votes
2
answers
398
views
Will `rm -rf` continue deleting if it can't delete something in the middle?
Consider a dir garbage containing many files and directories.
If I run rm -rf garbage, but some files or directories within garbage are busy by the OS/NFS/etc., so rm -rf will fail for them. Will it ...
0
votes
1
answer
623
views
sleep in Bash if/else sleep vs <condition> && sleep clamining cpu
I wrote a script to check on the battery and if it is below 5% notify the user.
The script is put to sleep for 1 minute after every check.
If I write the script in the following way, the cpu workload ...
0
votes
1
answer
2k
views
JAVA OPTS Xms Xmx MetaspaceSize MaxMetaspaceSize relationship with server resources
I have just started working with jboss application servers and recently we had a problem when trying to deploy an application in a new test server (RHEL 7), it happened that, when starting the jboss ...
0
votes
0
answers
361
views
Memory runs out and PC freezes
I have been having issues playing video games on my PC, as I keep running out of RAM (8GB).
When I run out of RAM, my displays and everything else freezes, except playing audio keeps looping. I have ...
0
votes
1
answer
28
views
Changing rights and owner in one command to safe resources
I have a backup script with the following function:
function change_rights()
{
chown -R ${OWNER}:${GROUP} ${DIR}
find ${DIR} -type f -exec chmod 0640 {} \;
find ${DIR} -type d -exec chmod ...
1
vote
0
answers
450
views
Is there a program that will show me the average CPU usage over the last minute for every process?
One feature I miss from Windows is that the Resource Monitor program would show, among other statistics, the average CPU usage over the last minute for each program. On Linux I use either Gnome system ...
2
votes
1
answer
353
views
Get memory/cpu usage by application
What I need
I want to monitor system resources (namely memory and cpu usage) by application - not just by process. Just as the Windows Task Manager is grouping resources by the "calling mother ...
2
votes
1
answer
849
views
systemd ignores drop-in configuration files - what am I doing wrong?
On one of my machines with Debian Buster (which ships systemd 241), I wanted to watch resource usage via systemd-cgtop. When I started this utility, I was seeing memory usage, but neither CPU usage ...
1
vote
0
answers
422
views
How to determine whether a process would run out-of-memory?
A testsuite has a couple of tests, that will consume a quite a lot of memory (11GB) or so.
This is typically not a problem when running those tests on my developer machine, but within the context of ...
-1
votes
1
answer
152
views
Why can't http be changed to https in ubuntu?
Why can't http be changed to https in ubuntu?
Err:1 https://ports.ubuntu.com/ubuntu-ports focal InRelease
Could not connect to ports.ubuntu.com:443 (91.189.91.38). - connect (111: Connection refused)...
0
votes
1
answer
444
views
How to know how many resources a process uses in all its execution time? linux
I would like to know if there is a program to analyze how many resources it takes to execute a command.
for example as follows:
# magic_program python3 app.py
And that the program tells you how many ...
0
votes
1
answer
383
views
How to get the correct device to limit block IO for docker container?
(I posted this question at stackoverflow, but maybe here is the more appropriate place, if necessary - I'll delete the other question.)
I need to put a limit on block IO operations speed for a number ...
1
vote
0
answers
37
views
Hide HOST resources from a docker container [duplicate]
I have a linux server with 100GB of RAM & 56Cores, I run a docker container with limit in Memory and CPU and I use cgroups too (I limited Memory & CPU to 50GB & 20Cores).
With all that ...
4
votes
3
answers
2k
views
What is the historical reason for limits on file descriptors (ulimit -n)
When I first borrowed an account on a UNIX system in 1990, the file limit was an astonishing 1024, so I never really saw that as a problem.
Today 30 years later the (soft) limit is a measly 1024.
I ...
2
votes
0
answers
27
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
0
answers
71
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
2
answers
382
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
1
answer
908
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
1
answer
200
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
1
answer
234
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
0
answers
70
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
1
answer
218
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
0
answers
2k
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
0
answers
30
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
0
answers
230
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
0
answers
48
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
0
answers
35
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
2
answers
734
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
0
answers
30
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
0
answers
130
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
1
answer
400
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 ...
2
votes
0
answers
2k
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 ...
17
votes
1
answer
2k
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
1
answer
246
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 ...
3
votes
2
answers
11k
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-...
3
votes
1
answer
769
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
1
answer
859
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
0
answers
124
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
3
answers
16k
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
1
answer
222
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
1
answer
1k
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
0
answers
66
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
2
answers
921
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
1
answer
70
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 “...
4
votes
1
answer
2k
views
Why isn't this systemd service resource limited when using CPUShares property?
Ok to get my hands dirty with cgroups and systemd, I wrote the most moronic C program I could think of (just a timer and a spinlocking while loop) and named it idiot, which I accompanied with the ...
1
vote
3
answers
6k
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 ...