Re: mmap errors related to using encfs

2019-04-12 Thread Mayuresh
On Sat, Apr 13, 2019 at 09:24:17AM +0530, Mayuresh wrote:
> encfs: perfuse_open: setsockopt SO_SNDBUF to 2162688 failed: No buffer space 
> available

Env var, something like, PERFUSE_BUFSIZE=131072 solves above error.
(Larger than that doesn't work. May be some sysctl setting would make it
work.)

However now I get input/output error on the mounted encfs.

E.g.

# ls
ls: .: Input/output error

Usually first time after mounting, ls works, 2nd command onwards it stops
working.

Mayuresh


Re: mmap errors related to using encfs

2019-04-12 Thread Mayuresh
On Sat, Apr 13, 2019 at 12:31:26AM +0530, Mayuresh wrote:
> Is it possible that the issue / limitation is with librefuse? (And in that
> case shall we be trying using filesystems/fuse?

Just giving it a try. Was able to build filesystems/fuse-encfs against
filesystems/fuse.

# ldd /usr/pkg/bin/encfs
/usr/pkg/bin/encfs:
-lfuse.2 => /usr/pkg/lib/libfuse.so.2
-lperfuse.0 => /usr/lib/libperfuse.so.0
-lpuffs.2 => /usr/lib/libpuffs.so.2
-lc.12 => /usr/lib/libc.so.12
-lpthread.1 => /usr/lib/libpthread.so.1
-lssl.12 => /usr/lib/libssl.so.12
-lcrypto.12 => /usr/lib/libcrypto.so.12
-lcrypt.1 => /lib/libcrypt.so.1
-lintl.1 => /usr/lib/libintl.so.1
-lstdc++.8 => /usr/lib/libstdc++.so.8
-lm.0 => /usr/lib/libm.so.0
-lgcc_s.1 => /usr/lib/libgcc_s.so.1


When I run it I get these errors:

encfs: perfuse_open: setsockopt SO_SNDBUF to 2162688 failed: No buffer space 
available
encfs: perfuse_open: setsockopt SO_RCVBUF to 2162688 failed: No buffer space 
available
encfs: perfuse_open: setsockopt SO_SNDBUF to 2162688 failed: No buffer space 
available
encfs: perfuse_open: setsockopt SO_RCVBUF to 2162688 failed: No buffer space 
available
encfs: perfuse_open: setsockopt SO_SNDBUF to 2162688 failed: No buffer space 
available
encfs: perfuse_open: setsockopt SO_RCVBUF to 2162688 failed: No buffer space 
available

Will investigate by looking at code, but I have no other background.
Sharing so that I get help/inputs as well.

Mayuresh


Re: Scanner experiences

2019-04-12 Thread Greg Troxel
Bob Bernstein  writes:

> Apr 12 15:59:01 nebby /netbsd: [ 90497.9861323] ugen0 at uhub0 port 7
> Apr 12 15:59:01 nebby /netbsd: [ 90497.9861323] ugen0: EPSON (0x4b8)
> EPSON Scanner (0x122), rev 2.00/1.10, addr 4
>
> I found this site: https://wiki.netbsd.org/scanner/ and followed the
> link 'SANE:Supported Devices' to this page:
>
> http://www.sane-project.org/sane-mfgs.html#Z-EPSON
>
> ...where the following typifies the entries that match 0x122:
>
> GT-F570 USB 0x04b8/0x0122 Unsupported supported by the
>epkowa backend plus non-free interpreter epson2
>
> At this point the wiki page gives instructions for configuring and
> re-making the kernel. Two concerns give me pause:

You can always upgrade to more recent current if you really need to
build a kernel.

But, I expect this to really work, if it can work, via libusb on ugen,
rather than a kernel scanner driver.


Scanner experiences

2019-04-12 Thread Bob Bernstein
My Epson scanner has quite a few years on it but it never so much
as hiccuped throughout those years while connected to Windows. The
Windows is now gone. I am running:

% uname -a
NetBSD nebby.localdomain 8.99.35 NetBSD 8.99.35 (GENERIC) #0: Fri Mar
15 22:09:21 UTC 2019
mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

Plugging the scanner's USB cable into the box yields this
in /var/log/messages:

Apr 12 15:59:01 nebby /netbsd: [ 90497.9861323] ugen0 at uhub0 port 7
Apr 12 15:59:01 nebby /netbsd: [ 90497.9861323] ugen0: EPSON (0x4b8)
EPSON Scanner (0x122), rev 2.00/1.10, addr 4

I found this site: https://wiki.netbsd.org/scanner/ and followed the
link 'SANE:Supported Devices' to this page:

http://www.sane-project.org/sane-mfgs.html#Z-EPSON

...where the following typifies the entries that match 0x122:

GT-F570 USB 0x04b8/0x0122 Unsupported supported by the
   epkowa backend plus non-free interpreter epson2

At this point the wiki page gives instructions for configuring and
re-making the kernel. Two concerns give me pause:

1. I don't have kernel source for 8.99.35

2. The wiki page bears this legend: "Last edited mid-morning Monday,
June 20th, 2011"

I can countenance upgrading to a more contemporary instance of
-current (and grabbing kernel source!), but I wonder if the state of the
SANE drivers, libs, and so on are now such that the kernel hacking
might not be needed, not at least at this early stage of the project. 

Just trying to plan my next move!

Thanks all,



Re: mmap errors related to using encfs

2019-04-12 Thread Mayuresh
On Fri, Apr 12, 2019 at 12:14:08PM -0400, Greg Troxel wrote:
> The following hints may seem obvious, but because you didn't report on
> your investigations into the source code of encfs and git, I'll send
> them anyway :-)

