Find out what core Linux OS is running on? - process

I have 6 cores on my machine and while running a program, I notice some unexplained behavior (stalling) that might come from the OS background operations.
Is there a way to find out - which core the OS is running on?
and if there are a few cores on which the OS is running on, can I limit the OS to run on a single core that I choose?

Related

Docker Desktop Windows - Abysmal performance in AMD system?

I've recently assembled a new AMD Desktop, to replace an older Dell Latitude E7540 laptop.
The AMD Desktop:
Ryzen 3 3100 # 3.8GHz (4C/8T), 32GB DDR4 3600 CL17 RAM, Corsair P600
Gen4 SSD
The DELL Laptop:
Dell Latitude E7540: Intel I7-5600U # 2.6GHz (2C/4T), 16 MB RAM DDR3 1600, Samsung mSATA PM851
On the new AMD Desktop, when executing a docker build command, two situations occur:
The performance is dreadful, even building a simple image, it takes a long time for the command to start. After starting, it takes a long long time to complete (when it completes)
The build window crashes almost 50% of the time.
The benchmarks indicate that the new AMD Desktop is 3.5x faster at single core, and 6x faster at multicore.
As such, I was expecting a much better performance with the new AMD Desktop.
Unfortunately, that's not the case, and for the same Dockerfile (which generates a very big image):
The Dell starts faster
The Dell completes faster (10m vs 30m)
On the Dell, the build window never crashes.
The only difference between both systems is that one is an Intel platform, the new one an Ryzen 3 AMD.
Environment Details are the same on both machines:
Windows Version: Windows 10 Ent. 19049
Docker Desktop Version: Docker 3.0.0
What can explain this abysmal performance on Docker-Desktop on the new AMD system?
After a few troubling days, i can confirm that the problem is not AMD related.
The culprit is the Antivirus, that when ON, its scanning the files used by Docker, which cause all the problems i've described.
Docker documentation states how to disable the antivirus to scan Docker related files:
https://docs.docker.com/engine/security/antivirus/
When antivirus software scans files used by Docker, these files may be locked in a way that causes Docker commands to hang.
One way to reduce these problems is to add the Docker data directory (/var/lib/docker on Linux, %ProgramData%\docker on Windows Server, or $HOME/Library/Containers/com.docker.docker/ on Mac) to the antivirus’s exclusion list. However, this comes with the trade-off that viruses or malware in Docker images, writable layers of containers, or volumes are not detected. If you do choose to exclude Docker’s data directory from background virus scanning, you may want to schedule a recurring task that stops Docker, scans the data directory, and restarts Docker.

Can I currently develop, test, package and distribute Kivy, cross-platform apps on Windows 10 alone?

Can I currently, at this time, develop, test, package and distribute Kivy, cross-platform apps (targeted to run on iOS, Android, Windows, OS X and Linux) on Windows 10 alone?
I.E. WITHOUT needing a Linux or OS X machine?
I ask because Buildozer used to need to run on linux or OS X. Maybe it has improved or there's something better now?
If not, what will aspects of the process can be done on Windows 10 and to what other machines do i need access?
Thanks for the help.
Love and peace,
Joe
You can run buildozer in a virtual machine running linux, but in won't run under windows alone at the moment (or, it will, but not the android build part, which is what you need).

jvm crash after adding more cpu and ram during runtime

A production tomcat stopped responding after 8 hours of adding more cpu and ram during runtime. There is no traceable log in catalina.out.
java process was still running in the background. There is no load on the system during that time period. No sign of Out of memory.
apache-tomcat-7.0.55
tomcat-native-1.1.31
java version "1.8.0_66"
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Could it be because of the cpu and ram upgrade? Thanks.
I saw a post about it for java 6. I am not sure it is related to my issue.
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6840239

Process snapshot for running DirectX programs

Is it possible to take a complete restorable snapshot of a running or suspended DirectX program while NOT within a virtualization program, like VirtualBox? If so, how? While the program is running natively, the snapshot would have to include enough of the OS and hardware state to restore the program without messing up the stability of the OS when it is restored a few minutes or more later.
I would like to do this on XP with DirectX 5 to 9, but ideas or solutions for Windows 7 using DirectX 5 to 11 or Linux using Wine are welcome. I am not sure how good support is for DirectX 8 or less on the most recent Windows OSs.
For those who want to comment on the virtualization approach, I can not get solid DirectX 7 or before hardware rasterization emulation, and I do not know how to trick a pre-coded program into using reference or software rasterizers. In other words, I would like to get 3DMark2001 and like working in VirtualBox. I know snapshots are easier using virtualization software, but that could only work for me with DirectX 8 or later.
Comments on the stability of snapshots, using virtualization software or native OS, are welcome too.

How to create bootable GUI programs?

*"for Retro computing purposes only"*
Some programs are directly bootable and have a nice GUI
e.g. Acronis OS Selector and Disk Director (screenshot)
How can they run wihtout underlying OS? Can this be acheived by using a minimal Linux distribution?
goal: the program should run such that it appears independent of the os (e.g you dont have to launch it from the os cmd or desktop)
also the OS should not have increase the size of the program a bit too much
Also I wonder if Qt GUI's can run like this...
I suspect that Acronis OS Selector and Disk Director uses their own version of Windows 7.
Yes, you can produce a program that has it's own operating system. You could use a bootable Linux distribution.
Knoppix, to pick one example, is a bootable Linux distribution.
The story behind a comprehensive GUI + bootable program is somewhat like this:
Develop the program in a linux GUI toolkit
On boot, load a linux kernel (without any desktop environment)
Hand over the control to the program GUI
more info: Bootable Qt-Linux Application