Re: What is going on with ash / sh

2011-11-03 Thread Tim Kientzle
On Nov 2, 2011, at 1:28 PM, Mark Saad wrote:
> Hackers
> What is going on here, if I run the following shell script, what is
> the expected output . The script is named xxx
> 
> #!/bin/sh
> ps -ax | grep -v grep | grep xxx
> 
> Here is what I see
> 
> # sh xxx
> 88318  p0  S+ 0:00.00 sh xxx
> 88320  p0  R+ 0:00.00 sh xxx
> 88321  p0  R+ 0:00.00 sh xxx
> 
> Can someone explain this ?

Here's my understanding:

   * 'sh xxx' starts (process 88318); let's call this the "parent" process.
   * It reads and parses the command line 'ps -ax | grep -v grep | grep xxx'
   * The parent process forks a copy of itself for the last 'grep xxx'.
   * The fork returns to the parent, the child (pid 88320) is scheduled to run 
later
   * The parent forks a copy of itself for the 'grep -v grep'
   * The fork returns to the parent, the child (pid 88321) is scheduled to run 
later
   * The parent runs 'ps -ax', which captures three copies of "sh xxx" (the 
parent which is waiting on 'ps -ax' to finish, and the two children that have 
not had a chance to run; note that the two children are both in state 'R' which 
means they'll run as soon as they get a chance, while the parent process is 
'S'leeping waiting for 'ps -ax' to finish)
   * The two children (which started as copies of 'sh xxx') finally get a 
chance to run and convert themselves into the respective grep commands (via the 
exec() system call).

The "expected output" is anywhere from one to three copies of 'sh xxx' and 
maybe a copy of 'grep xxx', depending on what shell you're using, how the shell 
parses the command line, the order in which it spawns children, and whether the 
fork returns to the parent or child first.  The number of processors can also 
impact exactly when the child 'sh xxx' processes get a chance to call exec(2).

Tim

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


FreeBSD on ARM Cortex board [Was: Porting FreeBSD to Raspberry Pi]

2011-11-03 Thread Arnaud Lacombe
Hi,

[Starting a new thread, added Ben Gray to the Cc: list]

On Thu, Nov 3, 2011 at 10:30 PM, Arnaud Lacombe  wrote:
> Hi,
>
> On Thu, Nov 3, 2011 at 10:05 PM, Nate Dobbs  
> wrote:
>> On Thu, Nov 3, 2011 at 9:55 PM, Greg 'groggy' Lehey 
>> wrote:
>>>
>>> On Thursday,  3 November 2011 at 21:05:54 -0400, Arnaud Lacombe wrote:
>>> > On Thu, Nov 3, 2011 at 8:40 PM, Greg 'groggy' Lehey 
>>> > wrote:
>>> >> On Thursday,  3 November 2011 at 11:33:25 -0400, Arnaud Lacombe wrote:
>>> >>> On Thu, Nov 3, 2011 at 11:20 AM, Nate Dobbs
>>> >>>  wrote:
>>>  10 year old core or not, the ARM is the worlds most widely used
>>>  processor;
>>> 
>>> >>> Please read what I said correctly, I said "this ARM11 is obsolete"
>>> >>> (even if still used, for sure) ...
>>> >>
>>> >> Clearly price is an issue for this device.  What's so bad about ARM11
>>> >> that it shouldn't be used?
>>> >>
>>> > If you read my original comment, I did point out the $25 price tag was
>>> > pretty much the only interesting thing. Now, what it has been designed
>>> > for, multimedia, is going to be handled by a closed-source binary blob
>>> > without datasheet, so let me turn back the question: what do you
>>> > expect doing with it ?
>>>
>>> That's not turning back the question; that's a separate question.  But
>>> it's a good one.  I don't really see it as a multimedia device.  My
>>> interest would be in little embedded agents in different parts of the
>>> house, for things like measuring temperatures.  I'm sure lots of other
>>> applications will come to mind.
>>>
>>> And yes, I'll probably use the supplied Linux port.  But if a FreeBSD
>>> alternative becomes available, I'd certainly prefer that.
>>>
>>> Greg
>>> --
>>> Sent from my desktop computer
>>> Finger g...@freebsd.org for PGP public key.
>>> See complete headers for address and phone numbers.
>>> This message is digitally signed.  If your Microsoft MUA reports
>>> problems, please read http://tinyurl.com/broken-mua
>>
>> I agree with groggy, something I'd personally use it for is a small SSH
>> server to allow a pinhole into my home network. It would serve as a very
>> good replacement for the mac mini that's sitting in my DMZ simply handling
>> connections for my SSH tunnel so I can bypass the proxy at work.
>>
>> Power savings would be significant and it would be plenty powerful to handle
>> this task. A small webcam server comes to mind as well; there could be
>> plenty of useful things I could think of outside the realm of multimedia.
>>
> you certainly want:
>
> http://beagleboard.org/bone
>
> $89, 700MHz Cortex A8, 256MB DRR2, micro-SD. However, do not expect
> being able to run FreeBSD on it before a few years :)
>
actually, some initial work has been started by Ben Gray:

http://code.google.com/p/beagleboard-freebsd/

and

https://gitorious.org/+freebsd-omap-team/freebsd/freebsd-omap/

 - Arnaud
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Kevin Lo
Arnaud Lacombe wrote:
> Hi,
> 
> On Thu, Nov 3, 2011 at 8:40 PM, Greg 'groggy' Lehey  wrote:
> > On Thursday,  3 November 2011 at 11:33:25 -0400, Arnaud Lacombe wrote:
> >> [Please do not top-post.]
> >
> > Please trim messages.
> >
> >> On Thu, Nov 3, 2011 at 11:20 AM, Nate Dobbs  
> >> wrote:
> >>> 10 year old core or not, the ARM is the worlds most widely used processor;
> >>>
> >> Please read what I said correctly, I said "this ARM11 is obsolete"
> >> (even if still used, for sure) ...
> >
> > Clearly price is an issue for this device.  What's so bad about ARM11
> > that it shouldn't be used?
> >
> If you read my original comment, I did point out the $25 price tag was
> pretty much the only interesting thing. Now, what it has been designed
> for, multimedia, is going to be handled by a closed-source binary blob
> without datasheet, so let me turn back the question: what do you
> expect doing with it ?

Agreed. I'll always prefer a $150 device with useful documentation
over a $25 toy which may or may not work depending upon the phase
of the moon.

> >From my point of view, I would be more interested into bringing up
> FreeBSD on ARMv7 (ie. Cortex A[89]), rather than any previous, but the
> effort is clearly not the same.
> 
>  - Arnaud

Kevin

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Arnaud Lacombe
Hi,

On Thu, Nov 3, 2011 at 10:05 PM, Nate Dobbs  wrote:
> On Thu, Nov 3, 2011 at 9:55 PM, Greg 'groggy' Lehey 
> wrote:
>>
>> On Thursday,  3 November 2011 at 21:05:54 -0400, Arnaud Lacombe wrote:
>> > On Thu, Nov 3, 2011 at 8:40 PM, Greg 'groggy' Lehey 
>> > wrote:
>> >> On Thursday,  3 November 2011 at 11:33:25 -0400, Arnaud Lacombe wrote:
>> >>> On Thu, Nov 3, 2011 at 11:20 AM, Nate Dobbs
>> >>>  wrote:
>>  10 year old core or not, the ARM is the worlds most widely used
>>  processor;
>> 
>> >>> Please read what I said correctly, I said "this ARM11 is obsolete"
>> >>> (even if still used, for sure) ...
>> >>
>> >> Clearly price is an issue for this device.  What's so bad about ARM11
>> >> that it shouldn't be used?
>> >>
>> > If you read my original comment, I did point out the $25 price tag was
>> > pretty much the only interesting thing. Now, what it has been designed
>> > for, multimedia, is going to be handled by a closed-source binary blob
>> > without datasheet, so let me turn back the question: what do you
>> > expect doing with it ?
>>
>> That's not turning back the question; that's a separate question.  But
>> it's a good one.  I don't really see it as a multimedia device.  My
>> interest would be in little embedded agents in different parts of the
>> house, for things like measuring temperatures.  I'm sure lots of other
>> applications will come to mind.
>>
>> And yes, I'll probably use the supplied Linux port.  But if a FreeBSD
>> alternative becomes available, I'd certainly prefer that.
>>
>> Greg
>> --
>> Sent from my desktop computer
>> Finger g...@freebsd.org for PGP public key.
>> See complete headers for address and phone numbers.
>> This message is digitally signed.  If your Microsoft MUA reports
>> problems, please read http://tinyurl.com/broken-mua
>
> I agree with groggy, something I'd personally use it for is a small SSH
> server to allow a pinhole into my home network. It would serve as a very
> good replacement for the mac mini that's sitting in my DMZ simply handling
> connections for my SSH tunnel so I can bypass the proxy at work.
>
> Power savings would be significant and it would be plenty powerful to handle
> this task. A small webcam server comes to mind as well; there could be
> plenty of useful things I could think of outside the realm of multimedia.
>
you certainly want:

http://beagleboard.org/bone