Thanks. These are useful.

In encfs I did not yet find any clue, but it might be alright for it to
not support mmap, as you suggest.

I'll try it out on Linux to see what happens.

In git code I have not found it backtracking if mmap fails, but I do not
know whether that's a conscious choice or not.

I'll log a bug upstream.

BTW it limits utility of encfs for me, as the issue is not just git. I was
planning to use encfs for various kinds of files, applications of some of
which might run into mmap issue.

Mayuresh


mmap errors related to using encfs

2019-04-12 Thread Mayuresh
Trying out filesystems/fuse-encfs on NetBSD 8.0 amd64.

# mount | grep puff
/dev/puffs on /mnt/foo type puffs|refuse:encfs (nodev, nosuid)

# cd /mnt/foo/

# git init --bare
error: unable to mmap '/mnt/foo/config': Operation not supported
fatal: could not set 'core.filemode' to 'true'

This problem occurs with encfs mounted directory only. From the error
message it does not look like a git problem, rather some interaction
between mmap and encfs.

Would be interesting to know what's happening and is it possible to deal
with this error.

Mayuresh



Re: concurrencykit in the kernel!

2019-04-12 Thread matthew sporleder
On Fri, Apr 12, 2019 at 8:05 AM Mayuresh Kathe  wrote:
>
> heard about freebsd guys using the concurrency kit (concurrencykit.org)
> in their kernel. anyone has any idea about how it could be useful from
> a netbsd perspective too? i was under the impression that the kit would
> be useful only for userland projects, wonder what role it would play at
> the kernel level.

Hey I added that pkg!  I think anywhere we have similar algorithms it
would be useful to, at least, compare the concurrencykit
implementation if not use it.

I'm sure the kernel and userland both do tons of this stuff:
http://concurrencykit.org/man.html


concurrencykit in the kernel!

2019-04-12 Thread Mayuresh Kathe
heard about freebsd guys using the concurrency kit (concurrencykit.org)
in their kernel. anyone has any idea about how it could be useful from
a netbsd perspective too? i was under the impression that the kit would
be useful only for userland projects, wonder what role it would play at
the kernel level.


Re: how to use netbsd with ubuntu?

2019-04-12 Thread Mayuresh Kathe
running a netbsd vm on a google compute engine is a nice idea, but
that makes me dependent on the network, something which cannot be
trusted to not fail.

> From bsieg...@gmail.com Fri Apr 12 09:05:51 2019
> From: Benny Siegert 
> Subject: Re: how to use netbsd with ubuntu?
> To: Mayuresh Kathe 
> Cc: NetBSD Users 
>
> Another option would be to run Ubuntu as a Xen Dom0 and run NetBSD in
> a DomU, which is well-supported. Myself, I use the lazy solution,
> which is a NetBSD VM on Google Compute Engine that I spin up when
> needed.
>
> On Fri, Apr 12, 2019 at 9:33 AM Mayuresh Kathe  wrote:
> >
> > as in a previous email, i need to use ubuntu as my primary desktop.
> > i researched various options via googling around as well as asking
> > this mailing list and it looks like the best thing would be to run
> > netbsd in a virtual environment. for the same, would "qemu" be
> > considered good enough? if it is, should i upgrade my system memory
> > from 4gib to 8gib? i have a 1tib hard disk, would running with a
> > 256gib 'ssd' instead pose any unforeseen problems? thanks.
>
>
>
> -- 
> Benny
>


Re: how to use netbsd with ubuntu?

2019-04-12 Thread Pedro Pinho
What exactly runs on Chrome that doesn't run on Firefox?

Haven't tried exactly this, but I did run a minimal Ubuntu install with
Firefox on my Voidlinux musl-libC using qemu with kvm-enable. Used this vm
to stream DRM protected content, which otherwise does not run on musl.

