topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 1:42 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Linux and Windows andLinux  (Read 14753 times)

cmpm

  • Charter Member
  • Joined in 2006
  • ***
  • default avatar
  • Posts: 2,026
    • View Profile
    • Donate to Member
Linux and Windows andLinux
« on: March 15, 2008, 07:36 PM »
http://www.andlinux.org/reqs.php

I thought this was very good for these two to get together.
Where's big Mac? Wonder if it could be done?

Now you can run Linux apps in Windows.
Kindof...Sortof...
Better then dual booting though.

Be sure to check the security warning in system requirements.

zridling

  • Friend of the Site
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,299
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #1 on: March 16, 2008, 10:31 PM »
Haven't heard of this, since I didn't see it listed on DistroWatch. Another alternative is to run your GNU/Linux apps from within Windows using a Wubi installation. Pretty cool, and it works. The point is that if you use a certain app, such as emacs, on GNU/Linux, you don't want to have to bother with another editor or a duplicate installation of the Windows version, assuming there is one.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #2 on: March 17, 2008, 12:15 AM »
The wubi thing requires reboot to run, though - the purpose of andlinux/colinux is to run linux applications natively under windows, by doing ELF loading and system call translation...
- carpe noctem

cmpm

  • Charter Member
  • Joined in 2006
  • ***
  • default avatar
  • Posts: 2,026
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #3 on: March 17, 2008, 12:37 AM »
Yeah, I thought it was unique and needed it's own space as being different from dual booting.

I've run various Linux, but just keep coming back to windows.
So to have them both without much hassle would be good.
There are some great Linux programs I like.

Being able to work with both OS's programs seamlessly is quite a plus.
Though I don't know how well it integrates with everything yet.....

Dormouse

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,954
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #4 on: March 17, 2008, 03:16 AM »
There's this one too - http://www.topologilinux.com/
Uses colinux

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #5 on: March 22, 2008, 10:52 PM »
andlinux is a great idea.
I think you could make your entire linux system portable.
Let's see. X server (portable) + linux partition (as .drv file) = mobile heaven.

I haven't tried it, though.

Fodder, you know a lot about low-level stuff.
What's the performance price you pay by having linux installed like this? Is disk access where it suffers most?

Thanks

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #6 on: March 22, 2008, 11:24 PM »
I have ubuntu under virtualbox(xp), it works great. I also have another winxp under virtual box to try my installations.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #7 on: March 23, 2008, 07:51 AM »
Fodder, you know a lot about low-level stuff.
What's the performance price you pay by having linux installed like this? Is disk access where it suffers most?
Shouldn't be too bad, since you run code natively and not emulated. There's a translation layer being used between linux syscalls and windows calls, but that is minimal overhead compared to emulation.

Haven't run any tests of coLinux myself, though.
- carpe noctem

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #8 on: March 23, 2008, 09:16 AM »
Does anybody following this thread have any extended experience with andLinux as I am interested in knowing how stable it is.

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #9 on: March 23, 2008, 03:39 PM »
Well, I've been running it for a week or so. Intensive use (actually thinking of abandoning windows forever).

It's as starble as a stand-alone version, I'd say.

The only thing that may act funny is the X server (but that's independent of the andlinux install; it's Xming). Xming is under active development, so bugs are expected. I had some problems with swing applications.

I'm removing ~ 100Gb of music to enlarge the andlinux "partition". Will go full-force into it.

tinjaw, you are a dev; you owe it to yourself to try it. The command line experience under windows is plain painful. if you use it at all, you will be relieved under linux (you know that).

In my tests, this linux install (with whatever system calls translations etc) runs ruby code about twice as fast as the native windows interpreter. No kidding.

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #10 on: March 23, 2008, 03:42 PM »
one thing I'd like to know is: am I dooming my linux processes to only one core (have dual core)? I'm sacrificingone gb of memory to windows already. a core... well. it's too much. Fodder? Anyone?

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #11 on: March 23, 2008, 03:52 PM »
In my tests, this linux install (with whatever system calls translations etc) runs ruby code about twice as fast as the native windows interpreter. No kidding.
Wtf? The native windows interpreter must suck bigtime, then... compiled with old version of GCC using cygwin translation libraries?

- carpe noctem
« Last Edit: March 23, 2008, 05:18 PM by f0dder »

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #12 on: March 23, 2008, 04:54 PM »
yep, that's what I thought. No idea why that happens.
Do you know the answer to the 2 core questions?

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #13 on: March 23, 2008, 05:19 PM »
I'm not sure I understood your question about cores - with coLinux, do you have to dedicate an entire core to it?
- carpe noctem

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #14 on: March 23, 2008, 08:56 PM »
sorry. the question is: if linux is 'just a process' from windows' perspective, then maybe it can live on one core only. That'd mean that you are wasting your second core (no matter how many linux processes are claiming the CPU) if you develop using andlinux on windows.