$89, 700MHz Cortex A8, 256MB DRR2, micro-SD. However, do not expect
being able to run FreeBSD on it before a few years :)

 - Arnaud

> JMHO
>
>
>
> --
> Cheers,
>
> Nate Dobbs RHCE
>
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Nate Dobbs
On Thu, Nov 3, 2011 at 9:55 PM, Greg 'groggy' Lehey wrote:

> On Thursday,  3 November 2011 at 21:05:54 -0400, Arnaud Lacombe wrote:
> > On Thu, Nov 3, 2011 at 8:40 PM, Greg 'groggy' Lehey 
> wrote:
> >> On Thursday,  3 November 2011 at 11:33:25 -0400, Arnaud Lacombe wrote:
> >>> On Thu, Nov 3, 2011 at 11:20 AM, Nate Dobbs <
> misconfigurat...@gmail.com> wrote:
>  10 year old core or not, the ARM is the worlds most widely used
> processor;
> 
> >>> Please read what I said correctly, I said "this ARM11 is obsolete"
> >>> (even if still used, for sure) ...
> >>
> >> Clearly price is an issue for this device.  What's so bad about ARM11
> >> that it shouldn't be used?
> >>
> > If you read my original comment, I did point out the $25 price tag was
> > pretty much the only interesting thing. Now, what it has been designed
> > for, multimedia, is going to be handled by a closed-source binary blob
> > without datasheet, so let me turn back the question: what do you
> > expect doing with it ?
>
> That's not turning back the question; that's a separate question.  But
> it's a good one.  I don't really see it as a multimedia device.  My
> interest would be in little embedded agents in different parts of the
> house, for things like measuring temperatures.  I'm sure lots of other
> applications will come to mind.
>
> And yes, I'll probably use the supplied Linux port.  But if a FreeBSD
> alternative becomes available, I'd certainly prefer that.
>
> Greg
> --
> Sent from my desktop computer
> Finger g...@freebsd.org for PGP public key.
> See complete headers for address and phone numbers.
> This message is digitally signed.  If your Microsoft MUA reports
> problems, please read http://tinyurl.com/broken-mua
>

I agree with groggy, something I'd personally use it for is a small SSH
server to allow a pinhole into my home network. It would serve as a very
good replacement for the mac mini that's sitting in my DMZ simply handling
connections for my SSH tunnel so I can bypass the proxy at work.

Power savings would be significant and it would be plenty powerful to
handle this task. A small webcam server comes to mind as well; there could
be plenty of useful things I could think of outside the realm of
multimedia.

JMHO



-- 
Cheers,

Nate Dobbs RHCE
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Greg 'groggy' Lehey
On Thursday,  3 November 2011 at 21:05:54 -0400, Arnaud Lacombe wrote:
> On Thu, Nov 3, 2011 at 8:40 PM, Greg 'groggy' Lehey  wrote:
>> On Thursday,  3 November 2011 at 11:33:25 -0400, Arnaud Lacombe wrote:
>>> On Thu, Nov 3, 2011 at 11:20 AM, Nate Dobbs  
>>> wrote:
 10 year old core or not, the ARM is the worlds most widely used processor;

>>> Please read what I said correctly, I said "this ARM11 is obsolete"
>>> (even if still used, for sure) ...
>>
>> Clearly price is an issue for this device.  What's so bad about ARM11
>> that it shouldn't be used?
>>
> If you read my original comment, I did point out the $25 price tag was
> pretty much the only interesting thing. Now, what it has been designed
> for, multimedia, is going to be handled by a closed-source binary blob
> without datasheet, so let me turn back the question: what do you
> expect doing with it ?

That's not turning back the question; that's a separate question.  But
it's a good one.  I don't really see it as a multimedia device.  My
interest would be in little embedded agents in different parts of the
house, for things like measuring temperatures.  I'm sure lots of other
applications will come to mind.

And yes, I'll probably use the supplied Linux port.  But if a FreeBSD
alternative becomes available, I'd certainly prefer that.

Greg
--
Sent from my desktop computer
Finger g...@freebsd.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft MUA reports
problems, please read http://tinyurl.com/broken-mua


pgpdNNTHmHUqI.pgp
Description: PGP signature


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Arnaud Lacombe
Hi,

