I have a program which performs some operations on a lot of files (> 10 000). It spawns N worker threads and each thread mmaps some file, does some work and munmaps it. The problem I am facing right now is that whenever I use just 1 process with N worker threads, it has worse performance than spawning 2 pr…
Tag: linux
How to access istio created dashboard
I installed istio on kubernetes without helm. I can see pods and services are created in istio-system namespace. All service like grafana, Prometheus are created and their ports are not exposed. As load-balancer-service is created so that one load balancer is also created in AWS, I wanted to access grafana, p…
which utility produces “Poky (Yocto Project Reference Distro) 2.6.1 (none) /dev/console”
I am playing with Yocto Thud 2.6.1. I want to know which utility / program / library is responsible for producing following line: ‘Poky (Yocto Project Reference Distro) 2.6.1 (none) /dev/console’ Thanks Answer The lines before the login are from the /etc/issue and /etc/issue.net files. You can mod…
How to know if an opengl function is going to block?
I am using wayland with IVI extension. I have a program, showing camera image in a sufrace, and it is controlled using dbus. I found out that if the surface is hidden, then the opengl functions are blocking the program (It is glClear( GL_COLOR_BUFFER_BIT ); which blocks). I found this discussion, which explai…
How to build a Tkinter GUI in linux like exe in window?
I worote some Tkinter script in Linux,everytime I use “python script.py” to run it from terminal, but in windows,I can use pyinstaller to build an EXE file, then double click the GUI will run. How do I do in linux to build an “exe” file then can click it will run instead of “pyth…
How to keep service script output from clogging up “messages”
I have a service on Centos7 that runs a script in /usr/local/sbin/restarthelp2.sh and outputs a tunnel check by checking the status of network connection. The output of this ends up in /var/log/messages and makes the file huge. I already have the output being sent to its own log file, how do I keep the output…
Mixing debug and release libraries: Windows vs Linux, static vs shared
This question has been asked a few times already, but I observe that it always refers to Windows. Which makes sense, given that MSVC fails with the following error: error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in main…
Obtaining real device of VLAN-interface through the netlink
I need to obtain the real_dev (f.e. ID) of the given VLAN-inteface. I wrote some test snippet using libnl: So I have some interface ID and I can check if it’s a VLAN-interface, but I have no idea how to obtain the interface the vlan is attached to. It seems that libnl’s API does not provide such p…
Unable to build GNU automake – help2man can’t get `–help’ info from automake-1.16
I’m trying to compile and build automake 1.16 and it fails in the following way: I have searched and found similar issues on Stackoverflow and Github where the solution is to “yum install perl-Thread-Queue” But I do not have root access. How do I go about compiling automake successfully with…
Change application core dump directory with c program
I have one scenario where I want to change directory for core dumps by current application using c program. I have one option to do chdir() to specified directory. But this changes the home directory of application. And I am looking for some APIs which can change directory for core dumps only. Answer You can …