This is a theory; it may well be the case that you can use the two cores. I'm just not sure.

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #15 on: March 23, 2008, 10:46 PM »
Well, I've been running it for a week or so. Intensive use (actually thinking of abandoning windows forever).

It's as starble as a stand-alone version, I'd say.

Thanks for the report.

The only thing that may act funny is the X server (but that's independent of the andlinux install; it's Xming). Xming is under active development, so bugs are expected. I had some problems with swing applications.

Yes. Dependencies are always a pain when they aren't stable.

tinjaw, you are a dev; you owe it to yourself to try it. The command line experience under windows is plain painful. if you use it at all, you will be relieved under linux (you know that).

Oh I've got plenty of non-standard stuff at my fingertips. I run Linux all the time. And on Window boxes I have Cygwin, native Windows ports of GNU software, and lately I run a lot of iPython as my shell.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #16 on: March 24, 2008, 08:17 AM »
sorry. the question is: if linux is 'just a process' from windows' perspective, then maybe it can live on one core only. That'd mean that you are wasting your second core (no matter how many linux processes are claiming the CPU) if you develop using andlinux on windows.
Unless coLinux has deliberate limits, you will be able to use your cores just fine... and I would be surprised if coLinux doesn't do translation of the threading APIs :)
- carpe noctem

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #17 on: March 24, 2008, 08:53 AM »
sorry. the question is: if linux is 'just a process' from windows' perspective, then maybe it can live on one core only.

One process doesn't mean one thread. Threads should load balance just fine across multiple cores.

"Portability

Unlike User Mode Linux, coLinux always utilizes only one process of the host OS for all its Linux processes, privately managing their scheduling, resources, and faults in a manner which is contained and entirely independent of the way the host OS is implemented. In fact, coLinux only requires a very small set of commonly exported primitives from the host OS kernel in order to work, thus, it can be rather easily ported to run under any operating system, such as Solaris, or even Linux itself."

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #18 on: March 24, 2008, 09:02 AM »
Great.
Tinjaw, I copied the exact same paragraph and was going to post it here :)

One more question is about partitions.
andlinux uses cofs to mount ntfs partitions. it works well.
However, maybe it's even better to create linux partitions and mount them natively. It seems that windows can see an ext2/3 partitions well enough:

http://www.fs-driver.org/faq.html

However, it worries me that maybe ext3 is not that well supported:
If you mount an Ext3 file system as an Ext2 file system and the file system is not cleanly dismounted, (e.g. due to a system crash), you have to run the e2fsck tool. (Linux does it automatically.) Running e2fsck can take several hours on large volumes. You do not benefit from journaling the Ext3 file system, because you have to run e2fsck.

So my question is: should I create a data partition as NTFS and use cofs, or is it better to make it ext3 and force windows to see it with these drivers?

I'm looking for best performance with many small files. WHich is better, ntfs or ext3?

Other options (JFS, XFS) are not that well supported on win (there are drivers but not reliable)

Thanks

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #19 on: March 24, 2008, 09:09 AM »
Hm, only uses a single windows process to contain all the linux apps? Dunno if that sounds like such a great idea. But as long as it at least uses multiple windows threads inside that single process...
- carpe noctem

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #20 on: March 24, 2008, 09:32 AM »
These days using NTFS in Linux and ext2 in Windows is easily achieved with the right drivers. I usually default to NTFS as I suspect Linux applications will be more forgiving of NTFS than the other way around.

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #21 on: March 24, 2008, 09:54 AM »
Actually, these are the .exe in the andlinux dir:
colinux-bridged-net-daemon.exe
colinux-console-fltk.exe
colinux-console-nt.exe
colinux-daemon.exe
colinux-debug-daemon.exe
colinux-net-daemon.exe
colinux-serial-daemon.exe
colinux-slirp-net-daemon.exe

In the task manager, you mostly see cpu activity from:
colinux-net-daemon.exe
colinux-daemon.exe

And the X server of course.

Is that bad news? are all processes in linux running under the colinux-daemon.exe process in windows?


tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #22 on: March 24, 2008, 09:56 AM »
Sysinternals/Microsoft Process Explorer should help you determine that. You can see parent/child relationships as well as dig down to the thread level (and beyond).

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: Linux and Windows andLinux
« Reply #23 on: March 24, 2008, 01:23 PM »
Actually, I think windows just has no idea of what linux is doing.
Here's an example.

Top shows CPU 99%, but process explorer doesn't even show 8% for total cpu usage, and the anlinux demon is mostly iddle.
clipboard3_24_2008 _ 19_19_18.jpg[ Invalid Attachment ]