On Thu, Nov 3, 2011 at 8:40 PM, Greg 'groggy' Lehey  wrote:
> On Thursday,  3 November 2011 at 11:33:25 -0400, Arnaud Lacombe wrote:
>> [Please do not top-post.]
>
> Please trim messages.
>
>> On Thu, Nov 3, 2011 at 11:20 AM, Nate Dobbs  
>> wrote:
>>> 10 year old core or not, the ARM is the worlds most widely used processor;
>>>
>> Please read what I said correctly, I said "this ARM11 is obsolete"
>> (even if still used, for sure) ...
>
> Clearly price is an issue for this device.  What's so bad about ARM11
> that it shouldn't be used?
>
If you read my original comment, I did point out the $25 price tag was
pretty much the only interesting thing. Now, what it has been designed
for, multimedia, is going to be handled by a closed-source binary blob
without datasheet, so let me turn back the question: what do you
expect doing with it ?

>From my point of view, I would be more interested into bringing up
FreeBSD on ARMv7 (ie. Cortex A[89]), rather than any previous, but the
effort is clearly not the same.

 - Arnaud
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Peter Jeremy
On 2011-Nov-03 10:22:22 +0100, Lars Engels  wrote:
>http://www.raspberrypi.org/archives/302
...
>If someone is willing to port FreeBSD to the Raspberry, I'd try to get
>one of the boards and send it to the porter.

Whilst FreeBSD on the Raspberry Pi would be attractive, I'm not sure
how practical it would be.  http://www.raspberrypi.org/archives/28
makes it fairly clear that the multimedia side will be all closed
source and relevant datasheets will not be available.

-- 
Peter Jeremy


pgpjYASZmxhP3.pgp
Description: PGP signature


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Arnaud Lacombe
Hi,

[added gber@ and cognet@ to the Cc: list]

On Thu, Nov 3, 2011 at 9:19 AM, richo  wrote:
> On 03/11/11 10:22 +0100, Lars Engels wrote:
>>
>> Hi Hackers,
>>
>> maybe you've heard of the upcoming Raspberry Pi, a credit card sized ARM
>> computer which is about to get sold for 25$ - 35$ from december on.
>>
>> http://www.raspberrypi.org/archives/302
>>
>> Hardware details: http://elinux.org/RaspberryPiBoard#Hardware_Details
>>
>> The first charge will be 10,000 pieces, so there's a fair chance that
>> one can actually buy a board.
>>
>> If someone is willing to port FreeBSD to the Raspberry, I'd try to get
>> one of the boards and send it to the porter.
>>
>> Cheers
>> Lars
>
> I am planning to attempt a port, however I'm very new to kernel
> development/FreeBSD and would not feel right about accepting hardware for a
> project I'm not sure I have the skills to finish.
>
> To that end I'll be buying boards on release date, but would be interested
> in working with anyone else who is attempting it.
>
You certainly want to get in touch with g...@freebsd.org and
cog...@freebsd.org, as well as getting familiar with the code in
`sys/arm/', especially the one in the `projects/armv6' branch in the
p4 repository and the various TRM you could find on the ARM11 core
from ARM Ltd.

gber@, cognet@, what is the status of the code in the p4 repository ?

 - Arnaud
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Aleksandr Rybalko
On Thu, 3 Nov 2011 11:12:35 -0400
Arnaud Lacombe  wrote:

> Hi,
> 
> On Thu, Nov 3, 2011 at 9:58 AM, Aleksandr Rybalko 
> wrote:
> > On Thu, 3 Nov 2011 10:22:22 +0100
> > Lars Engels  wrote:
> >
> >>> Hi Hackers,
> >>>
> >>> maybe you've heard of the upcoming Raspberry Pi, a credit card
> >>> sized ARM computer which is about to get sold for 25$ - 35$ from
> >>> december on.
> >>>
> >>> http://www.raspberrypi.org/archives/302
> >>>
> >>> Hardware details:
> >>> http://elinux.org/RaspberryPiBoard#Hardware_Details
> >>>
> >>> The first charge will be 10,000 pieces, so there's a fair chance
> >>> that one can actually buy a board.
> >>>
> >>> If someone is willing to port FreeBSD to the Raspberry, I'd try to
> >>> get one of the boards and send it to the porter.
> >>>
> >>> Cheers
> >>> Lars
> >
> > Hi Lars,
> >
> > I seen info about Raspberry Pi, this is very nice hardware.
> >
> Are you kidding ?

Every time when i see "Mail From: Arnaud Lacombe" i have bad feeling,
I'm alone with that feeling?

Sorry Arnaud, now I really kidding. :) 
Please, stop broadcast demotivation for peoples to not do
something. This is your opinion, and we respect your opinion. But as
many hackers already said: hackers don't doing something what is modern
or required by market, hackers doing things that they like.
 
> 
> ARM11 is a 10 year old core, not much to be really proud with. The
> only interesting thing about the Pi is its price tag, but as you point
> out, if we don't have datasheets upfront, it's not going to be much
> than a $25 paper-weight.

