I am running load test on one of my sftp server application using jmeter. I run my jmx script as below Script does have Simple Data Writer which creates csv file with result, which i convert into html using below command running on cmd from bin folder of jmeter. It was working couple of days back and now if i
Why does pthread_exit use void*?
I recently started using posix threads and the choice of argument types in the standard made me curious. I haven’t been able to asnwer the question of why does pthread_exit use void* instead of int for the returning status of the thread? (the same as exit does). The only advantage I see is that it lets …
TCP echo server doesn’t accept client
I’m trying to make an echo client server in C. The problem is, when I start the server and run the client code, in client shell it says “Connected” but in server shell it still says “Waiting for connection”. (Server doesn’t say “accept failed”. It says “Wa…
kafka configuration + zookeeper cli + get the right info for kafka host
As all know when is need to print the kafka broker id’s we can use the following cli this cli print the following Its means that we have kafka with id’s But our kafka names are So how to know which kafka broker id ( 1018 , 1017 , 1016 ) is belong to the real host ( Kafka_confluent01 /
./configure and make: is there a common flag to the output filename, and what does –prefix do?
From time to time i have to compile tools and apps i need directly from the source. Most of them (i am using linux), require to run a configure-script: and after that: i basically understand what those commands do, but there are some details which are still very unlcear to me. Those two steps normally resulti…
How to block a user from executing select queries on a table in Db2?
I have a database ‘SAMPLE’ in which I need to block a user ‘DB2ADMIN’ from executing I already tried I get error SQL0556N and message “DB2ADMIN does not hold this privilege”, which means it shouldn’t have worked in first place. Still I am able to get select query resu…
How to implement a timer for every second with zero nanosecond with liburing?
I noticed the io_uring kernel side uses CLOCK_MONOTONIC at CLOCK_MONOTONIC, so for the first timer, I get the time with both CLOCK_REALTIME and CLOCK_MONOTONIC and adjust the nanosecond like below and use IORING_TIMEOUT_ABS flag for io_uring_prep_timeout. iorn/clock.c at master · hnakamur/iorn From the second…
install C++ application using CMake on multiple systems
I wrote a simple openGL application using C++ and SDL2. I’ve compiled it using CMake on linux and everything works fine. How do I now run my program on other systems? Is it possible to compile the program on my linux machine and then open the compiled output file on another linux machine? Or does every …
How are parameters passed to Linux system call ? Via register or stack?
I trying to understand the internals of the Linux kernel by reading Robert Love’s Linux Kernel Development. On page 74 he says the easiest way to pass arguments to a syscall is via : Somehow, user-space must relay the parameters to the kernel during the trap.The easiest way to do this is via the same me…
Redirect logs of pods in my k8s to a file with pod name
I was trying to redirect logs of pods in a k8s into a file of their name. kubectl get pods | awk ‘{print $1}’ | tail -2 | xargs -I {} kubectl logs {} > {} This is the result. demo@demo1:~/log$ ls {} What I need is, if this is the pod details demo@demo1:~/log$ kubectl get pods NAME READY STATUS