Is there any better/smarter way to put and get a boolean value from memory system, but not using any TCP/UDP nor local file system method? Where Backend does memory allocation, and Frontend reads it on the fly, none of them will be able to use TCP/UDP nor File system. Answer AFAIK, The only way to use shared …
Tag: linux
What’s the purpose of the UD2 opcode in the Linux kernel?
I have found the following fragment in the Linux kernel (not the corresponding C code though), somewhere during the start up phase. You can clearly see the 0F 0B parts, which stand for the UD2 opcode (IDA refused to disassemble). There are some possible usages for this opcode explained here and here. In this …
FreeBSD executes linux file, with “ELF binary type “3” not known.” error
I followed the instructions on FreeBSD Handbook, but it doesn’t work. Any ideas? Answer Based on the “-amd64” suffix, you appear to be attempting to execute a 64-bit binary using Linux emulation… this isn’t supported according to numerous sources including e.g. this thread.
How do I know if my server has NUMA?
Hopping from Java Garbage Collection, I came across JVM settings for NUMA. Curiously I wanted to check if my CentOS server has NUMA capabilities or not. Is there a *ix command or utility that could grab this info? Answer I’m no expert here, but here’s something: Box 1, no NUMA: Box 2, some NUMA:
Using MD5 in kernel space of Linux
I am trying to use the kernel space implementation of the md5 algorithm (md5.h and md5.c). It turns out that md5.h does not declare the functions found in md5.c, so I could not simply include md5.h into my c file. I also wanted to avoid altering md5.h to declare the functions, since that could have unintended…
SYSTEM: denied request 44 in Minix
I get “SYSTEM: denied request 44 from 109894” when trying to execute my own code in Minix 3.2. I typed over the code and the makefile so there could be some typos. The program compiles fine however. My c file: My makefile: Minix uses the BSD compilation platform (hence the tag). Answer Apparently …
Installing scrapy (openSSL)
I’m using scrapy for couple of months now. I’ve been using it on the couple of machines and never had trouble with it. I used it on Windows xp and 7, I also used it on arch linux and never had trouble installing. Pretty much it was only pip install scrapy and done. Now I’m trying to set it u…
How to know if process has truly finished with a dlclose()ed library?
I’m on Linux (Ubuntu 12.04, gcc 4.6.3), trying to bend dlopen/close to my will in order to make a plugin-based application that can reload its plugins as and when necessary (e.g. if they’re recompiled). The basic theory is simple: dlopen the plugin; use it, keeping track of all its symbols that ar…
Very simple DNS server
I have a linux server has an ad-hoc wireless network for clients to connect to. Once connected I want users to always be redirected to it’s own web server no matter what URL they type in. The large solution would be to set up a full DNS server (with BIND or equivalent) but that seems like overkill. All …
In Linux, how do I find find directory with the most subdirectories or files? [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago. Improve this question How can I find the directory with the largest number of files/subdirectories in it on the system? …