i486 CPU - released 22 years ago, but many peoples found Soekris as very
useful device.
MIPS R24K - 8 years old, but it widely used in SOHO embedded systems.

> 
> Btw, do FreeBSD provide any KPI for hardware video "accelerator" ?
> AFAIK, we do not even have such framework for crypto accelerator, so I
> serious doubt there is any for video :/

We have some limitations to not implement that?

> 
>  - Arnaud
> 
> > It will be
> > fun to port FreeBSD on it, since I already have experience with
> > Broadcom SoC's. But device have undocumented parts, so writing
> > driver for it maybe impossible or very hard (through a lot of RE).
> >
> > Anyway, it would be nice to play with it.
> >
> > WBW
> > --
> > Aleksandr Rybalko 
> > ___
> > freebsd-hackers@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to
> > "freebsd-hackers-unsubscr...@freebsd.org"
> >
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to
> "freebsd-hackers-unsubscr...@freebsd.org"

WBW
-- 
Aleksandr Rybalko 
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: sleep/select call in a thread doesn't return if system date is changed

2011-11-03 Thread Doug Barton
On 11/02/2011 22:07, Deepak Gupta wrote:
>  6.3 release

... is well past EOL. You'd want to run your tests with something more
recent ... ideally with 9.0-RC1, or at minimum 8-stable.


-- 

"We could put the whole Internet into a book."
"Too practical."

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Bryan R. Hinton
I would be interested in helping out with this.

Bryan


On Nov 3, 2011, at 10:20 AM, Nate Dobbs wrote:

> 10 year old core or not, the ARM is the worlds most widely used processor;
> Unix is 43 years old does this make the Operating System obsolete?
> 
> On Thu, Nov 3, 2011 at 11:12 AM, Arnaud Lacombe  wrote:
> 
>> Hi,
>> 
>> On Thu, Nov 3, 2011 at 9:58 AM, Aleksandr Rybalko  wrote:
>>> On Thu, 3 Nov 2011 10:22:22 +0100
>>> Lars Engels  wrote:
>>> 
> Hi Hackers,
> 
> maybe you've heard of the upcoming Raspberry Pi, a credit card sized
> ARM computer which is about to get sold for 25$ - 35$ from december
> on.
> 
> http://www.raspberrypi.org/archives/302
> 
> Hardware details: http://elinux.org/RaspberryPiBoard#Hardware_Details
> 
> The first charge will be 10,000 pieces, so there's a fair chance that
> one can actually buy a board.
> 
> If someone is willing to port FreeBSD to the Raspberry, I'd try to
> get one of the boards and send it to the porter.
> 
> Cheers
> Lars
>>> 
>>> Hi Lars,
>>> 
>>> I seen info about Raspberry Pi, this is very nice hardware.
>>> 
>> Are you kidding ?
>> 
>> ARM11 is a 10 year old core, not much to be really proud with. The
>> only interesting thing about the Pi is its price tag, but as you point
>> out, if we don't have datasheets upfront, it's not going to be much
>> than a $25 paper-weight.
>> 
>> Btw, do FreeBSD provide any KPI for hardware video "accelerator" ?
>> AFAIK, we do not even have such framework for crypto accelerator, so I
>> serious doubt there is any for video :/
>> 
>> - Arnaud
>> 
>>> It will be
>>> fun to port FreeBSD on it, since I already have experience with
>>> Broadcom SoC's. But device have undocumented parts, so writing driver
>>> for it maybe impossible or very hard (through a lot of RE).
>>> 
>>> Anyway, it would be nice to play with it.
>>> 
>>> WBW
>>> --
>>> Aleksandr Rybalko 
>>> ___
>>> freebsd-hackers@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>>> To unsubscribe, send any mail to "
>> freebsd-hackers-unsubscr...@freebsd.org"
>>> 
>> ___
>> freebsd-hackers@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
>> 
> 
> 
> 
> -- 
> Cheers,
> 
> Nate Dobbs RHCE
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"



Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Nate Dobbs
10 year old core or not, the ARM is the worlds most widely used processor;
Unix is 43 years old does this make the Operating System obsolete?

On Thu, Nov 3, 2011 at 11:12 AM, Arnaud Lacombe  wrote:

