Questions tagged [resources]
The resources tag has no usage guidance.
89
questions
-2
votes
0
answers
16
views
if you are getting "device resource busy" while deleting workspace [closed]
Then do ps -ef | grep eclipse and kill all the running instance kill -9 instanceId
0
votes
0
answers
30
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
22
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 ...
0
votes
0
answers
49
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
106
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
113
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 ...
0
votes
0
answers
104
views
Which parts of a (docker) container are loaded into memory?
I was wondering how containers and RAM/swap are related.
Please correct me where I am wrong in my assumptions below.
All container-related functionality that the kernel offers is always loaded into ...
1
vote
0
answers
61
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 ...
0
votes
0
answers
20
views
Monitor system CPU usage in Linux
There are plenty of tools for monitoring user processes' CPU usage but how do you do the same for tasks inside the kernel?
I.e. find out how much of the time spent in kernel space is used for ...
-1
votes
1
answer
57
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
0
answers
68
views
vsftpd ¿Why does it say: "Resource temporarily unavailable"?
On Debian 10, I'm unable to login on vsftpd service:
ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 3.0.3)
Name (localhost:root): testing
331 Please specify the password.
Password:
...
0
votes
1
answer
49
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
152
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
34
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 ...
1
vote
2
answers
636
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
34
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
252
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
454
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
65
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
78
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
46
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
118
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
1k
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
24
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
114
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
46
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
34
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
436
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
21
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
81
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
359
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 ...
15
votes
1
answer
1k
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
171
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
2
answers
8k
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
1
answer
602
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
633
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
116
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
14k
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
142
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
869
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
55
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
590
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
62
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
1k
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
5k
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
2
answers
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
2
answers
126
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
0
answers
960
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 ...