Waiting for NetBSD-9.0 and nvmm to try the reverse of what you're
attempting.

Good luck.

Den fre 12 apr. 2019 12:29Benny Siegert  skrev:

> On Fri, Apr 12, 2019 at 12:04 PM Stephen Borrill
>  wrote:
> > How is X support with a NetBSD dom0 nowadays?
>
> X works fine but Dom0 is limited to a single core.
>
> --
> Benny
>


Re: how to use netbsd with ubuntu?

2019-04-12 Thread Niels Dettenbach
Am Freitag, 12. April 2019, 12:29:21 CEST schrieb Benny Siegert:
> X works fine but Dom0 is limited to a single core.
Ok, this is new to me.

But this limit not affects a Linux Dom0. Running the "work" netBSD in a 
dedicated (fast PV) DomU with (the) VGA is possibly an option to. The Dom0 is 
"only" providing "hardware access / sharing" then. But would be bit 
fiddely...ß)

-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 








Re: how to use netbsd with ubuntu?

2019-04-12 Thread Niels Dettenbach
Am Freitag, 12. April 2019, 12:03:41 CEST schrieb Stephen Borrill:
> How is X support with a NetBSD dom0 nowadays?
I did not used X on NetBSD Dom0 byself (but on Linux few years ago - until 
the proprietary NVidia driver of my book att collided with Xen that days). 

> X works fine but Dom0 is limited to a single core.
If i remember correctly, one further option should be to run your "main/work" 
NetBSD as a (further) (PV) DomU to with PCI Passtrough or similiar to provide 
the graphics card natively to - but it's a bit tricky to run/setup afaik as 
the display is domU then.

"Xen VGA Passthrough"
https://wiki.xenproject.org/wiki/Xen_VGA_Passthrough

"Setting Up A Xen Graphics Card Pass-Through"
https://www.phoronix.com/scan.php?page=news_item=MTA3NjA

> If it works, the with judicious use of, say, ssh -X/-Y you could make
> it seemless to run chrome from a VM and use NetBSD as the X server.
i think / would try so. The DomU does not require graphic card for this 
(headless) which is even easier to run as a (fast/slight) PV DomU.


hth a bit,

niels.


-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 








Re: how to use netbsd with ubuntu?

2019-04-12 Thread Benny Siegert
On Fri, Apr 12, 2019 at 12:04 PM Stephen Borrill
 wrote:
> How is X support with a NetBSD dom0 nowadays?

X works fine but Dom0 is limited to a single core.

-- 
Benny


Re: how to use netbsd with ubuntu?

2019-04-12 Thread Stephen Borrill

On Fri, 12 Apr 2019, Niels Dettenbach wrote:

Am Freitag, 12. April 2019, 10:02:54 CEST schrieb Abhinav Upadhyay:

Things might have improved with qemu, I haven't tried it recently.

Xen is another option to Run Linux "under" NetBSD. Ubuntu as PV (or the newer
PVM) Guest could be more efficient then VirtualBox - but bit bit more difficult
to setup if you need GL in the guest...

Running Xen with Ubuntu as Dom0 ("Host") instead and NetBSD as a PV (or PVM)
DomU ("Guest") is an option too. Depending from hardware PV or PVM should be
the "fastest" option.

If you just want Ubuntu to surf a few websites (without any 3D hardware accel
and such stuff required) Ubuntu as PV or PVM DomU should be light and "slight"
enough.


How is X support with a NetBSD dom0 nowadays?

If it works, the with judicious use of, say, ssh -X/-Y you could make 
it seemless to run chrome from a VM and use NetBSD as the X server.


--
Stephen



Re: how to use netbsd with ubuntu?

2019-04-12 Thread Niels Dettenbach
Am Freitag, 12. April 2019, 10:02:54 CEST schrieb Abhinav Upadhyay:
> Things might have improved with qemu, I haven't tried it recently.
Xen is another option to Run Linux "under" NetBSD. Ubuntu as PV (or the newer 
PVM) Guest could be more efficient then VirtualBox - but bit bit more difficult 
to setup if you need GL in the guest...

Running Xen with Ubuntu as Dom0 ("Host") instead and NetBSD as a PV (or PVM) 
DomU ("Guest") is an option too. Depending from hardware PV or PVM should be 
the "fastest" option.

If you just want Ubuntu to surf a few websites (without any 3D hardware accel 
and such stuff required) Ubuntu as PV or PVM DomU should be light and "slight" 
enough.


jm .02$
 

niels.

-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 








Re: how to use netbsd with ubuntu?

2019-04-12 Thread Benny Siegert
Another option would be to run Ubuntu as a Xen Dom0 and run NetBSD in
a DomU, which is well-supported. Myself, I use the lazy solution,
which is a NetBSD VM on Google Compute Engine that I spin up when
needed.