> Hi,
>
> On Thu, Nov 3, 2011 at 9:58 AM, Aleksandr Rybalko  wrote:
> > On Thu, 3 Nov 2011 10:22:22 +0100
> > Lars Engels  wrote:
> >
> >>> Hi Hackers,
> >>>
> >>> maybe you've heard of the upcoming Raspberry Pi, a credit card sized
> >>> ARM computer which is about to get sold for 25$ - 35$ from december
> >>> on.
> >>>
> >>> http://www.raspberrypi.org/archives/302
> >>>
> >>> Hardware details: http://elinux.org/RaspberryPiBoard#Hardware_Details
> >>>
> >>> The first charge will be 10,000 pieces, so there's a fair chance that
> >>> one can actually buy a board.
> >>>
> >>> If someone is willing to port FreeBSD to the Raspberry, I'd try to
> >>> get one of the boards and send it to the porter.
> >>>
> >>> Cheers
> >>> Lars
> >
> > Hi Lars,
> >
> > I seen info about Raspberry Pi, this is very nice hardware.
> >
> Are you kidding ?
>
> ARM11 is a 10 year old core, not much to be really proud with. The
> only interesting thing about the Pi is its price tag, but as you point
> out, if we don't have datasheets upfront, it's not going to be much
> than a $25 paper-weight.
>
> Btw, do FreeBSD provide any KPI for hardware video "accelerator" ?
> AFAIK, we do not even have such framework for crypto accelerator, so I
> serious doubt there is any for video :/
>
>  - Arnaud
>
> > It will be
> > fun to port FreeBSD on it, since I already have experience with
> > Broadcom SoC's. But device have undocumented parts, so writing driver
> > for it maybe impossible or very hard (through a lot of RE).
> >
> > Anyway, it would be nice to play with it.
> >
> > WBW
> > --
> > Aleksandr Rybalko 
> > ___
> > freebsd-hackers@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to "
> freebsd-hackers-unsubscr...@freebsd.org"
> >
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
>



-- 
Cheers,

Nate Dobbs RHCE
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Arnaud Lacombe
Hi,

[Please do not top-post.]

On Thu, Nov 3, 2011 at 11:20 AM, Nate Dobbs  wrote:
> 10 year old core or not, the ARM is the worlds most widely used processor;
>
Please read what I said correctly, I said "this ARM11 is obsolete"
(even if still used, for sure) and "FreeBSD lacks critical KPI".

Concerning the first point; you want a nice ARM core ? take the
PandaBoard, CortexA9, dual-core, DDR2. However, porting FreeBSD on
this chip will be way more difficult, and nobody will do the work is
the next year or two (my guess).

Concerning the second point, Unix may be 43 years old, you surely do
not want to run 4.3BSD on the latest NUMA system, and expect optimum
platform usage. Someone has to make the damn code do the job. Even as
of FreeBSD 9.0, we won't even have complete NUMA support. I'm taking
here about a *mainstream* system architecture, not even a deeply
embedded and integrated system.

 - Arnaud

> On Thu, Nov 3, 2011 at 11:12 AM, Arnaud Lacombe  wrote:
>>
>> Hi,
>>
>> On Thu, Nov 3, 2011 at 9:58 AM, Aleksandr Rybalko  wrote:
>> > On Thu, 3 Nov 2011 10:22:22 +0100
>> > Lars Engels  wrote:
>> >
>> >>> Hi Hackers,
>> >>>
>> >>> maybe you've heard of the upcoming Raspberry Pi, a credit card sized
>> >>> ARM computer which is about to get sold for 25$ - 35$ from december
>> >>> on.
>> >>>
>> >>> http://www.raspberrypi.org/archives/302
>> >>>
>> >>> Hardware details: http://elinux.org/RaspberryPiBoard#Hardware_Details
>> >>>
>> >>> The first charge will be 10,000 pieces, so there's a fair chance that
>> >>> one can actually buy a board.
>> >>>
>> >>> If someone is willing to port FreeBSD to the Raspberry, I'd try to
>> >>> get one of the boards and send it to the porter.
>> >>>
>> >>> Cheers
>> >>> Lars
>> >
>> > Hi Lars,
>> >
>> > I seen info about Raspberry Pi, this is very nice hardware.
>> >
>> Are you kidding ?
>>
>> ARM11 is a 10 year old core, not much to be really proud with. The
>> only interesting thing about the Pi is its price tag, but as you point
>> out, if we don't have datasheets upfront, it's not going to be much
>> than a $25 paper-weight.
>>
>> Btw, do FreeBSD provide any KPI for hardware video "accelerator" ?
>> AFAIK, we do not even have such framework for crypto accelerator, so I
>> serious doubt there is any for video :/
>>
>>  - Arnaud
>>
>> > It will be
>> > fun to port FreeBSD on it, since I already have experience with
>> > Broadcom SoC's. But device have undocumented parts, so writing driver
>> > for it maybe impossible or very hard (through a lot of RE).
>> >
>> > Anyway, it would be nice to play with it.
>> >
>> > WBW
>> > --
>> > Aleksandr Rybalko 
>> > ___
>> > freebsd-hackers@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> > To unsubscribe, send any mail to
>> > "freebsd-hackers-unsubscr...@freebsd.org"
>> >
>> ___
>> freebsd-hackers@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
>
>
>
> --
> Cheers,
>
> Nate Dobbs RHCE
>
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: What is going on with ash / sh

