Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
Okay, so I've found a way around the invalid exe symlink. I don't need that anymore. The next challenge is concurrency in UML. I wrote a simple program that launches 10 pthreads, Each of which makes some system calls in an infinite loop. I notice that even though there are 10 threads in my dummy

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
I mean, there is only ONE thread in UML that intercepts The system calls and services them. Can we have more such threads in the kernel ? -Original Message- From: Nalli, Sanketh Sent: Monday, June 02, 2014 6:29 PM To: user-mode-linux-user@lists.sourceforge.net; 'Richard Weinberger' Cc: Vo

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
Here is some bootlog from 3.9 Core dump limits : soft - 0 hard - NONE Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...nothing mo

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
Oh wait, sorry its not. -Original Message- From: Nalli, Sanketh Sent: Monday, June 02, 2014 1:50 PM To: 'Richard Weinberger' Cc: user-mode-linux-user@lists.sourceforge.net Subject: RE: [uml-user] invalid /proc/PID/exe in UML processes OK Checking for new_mm and switch_mm support in the

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
OK Checking for new_mm and switch_mm support in the host: > /proc/self/mm ... Failed - > No such file or directory > Checking for the skas3 patch in the host: > - /proc/mm...not found: No such file or directory > - PTRACE_FAULTINFO...not found > - PTRACE_LDT...not found > UML running

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 22:42, schrieb Nalli, Sanketh: > Nope, but here is some bootlog Hmm, I have no idea so far. Applications running under valgrind or other debuggers suffered from the issue that /proc/pid/exe is empty. > The host does not have skas3 patch > Do you think that is the problem ? Nope. S

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
Nope, but here is some bootlog The host does not have skas3 patch Do you think that is the problem ? Which host shd I use that already has this patch (I mean I cud patch the host myself but if there is one Already present, that is good !) Core dump limits : soft - 0 hard - NONE Che

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Are you running UML under a debugger? Thanks, //richard Am 02.06.2014 22:16, schrieb Nalli, Sanketh: > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan > nalli@haris-crashnburn:/proc/4755$ ls -la > ls: cannot read symbolic link exe: No such file or directory > total 0 > dr-xr-xr-x 9 nalli nalli 0

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
-r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan nalli@haris-crashnburn:/proc/4755$ ls -la ls: cannot read symbolic link exe: No such file or directory total 0 dr-xr-xr-x 9 nalli nalli 0 Jun 2 13:07 . dr-xr-xr-x 346 root root 0 May 23 10:18 .. dr-xr-xr-x 2 nalli nalli 0 Jun 2 13:07 attr -rw-r-

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 22:11, schrieb Nalli, Sanketh: > Nothing..just lists all the contents including the hidden > Ones in a long listing fashion. Please show it verbatim. Thanks, //richard > -Original Message- > From: Richard Weinberger [mailto:rich...@nod.at] > Sent: Monday, June 02, 2014 12:

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
Nothing..just lists all the contents including the hidden Ones in a long listing fashion. -Original Message- From: Richard Weinberger [mailto:rich...@nod.at] Sent: Monday, June 02, 2014 12:20 PM To: Nalli, Sanketh Cc: user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] inva

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
nalli@haris-crashnburn:~$ cd /proc/6188 nalli@haris-crashnburn:/proc/6188$ ls -l exe ls: cannot read symbolic link exe: No such file or directory lrwxrwxrwx 1 nalli nalli 0 May 30 07:45 exe nalli@haris-crashnburn:/proc/6188$ killall linux -Original Message- From: Nalli, Sanketh Sent: Mond

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 21:16, schrieb Nalli, Sanketh: > nalli@haris-crashnburn:~$ cd /proc/6188 > nalli@haris-crashnburn:/proc/6188$ ls -l exe What does "ls -la /proc/6188" show? Thanks, //richard -- Learn Graph Databases - Dow

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
Also, This is how I compile and run : make defconfig ARCH=um make menuconfig ARCH=um ( set the CONFIG_X86_64 = y) make -j 24 ARCH=um ./linux rootfstype=hostfs rw mem=1G init=/bin/bash -Original Message- From: Richard Weinberger [mailto:rich...@nod.at] Sent: Monday, June 02, 2014 12:06

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
The host kernel is linux 3.5 And for guest I've tried Linux 3.9, 3.4 and 3.5. The distro is RHEL6 and Ubuntu 12.04 -Original Message- From: Richard Weinberger [mailto:rich...@nod.at] Sent: Monday, June 02, 2014 12:06 PM To: Nalli, Sanketh Cc: enjoy mindful; user-mode-linux-user@lists.sour

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
-Original Message- From: Nalli, Sanketh Sent: Monday, June 02, 2014 11:54 AM To: Richard Weinberger Cc: user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes And that symlink is crucial to the workload I am trying to run ! -Or

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ? (PID is the pid of a dummy program running in UML) > >> Host PID != Guest PID > > Yes I know that. > That’s not what I meant. > > What I am trying to say is this : > 1. Wh

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
And that symlink is crucial to the workload I am trying to run ! -Original Message- From: Nalli, Sanketh Sent: Monday, June 02, 2014 11:53 AM To: 'Richard Weinberger' Cc: enjoy mindful; user-mode-linux-user@lists.sourceforge.net Subject: RE: [uml-user] invalid /proc/PID/exe in UML pro

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
>>And why does the /proc/PID/exe NOT point to anything in >> >> The host ? (PID is the pid of a dummy program running in UML) >Host PID != Guest PID Yes I know that. That’s not what I meant. What I am trying to say is this : 1. When you run a program in side UML it shows up on HOST as "linux" i

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
On Mon, Jun 2, 2014 at 7:55 PM, Nalli, Sanketh wrote: > Thanks a lot. > > Do you know why my /proc is empty in the guest Did you mount procfs? > And why does the /proc/PID/exe NOT point to anything in > > The host ? (PID is the pid of a dummy program running in UML) Host PID != Guest PID > > >

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Nalli, Sanketh
Thanks a lot. Do you know why my /proc is empty in the guest And why does the /proc/PID/exe NOT point to anything in The host ? (PID is the pid of a dummy program running in UML) From: enjoy mindful [mailto:enjoymind...@gmail.com] Sent: Friday, May 30, 2014 12:06 AM To: Nalli, Sanketh Cc: user-mod