On Fri, Apr 12, 2019 at 9:33 AM Mayuresh Kathe  wrote:
>
> as in a previous email, i need to use ubuntu as my primary desktop.
> i researched various options via googling around as well as asking
> this mailing list and it looks like the best thing would be to run
> netbsd in a virtual environment. for the same, would "qemu" be
> considered good enough? if it is, should i upgrade my system memory
> from 4gib to 8gib? i have a 1tib hard disk, would running with a
> 256gib 'ssd' instead pose any unforeseen problems? thanks.



-- 
Benny


Re: how to use netbsd with ubuntu?

2019-04-12 Thread Abhinav Upadhyay
On Fri, Apr 12, 2019 at 1:20 PM Mayuresh Kathe  wrote:
>
> > From er.abhinav.upadh...@gmail.com Fri Apr 12 07:45:24 2019
> > From: Abhinav Upadhyay 
> > Subject: Re: how to use netbsd with ubuntu?
> > To: Mayuresh Kathe 
> > Cc: NetBSD Users Mailing List 
> >
> > On Fri, Apr 12, 2019 at 1:03 PM Mayuresh Kathe  wrote:
> > >
> > > as in a previous email, i need to use ubuntu as my primary desktop.
> > > i researched various options via googling around as well as asking
> > > this mailing list and it looks like the best thing would be to run
> > > netbsd in a virtual environment. for the same, would "qemu" be
> > > considered good enough? if it is, should i upgrade my system memory
> > > from 4gib to 8gib? i have a 1tib hard disk, would running with a
> > > 256gib 'ssd' instead pose any unforeseen problems? thanks.
> >
> > What do you mean by running with Ubuntu, Is dual boot an option? If
> > virtualization is the only option, I prefer VirtualBox over qemu when
> > running NetBSD inside a VM.

In the past I used to run NetBSD inside qemu on a Linux host (this was
6-7 years back). It used to be very slow for certain things, .e.g disk
operations. VirtualBox has always been pretty good.
Things might have improved with qemu, I haven't tried it recently.

-
Abhinav


Re: how to use netbsd with ubuntu?

2019-04-12 Thread Mayuresh Kathe
> From er.abhinav.upadh...@gmail.com Fri Apr 12 07:45:24 2019
> From: Abhinav Upadhyay 
> Subject: Re: how to use netbsd with ubuntu?
> To: Mayuresh Kathe 
> Cc: NetBSD Users Mailing List 
>
> On Fri, Apr 12, 2019 at 1:03 PM Mayuresh Kathe  wrote:
> >
> > as in a previous email, i need to use ubuntu as my primary desktop.
> > i researched various options via googling around as well as asking
> > this mailing list and it looks like the best thing would be to run
> > netbsd in a virtual environment. for the same, would "qemu" be
> > considered good enough? if it is, should i upgrade my system memory
> > from 4gib to 8gib? i have a 1tib hard disk, would running with a
> > 256gib 'ssd' instead pose any unforeseen problems? thanks.
>
> What do you mean by running with Ubuntu, Is dual boot an option? If
> virtualization is the only option, I prefer VirtualBox over qemu when
> running NetBSD inside a VM.
>
> -
> Abhinav
>

no, dual boot is not an option, i need ubuntu for chrome to surf the
web, especially for a few websites which prefer chrome over chromium.
may i know your rationale for leaning towards virtualbox over qemu?


Re: how to use netbsd with ubuntu?

2019-04-12 Thread Abhinav Upadhyay
On Fri, Apr 12, 2019 at 1:03 PM Mayuresh Kathe  wrote:
>
> as in a previous email, i need to use ubuntu as my primary desktop.
> i researched various options via googling around as well as asking
> this mailing list and it looks like the best thing would be to run
> netbsd in a virtual environment. for the same, would "qemu" be
> considered good enough? if it is, should i upgrade my system memory
> from 4gib to 8gib? i have a 1tib hard disk, would running with a
> 256gib 'ssd' instead pose any unforeseen problems? thanks.

What do you mean by running with Ubuntu, Is dual boot an option? If
virtualization is the only option, I prefer VirtualBox over qemu when
running NetBSD inside a VM.

-
Abhinav


how to use netbsd with ubuntu?

2019-04-12 Thread Mayuresh Kathe
as in a previous email, i need to use ubuntu as my primary desktop.
i researched various options via googling around as well as asking
this mailing list and it looks like the best thing would be to run
netbsd in a virtual environment. for the same, would "qemu" be
considered good enough? if it is, should i upgrade my system memory
from 4gib to 8gib? i have a 1tib hard disk, would running with a
256gib 'ssd' instead pose any unforeseen problems? thanks.