2011-11-03 Thread Mark Saad
On Wed, Nov 2, 2011 at 4:37 PM, Garrett Cooper  wrote:
> On Wed, Nov 2, 2011 at 1:28 PM, Mark Saad  wrote:
>> Hackers
>>  What is going on here, if I run the following shell script, what is
>> the expected output . The script is named xxx
>>
>> #!/bin/sh
>> ps -ax | grep -v grep | grep xxx
>>
>> Here is what I see
>>
>>
>>  # sh xxx
>> 88318  p0  S+     0:00.00 sh xxx
>> 88320  p0  R+     0:00.00 sh xxx
>> 88321  p0  R+     0:00.00 sh xxx
>
>    No idea. jobs isn't a shell builtin so you can't verify what jobs
> are currently running via the shell if there are any. What version of
> FreeBSD are you using and what do your $ENV and .profile files look
> like?
> Thanks,
> -Garrett
>
I ran this test on 7.3-RELEASE and 8.2-RELEASE and I do not have
anything weird in my .profiles or env. This is on a fresh install of
each os.




-- 
mark saad | nones...@longcount.org
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: What is going on with ash / sh

2011-11-03 Thread Mark Saad
On Wed, Nov 2, 2011 at 4:35 PM, Doug Barton  wrote:
> On 11/02/2011 13:28, Mark Saad wrote:
>> Hackers
>>  What is going on here, if I run the following shell script, what is
>> the expected output . The script is named xxx
>>
>> #!/bin/sh
>> ps -ax | grep -v grep | grep xxx
>>
>> Here is what I see
>>
>>
>>  # sh xxx
>> 88318  p0  S+     0:00.00 sh xxx
>> 88320  p0  R+     0:00.00 sh xxx
>> 88321  p0  R+     0:00.00 sh xxx
>>
>>
>> Can someone explain this ?
>
> I only see one. What happens if you run this on the command line?
>
>
if you run it from the command line you only see on process.

>
> --
>
>                "We could put the whole Internet into a book."
>                "Too practical."
>
>        Breadth of IT experience, and depth of knowledge in the DNS.
>        Yours for the right price.  :)  http://SupersetSolutions.com/
>
>



-- 
mark saad | nones...@longcount.org
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Arnaud Lacombe
Hi,

On Thu, Nov 3, 2011 at 9:58 AM, Aleksandr Rybalko  wrote:
> On Thu, 3 Nov 2011 10:22:22 +0100
> Lars Engels  wrote:
>
>>> Hi Hackers,
>>>
>>> maybe you've heard of the upcoming Raspberry Pi, a credit card sized
>>> ARM computer which is about to get sold for 25$ - 35$ from december
>>> on.
>>>
>>> http://www.raspberrypi.org/archives/302
>>>
>>> Hardware details: http://elinux.org/RaspberryPiBoard#Hardware_Details
>>>
>>> The first charge will be 10,000 pieces, so there's a fair chance that
>>> one can actually buy a board.
>>>
>>> If someone is willing to port FreeBSD to the Raspberry, I'd try to
>>> get one of the boards and send it to the porter.
>>>
>>> Cheers
>>> Lars
>
> Hi Lars,
>
> I seen info about Raspberry Pi, this is very nice hardware.
>
Are you kidding ?

ARM11 is a 10 year old core, not much to be really proud with. The
only interesting thing about the Pi is its price tag, but as you point
out, if we don't have datasheets upfront, it's not going to be much
than a $25 paper-weight.

Btw, do FreeBSD provide any KPI for hardware video "accelerator" ?
AFAIK, we do not even have such framework for crypto accelerator, so I
serious doubt there is any for video :/

 - Arnaud

> It will be
> fun to port FreeBSD on it, since I already have experience with
> Broadcom SoC's. But device have undocumented parts, so writing driver
> for it maybe impossible or very hard (through a lot of RE).
>
> Anyway, it would be nice to play with it.
>
> WBW
> --
> Aleksandr Rybalko 
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
>
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Aleksandr Rybalko
On Thu, 3 Nov 2011 10:22:22 +0100
Lars Engels  wrote:

>> Hi Hackers,
>> 
>> maybe you've heard of the upcoming Raspberry Pi, a credit card sized
>> ARM computer which is about to get sold for 25$ - 35$ from december
>> on.
>> 
>> http://www.raspberrypi.org/archives/302
>> 
>> Hardware details: http://elinux.org/RaspberryPiBoard#Hardware_Details
>> 
>> The first charge will be 10,000 pieces, so there's a fair chance that
>> one can actually buy a board.
>> 
>> If someone is willing to port FreeBSD to the Raspberry, I'd try to
>> get one of the boards and send it to the porter.
>> 
>> Cheers
>> Lars

Hi Lars,

I seen info about Raspberry Pi, this is very nice hardware. It will be
fun to port FreeBSD on it, since I already have experience with
Broadcom SoC's. But device have undocumented parts, so writing driver
for it maybe impossible or very hard (through a lot of RE).

Anyway, it would be nice to play with it.

WBW
-- 
Aleksandr Rybalko 
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Porting FreeBSD to Raspberry Pi

2011-11-03 Thread richo

On 03/11/11 10:22 +0100, Lars Engels wrote:

Hi Hackers,

maybe you've heard of the upcoming Raspberry Pi, a credit card sized ARM
computer which is about to get sold for 25$ - 35$ from december on.

http://www.raspberrypi.org/archives/302

Hardware details: http://elinux.org/RaspberryPiBoard#Hardware_Details

The first charge will be 10,000 pieces, so there's a fair chance that
one can actually buy a board.

If someone is willing to port FreeBSD to the Raspberry, I'd try to get
one of the boards and send it to the porter.

Cheers
Lars


I am planning to attempt a port, however I'm very new to kernel
development/FreeBSD and would not feel right about accepting hardware for a
project I'm not sure I have the skills to finish.

To that end I'll be buying boards on release date, but would be interested in
working with anyone else who is attempting it.

cheers

richo


--
richo || Today's excuse:

static from plastic slide rules


signature.asc
Description: Digital signature


Porting FreeBSD to Raspberry Pi

2011-11-03 Thread Lars Engels
Hi Hackers,

maybe you've heard of the upcoming Raspberry Pi, a credit card sized ARM
computer which is about to get sold for 25$ - 35$ from december on.

http://www.raspberrypi.org/archives/302

Hardware details: http://elinux.org/RaspberryPiBoard#Hardware_Details

The first charge will be 10,000 pieces, so there's a fair chance that
one can actually buy a board.

If someone is willing to port FreeBSD to the Raspberry, I'd try to get
one of the boards and send it to the porter.

Cheers
Lars


pgp0yoirj9Zr4.pgp
Description: PGP signature


RE: sleep/select call in a thread doesn't return if system date is changed

2011-11-03 Thread Deepak Gupta


From: Deepak Gupta
Sent: Thursday, November 03, 2011 10:37 AM
To: 'freebsd-hackers@freebsd.org.'
Subject: sleep/select call in a thread doesn't return if system date is changed

I have already checked these two very old messages from 2005 archive

http://lists.freebsd.org/pipermail/freebsd-hackers/2005-February/010498.html
http://lists.freebsd.org/pipermail/freebsd-hackers/2005-February/010482.html

but I'm surprised to see the same behavior still after 6 years in 6.3 release. 
Has anybody else also faced this anomaly?

Following is output of "uname -a" on my system
"FreeBSD Freebsd_31.203 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed 
Jan 16 01:43:02 UTC 2008 
r...@palmer.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP
  amd64"

Following is the source code I'm testing:

#include 
#include 
#include 

void *task(void *argument)
{
struct timeval tv;
tv.tv_sec  = 4;
tv.tv_usec = 0;
int rc;

while(1)
{
tv.tv_sec  = 5;
tv.tv_usec = 0;
printf("sleeping for 5 secs\n");
rc = select(0, NULL, NULL, NULL, &tv);
printf("Woke up after 5 sec\n");
}
}

int main(void)
{
   pthread_t thread;
   int rc;

   rc = pthread_create(&thread, NULL, task, (void *) NULL);

   rc = pthread_join(thread, NULL);
}

Upon execution the program keeps printing "sleeping for 5 secs" followed by 
"Woke up after 5 sec". As soon as I set the system date to a back date, even if 
few hours back, the loop sticks at "sleeping for 5 secs" forever unless I 
resume the system date. When I resume the system date to current date the 
program also resumes to normal execution!!!

I'm sure that FreeBSD will still not be living with such a big anomaly and 
there is something amiss in my program itself. Please help me to figure out 
whats wrong in this.

Thanks
Deepak
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"