Re: Laptop Support?

2014-05-26 Thread bodie

On 26.05.2014 05:02, Nex6|Bill wrote:

I may be changing positions, so may be getting a new laptop. Would
like to request one the has good OpenBSD support. What are some 
models

that are well
supported?

-Nex6


Try to be more specific, but eg. Lenovo has good support and go for
models with some Core i3/i5/i7, integrated Intel VGA (no Optimus with 
Nvidia
if you can't disable Nvidia), with BIOS where you can disable UEFI, 
Intel
WiFI, uvideo webcam and so on. Avoid some really cheap craps with 
Broadcom

WiFis and such.



Re: Get rid of /bsd: arp info overwritten for ?

2014-05-26 Thread bodie

On 22.05.2014 22:35, Mihai Popescu wrote:
Will collect pcap here as well of whole process for interested devs 
in

private replies.


It should be interesting for other people too, especially for the 
ones

reading your long and confuse posts.

Try to present here your setup (configuration files) and what you 
want

to do then try to put some tcpdump logs online.

A few folks asked you for tcpdump logs but you are more interested in
testing the AlienBSD system responses in order to fix OpenBSD !!!

Stop, think and ... describe.



DNS setup in company fixed.
Specific MTU for inw0 and tun0 is needed here for VPN else troubles
with services, fixed (on Mac it's detected automatically)

Now it works as expected on OpenBSD. But thanks to OpenBSD such issues
were detected in the first place.

Once again thanks a lot to all



Re: WebDAV server for nginx?

2014-05-26 Thread Stuart Henderson
On 2014-05-26, Tyler Morgan tyler.mor...@tradetech.net wrote:
 On 5/25/2014 1:48 AM, raul o wrote:
 Hi buddies, can anyone tell me as I implement WebDAV with nginx? Thanks.

 Are you hitting any specific problems that may be OpenBSD-centric? As long as 
 nginx is compiled with --with-http_dav_module (which it isn't by default, so 
 you may have to recompile it), it sounds like it should be a straightforward 
 problem to solve.

Easiest way to do this is add it to the version in ports.

 I've never implemented WebDAV in nginx, but I certainly see at least a dozen 
 tutorials on how to do it by searching for it. Unless OpenBSD is doing 
 something slightly crazy with nginx (like they did with apache), any 
 Linux-based tutorial should be generally fine to follow.

crazy? hmm.



Calgary, this Tuesday

2014-05-26 Thread deraadt
I'm sorry for the late public announcement...

Tomorrow (Tuesday) Bob Beck will be hurtling down the Highway from
Edmonton to Calgary.

Then in the evening, he and I will present at the local calgary unix
group meeting about recent changes in LibreSSL, OpenBSD, and how the
OpenBSD Foundation fits into this.

http://www.cuug.ab.ca/



Ignoring some warning

2014-05-26 Thread sven falempin
Hello,

Some warning may be ignored, and imho should be because they may hide other
more important one:

/usr/local/lib/libevent_core.a(evutil.o)(.text+0x5e1): In function
`_evutil_weakrand':
: warning: random() isn't random; consider using arc4random()

Is it possible to ignore this ?
same question for all the strl*, like strlcpy is great but sometimes
useless.

Cheers.

-- 
-
() ascii ribbon campaign - against html e-mail
/\



Wrong Shutdown

2014-05-26 Thread Walter Souza
Hello guys,

I have a machine with a HardDrive with a slice of 2.7TB, and I have no
UPS.. when sometimes I have power failure, and consequently a wrong
shutdown, The fsck spends much time to recover the filse system, what can I
do? I need to be faster.

Thanks in advance.

-- 
Walter Neto
Analista Desenvolvedor



Re: Ignoring some warning

2014-05-26 Thread Theo de Raadt
 Some warning may be ignored, and imho should be because they may hide other
 more important one:
 
 /usr/local/lib/libevent_core.a(evutil.o)(.text+0x5e1): In function
 `_evutil_weakrand':
 : warning: random() isn't random; consider using arc4random()
 
 Is it possible to ignore this ?

Yeah, you can manually ignore it yourself, much like so many people
ignored the crap inside the OpenSSL code base for decades.

More likely their reason for having that API at all is totally stupid
and from the past, and thus the warning should remain.  Until they
make a sensible decision and improve it.

In a related note, there are random() calls in our ksh and awk code.
The linker warns for them.  They are there due to standards mandated
behaviour.  We've changed the runtime behaviour to avoid this
standards mandated behaviour when possible, but we still have to link
in the bad function, and get the warning.

And that is how it will stay.  We will not add hacks so that people
can take away these warnings.  Your 

 same question for all the strl*, like strlcpy is great but sometimes
 useless.

You are saying people can use strcpy and strcat safely.  Yes.
Children can carry loaded guns safely too.  And nothing ever goes
wrong.



Re: Wrong Shutdown

2014-05-26 Thread Theo de Raadt
 I have a machine with a HardDrive with a slice of 2.7TB, and I have no
 UPS.. when sometimes I have power failure, and consequently a wrong
 shutdown, The fsck spends much time to recover the filse system, what can I
 do? I need to be faster.

Get a UPS.

fsck is required to ensure the directory hierarchy is coherent.



Re: Wrong Shutdown

2014-05-26 Thread Walter Souza
Why OpenBSD has no interest in using journal file system?


On Mon, May 26, 2014 at 10:48 AM, Theo de Raadt dera...@cvs.openbsd.orgwrote:

  I have a machine with a HardDrive with a slice of 2.7TB, and I have no
  UPS.. when sometimes I have power failure, and consequently a wrong
  shutdown, The fsck spends much time to recover the filse system, what
 can I
  do? I need to be faster.

 Get a UPS.

 fsck is required to ensure the directory hierarchy is coherent.




-- 
Walter Neto
Analista Desenvolvedor



Re: Wrong Shutdown

2014-05-26 Thread Theo de Raadt
 Why OpenBSD has no interest in using journal file system?

Because we simply don't have anyone working on it at the moment.
What is so hard to understand about that?

We are a group of volunteers!  We work on what we want to, and as a
group we don't try to overcommit our efforts into specific directions
at the impact towards other directions.

As far as I know, none of the developers are specifically working on
World Peace, either.



Re: Wrong Shutdown

2014-05-26 Thread Gilles Chehade
On Mon, May 26, 2014 at 07:58:00AM -0600, Theo de Raadt wrote:

 [...]
 
 As far as I know, none of the developers are specifically working on
 World Peace, either.
 

That was a work in progress, but it was aborted due to lack of general
interest :-/

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg



Re: Wrong Shutdown

2014-05-26 Thread Kenneth Westerback
On May 26, 2014 9:53 AM, Walter Souza wsouz...@gmail.com wrote:

 Why OpenBSD has no interest in using journal file system?


OpenBSD has great interest in using journal filesystem. Nobody has sent us
the diffs that would add one.

 Ken


 On Mon, May 26, 2014 at 10:48 AM, Theo de Raadt dera...@cvs.openbsd.org
wrote:

   I have a machine with a HardDrive with a slice of 2.7TB, and I have no
   UPS.. when sometimes I have power failure, and consequently a wrong
   shutdown, The fsck spends much time to recover the filse system, what
  can I
   do? I need to be faster.
 
  Get a UPS.
 
  fsck is required to ensure the directory hierarchy is coherent.
 



 --
 Walter Neto
 Analista Desenvolvedor



Re: Wrong Shutdown

2014-05-26 Thread Walter Souza
So do you have interest?

I have interest in help.. I love OpenBSD project and I want to use it in
everything.

And let's work in World Peace too.. :)

On Mon, May 26, 2014 at 10:58 AM, Theo de Raadt dera...@cvs.openbsd.orgwrote:

  Why OpenBSD has no interest in using journal file system?

 Because we simply don't have anyone working on it at the moment.
 What is so hard to understand about that?

 We are a group of volunteers!  We work on what we want to, and as a
 group we don't try to overcommit our efforts into specific directions
 at the impact towards other directions.

 As far as I know, none of the developers are specifically working on
 World Peace, either.




-- 
Walter Neto
Analista Desenvolvedor



Re: Wrong Shutdown

2014-05-26 Thread Theo de Raadt
 So do you have interest?
 
 I have interest in help.. I love OpenBSD project and I want to use it in
 everything.

There is a large gap between how do I make fsck faster without buying
a UPS and I will help give you guys a working journal filesystem.

I don't know you, maybe I am misinterpreting you.

 And let's work in World Peace too.. :)

Your makeup has a smudge, so you don't win.



Re: Ignoring some warning

2014-05-26 Thread sven falempin
On Mon, May 26, 2014 at 9:47 AM, Theo de Raadt dera...@cvs.openbsd.orgwrote:

  Some warning may be ignored, and imho should be because they may hide
 other
  more important one:
 
  /usr/local/lib/libevent_core.a(evutil.o)(.text+0x5e1): In function
  `_evutil_weakrand':
  : warning: random() isn't random; consider using arc4random()
 
  Is it possible to ignore this ?

 Yeah, you can manually ignore it yourself, much like so many people
 ignored the crap inside the OpenSSL code base for decades.

 More likely their reason for having that API at all is totally stupid
 and from the past, and thus the warning should remain.  Until they
 make a sensible decision and improve it.

 In a related note, there are random() calls in our ksh and awk code.
 The linker warns for them.  They are there due to standards mandated
 behaviour.  We've changed the runtime behaviour to avoid this
 standards mandated behaviour when possible, but we still have to link
 in the bad function, and get the warning.

 And that is how it will stay.  We will not add hacks so that people
 can take away these warnings.  Your


I get it, i also agree it must warn, but i like -Werror :(

So i got two options:
 - So if there 's a lots of code i need to 21 and grep . to extract all
those warnings, and then check with a list of ok this warning has been
analyzed
 - patch everything (like this weak random) and -Werror

what would you choose ?



  same question for all the strl*, like strlcpy is great but sometimes
  useless.

 You are saying people can use strcpy and strcat safely.  Yes.
 Children can carry loaded guns safely too.  And nothing ever goes
 wrong.



Children? monkey are more fun:
http://www.youtube.com/watch?v=0_lc81P-R8kfeature=kp


-- 
-
() ascii ribbon campaign - against html e-mail
/\



Re: Ignoring some warning

2014-05-26 Thread Theo de Raadt
 I get it, i also agree it must warn, but i like -Werror :(

Sorry, this is a linker warning.  And it is on by default,
INTENTIONALLY.

 So i got two options:
  - So if there 's a lots of code i need to 21 and grep . to extract all
 those warnings, and then check with a list of ok this warning has been
 analyzed
  - patch everything (like this weak random) and -Werror
 
 what would you choose ?

Pick the most important targets.  Fix them properly.  Repeat.



Re: Wrong Shutdown

2014-05-26 Thread Martin Schröder
2014-05-26 15:52 GMT+02:00 Walter Souza wsouz...@gmail.com:
 Why OpenBSD has no interest in using journal file system?

http://www.openbsd.org/faq/faq8.html#Journaling

Please read the FAQ.

Best
   Martin



Re: Wrong Shutdown

2014-05-26 Thread Walter Souza
On Mon, May 26, 2014 at 11:09 AM, Theo de Raadt dera...@cvs.openbsd.orgwrote:

  So do you have interest?
 
  I have interest in help.. I love OpenBSD project and I want to use it in
  everything.

 There is a large gap between how do I make fsck faster without buying
 a UPS and I will help give you guys a working journal filesystem.

 I don't know you, maybe I am misinterpreting you.


I made the question first because I have learned many different best ways
than usual using OBSD,
and I think that was better to question first.



  And let's work in World Peace too.. :)

 Your makeup has a smudge, so you don't win.




-- 
Walter Neto
Analista Desenvolvedor



Re: Wrong Shutdown

2014-05-26 Thread Jan Stary
On May 26 10:46:30, wsouz...@gmail.com wrote:
 I have a machine with a HardDrive with a slice of 2.7TB,

Why exactly are you using such a huge partition?
Do you need to? Can't you use smaller, more manageable partitions?

 and I have no UPS.. when sometimes I have power failure,
 and consequently a wrong shutdown,

Is your 2.7TB of data at least so valuable
that you wold buy a UPS?

 The fsck spends much time to recover the filse system, what can I
 do? I need to be faster.

How exactly did you create the filesystem?
For example, see the mistake I made some time ago:

~$ df -hi /dload
Filesystem SizeUsed   Avail Capacity iused   ifree  %iused Mounted on
/dev/sd3a  401G377G3.8G99%8501  417481 2% /dload

See? It is almost full, but only 2% of the inodes are used.
I could have created the filesystem with a fraction of the inodes,
and it would be enough, and the fsck would be way faster.



Re: Wrong Shutdown

2014-05-26 Thread Adam Thompson
On May 26, 2014 9:16:17 AM CDT, Martin Schröder mar...@oneiros.de wrote:
2014-05-26 15:52 GMT+02:00 Walter Souza wsouz...@gmail.com:
 Why OpenBSD has no interest in using journal file system?

http://www.openbsd.org/faq/faq8.html#Journaling

Please read the FAQ.

Best
   Martin

Arguably, Walter might be better served by turning off softdep and ensuring the 
filesystem is mounted 'sync'.
That doesn't solve the fsck speed issue, but it would help ensure no data loss.

Note to Walter: a journaling filesystem is not magic, you can (and will) still 
experience data loss in uncontrolled shutdowns.  Journaling just means 
(roughly) that the metadata and data are written in the correct order so that 
the filesystem is not in an inconsistent state... not that you won't lose data.
(As already pointed out, softdep does much the same thing.)

Does running FFS2 improve fsck times?  Not something I've ever tested...

-Adam
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: Wrong Shutdown

2014-05-26 Thread Otto Moerbeek
On Mon, May 26, 2014 at 09:32:57AM -0500, Adam Thompson wrote:

 On May 26, 2014 9:16:17 AM CDT, Martin Schr??der mar...@oneiros.de wrote:
 2014-05-26 15:52 GMT+02:00 Walter Souza wsouz...@gmail.com:
  Why OpenBSD has no interest in using journal file system?
 
 http://www.openbsd.org/faq/faq8.html#Journaling
 
 Please read the FAQ.
 
 Best
Martin
 
 Arguably, Walter might be better served by turning off softdep and ensuring 
 the filesystem is mounted 'sync'.
 That doesn't solve the fsck speed issue, but it would help ensure no data 
 loss.
 
 Note to Walter: a journaling filesystem is not magic, you can (and will) 
 still experience data loss in uncontrolled shutdowns.  Journaling just means 
 (roughly) that the metadata and data are written in the correct order so that 
 the filesystem is not in an inconsistent state... not that you won't lose 
 data.
 (As already pointed out, softdep does much the same thing.)
 
 Does running FFS2 improve fsck times?  Not something I've ever tested...

Yes it does, in most cases. But the most important is to use large
block and/or fragments sizes, if that is acceptable for your use (it
wastes space if you have a lot of small files).

-Otto



slow qemu openbsd

2014-05-26 Thread Швецов Михаил
Maybe I'm doing something wrong. Please help me.

I install openbsd 5.5 i386 and qemu-1.7.0 from packages.

qemu-img create -f qcow2 /vm/qcow2.img 10G

qemu-system-i386 -name qcow2 -nodefaults -m 512 -hda /mnt/ qcow2.img 
-cdrom /obraz/install55.iso -net nic -net 
tap,ifname=tun1,script=no,downscript=no -boot once=d -display 
vnc=0.0.0.0:1 -monitor vc -vga cirrus

qemu-img create -f raw /vm/raw.img 10G

qemu-system-i386 -name raw -nodefaults -m 512 -hda /mnt/raw.img -cdrom 
/obraz/install55.iso -net nic -net 
tap,ifname=tun2,script=no,downscript=no -boot once=d -display 
vnc=0.0.0.0:2 -monitor vc -vga cirrus

QCOW2 works slower RAW, and RAW works slower host machine. I think that 
disc is the weakest link.

I try set -hda /dev/rwd3c (disk itself – not system(wd0)) – but nothing 
changed.

What I may do to work VM QEMU faster???



Re: slow qemu openbsd

2014-05-26 Thread Robert
On Mon, 26 May 2014 19:16:12 +0400
Швецов Михаил mv...@ya.ru wrote:
 What I may do to work VM QEMU faster???

Not much.
QEMU is faster on Linux, because they use KVM - which doesn't exist on OpenBSD. 

http://marc.info/?l=openbsd-miscm=133612666103598

kind regards,
Robert



Chain loading from grub 0.97

2014-05-26 Thread Benjamin Heath
Hello misc!

I've had Openbsd 5.5 for a while as the sole system on my eeepc. I decided
to install grub and multi boot to either Linux or Freebsd.

# pkg_add grub
# grub-install
# reboot

Oops. I didn't configure it. Oh well, I'm sure I can just use grub manually
to chainload Openbsd. First I make sure nothing was erased.

grub find /boot
  (hd0,3,a)
grub find /bsd.rd
  (hd0,3,a)
grub find /root/.profile
  (hd0,3,a)

So it's clearly still there.

grub rootnoverify (hd0,3,a)
grub chainloader +1
grub boot

Fail. This takes me right back to grub. I even tried direct booting, but as
with every tut and email I've read on the subject, it only leads to a
panic.

grub kernel --type=openbsd /boot
grub boot

Panic.

grub kernel --type=openbsd /bsd.rd
grub boot

Panic.

Seems I'm stuck. What do I do to chainload openbsd when grub just
chainloads itself?



Re: slow qemu openbsd

2014-05-26 Thread Abel Abraham Camarillo Ojeda
On Mon, May 26, 2014 at 10:16 AM, Швецов Михаил mv...@ya.ru wrote:
 Maybe I'm doing something wrong. Please help me.

 I install openbsd 5.5 i386 and qemu-1.7.0 from packages.

 qemu-img create -f qcow2 /vm/qcow2.img 10G

 qemu-system-i386 -name qcow2 -nodefaults -m 512 -hda /mnt/ qcow2.img
 -cdrom /obraz/install55.iso -net nic -net
 tap,ifname=tun1,script=no,downscript=no -boot once=d -display
 vnc=0.0.0.0:1 -monitor vc -vga cirrus

 qemu-img create -f raw /vm/raw.img 10G

 qemu-system-i386 -name raw -nodefaults -m 512 -hda /mnt/raw.img -cdrom
 /obraz/install55.iso -net nic -net
 tap,ifname=tun2,script=no,downscript=no -boot once=d -display
 vnc=0.0.0.0:2 -monitor vc -vga cirrus

 QCOW2 works slower RAW, and RAW works slower host machine. I think that
 disc is the weakest link.

 I try set -hda /dev/rwd3c (disk itself – not system(wd0)) – but nothing
 changed.

 What I may do to work VM QEMU faster???



You could try using virtio in disk and network:

qemu-system-i386 -drive file=$img,if=virtio -net tap -net nic,if=virtio

I have found a measurable improvement using them.



Re: Chain loading from grub 0.97

2014-05-26 Thread Jérémie Courrèges-Anglas
Benjamin Heath benjamin.joel.he...@gmail.com writes:

 Hello misc!

 I've had Openbsd 5.5 for a while as the sole system on my eeepc. I decided
 to install grub and multi boot to either Linux or Freebsd.

 # pkg_add grub
 # grub-install
 # reboot

 Oops. I didn't configure it. Oh well, I'm sure I can just use grub manually
 to chainload Openbsd. First I make sure nothing was erased.

 grub find /boot
   (hd0,3,a)
 grub find /bsd.rd
   (hd0,3,a)
 grub find /root/.profile
   (hd0,3,a)

 So it's clearly still there.

 grub rootnoverify (hd0,3,a)
 grub chainloader +1
 grub boot

What about (untested):

grub rootnoverify (hd0,3)
grub chainloader +1
grub boot

[...]

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE



Re: Chain loading from grub 0.97

2014-05-26 Thread Benjamin Heath
On May 26, 2014 11:50 AM, Jérémie Courrèges-Anglas j...@wxcvbn.org
wrote:

 Benjamin Heath benjamin.joel.he...@gmail.com writes:

  Hello misc!
 
  I've had Openbsd 5.5 for a while as the sole system on my eeepc. I
decided
  to install grub and multi boot to either Linux or Freebsd.
 
  # pkg_add grub
  # grub-install
  # reboot
 
  Oops. I didn't configure it. Oh well, I'm sure I can just use grub
manually
  to chainload Openbsd. First I make sure nothing was erased.
 
  grub find /boot
(hd0,3,a)
  grub find /bsd.rd
(hd0,3,a)
  grub find /root/.profile
(hd0,3,a)
 
  So it's clearly still there.
 
  grub rootnoverify (hd0,3,a)
  grub chainloader +1
  grub boot

 What about (untested):

 grub rootnoverify (hd0,3)
 grub chainloader +1
 grub boot

 [...]

 --
 jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524
E7EE

Thank you for the response. Same result, unfortunately.



Re: WebDAV server for nginx?

2014-05-26 Thread Giancarlo Razzolini
Em 25-05-2014 21:23, Tyler Morgan escreveu:
 On 5/25/2014 1:48 AM, raul o wrote:
 Hi buddies, can anyone tell me as I implement WebDAV with nginx? Thanks.

 Are you hitting any specific problems that may be OpenBSD-centric? As
 long as nginx is compiled with --with-http_dav_module (which it isn't
 by default, so you may have to recompile it), it sounds like it should
 be a straightforward problem to solve.

 This seems like a very general question that hasn't been Googled
 enough to take it to misc@ so you may not get great input.

 I've never implemented WebDAV in nginx, but I certainly see at least a
 dozen tutorials on how to do it by searching for it. Unless OpenBSD is
 doing something slightly crazy with nginx (like they did with apache),
 any Linux-based tutorial should be generally fine to follow.

 http://nginx.org/en/docs/http/ngx_http_dav_module.html

Unless there is some specific need, I'd advise against using dav. But,
since the OP didn't specified, there is no way of knowing. Now, you call
crazy of OpenBSD to maintain a version of Apache, after they changed
their license to a non BSD compatible one, and a version more secure,
you should say, for many years? Given that it was their only option at
the time, I don't say so. Nginx is far superior than apache, but it only
is now, after some years since it's introduction have passed. Also,
nginx, contrary to the apache foundation, not only keep nginx with an
acceptable license, but their accepted many patches that the OpenBSD
devs sent them, that were incorporated upstream, for all the platforms
where nginx runs on. If this is crazy, them your definition of it is
very, very wrong.


Cheers,

-- 
Giancarlo Razzolini
GPG: 4096R/77B981BC



Re: Get rid of /bsd: arp info overwritten for ?

2014-05-26 Thread Giancarlo Razzolini
Em 26-05-2014 04:30, bodie escreveu:
 On 22.05.2014 22:35, Mihai Popescu wrote:
 Will collect pcap here as well of whole process for interested devs in
 private replies.

 It should be interesting for other people too, especially for the ones
 reading your long and confuse posts.

 Try to present here your setup (configuration files) and what you want
 to do then try to put some tcpdump logs online.

 A few folks asked you for tcpdump logs but you are more interested in
 testing the AlienBSD system responses in order to fix OpenBSD !!!

 Stop, think and ... describe.


 DNS setup in company fixed.
What was wrong with it?
 Specific MTU for inw0 and tun0 is needed here for VPN else troubles
 with services, fixed (on Mac it's detected automatically)
This is only needed when you have some broken router along the path. I
had an adsl modem that, no matter what you did, you had to use an mtu of
1492, otherwise things being accessed from outside, wouldn't work. Also
some issues with UDP downloads where seem, but most applications
corrected those. But these are extreme and rare circumstances and, most
of them, if not all, can be corrected. Perhaps a second sweep of your
network problems might be needed. Anyway, you can take a look at
net.inet.ip.mtudisctimeout and play a little with it to see if you can
improve your situation without the need to change your mtu on the
interfaces themselves.

 Now it works as expected on OpenBSD. But thanks to OpenBSD such issues
 were detected in the first place.

 Once again thanks a lot to all

Now you know what I meant on the previous e-mail that, if OpenBSD was
seeing something wrong, it was because there was something, indeed,
wrong. Not only OpenBSD try to follow all the standards to the letter,
but they generally do so securely.

Cheers,

-- 
Giancarlo Razzolini
GPG: 4096R/77B981BC



Re: [Bulk] Re: slow qemu openbsd

2014-05-26 Thread Kevin Chadwick
previously on this list Robert contributed:

  What I may do to work VM QEMU faster???  
 
 Not much.
 QEMU is faster on Linux, because they use KVM - which doesn't exist on 
 OpenBSD. 
 
 http://marc.info/?l=openbsd-miscm=133612666103598
 
 kind regards,

I'm switching my main workstation to OpenBSD and investigating if
xenserver can boot existing installations from an external usb without
specialist disk formats but the install seems rather poor (disk
selection, disk size) and makes me wonder about the competency of it's
development. It also seems to require two machines to function at all?

Qemu performance is of no issue for my immediate needs and I obviously
prefer to use OpenBSD native for many reasons including debugging
without wondering if the virtualisation is at fault and it would be nice
to have the last resort performant back stop option on a single laptop
of an external boot device to run multiple existing OS including the
natively installed OpenBSD and say Windows or Linux for certain tasks or
unavoidable commercial packages and switch back to native for most
things. So I'm hoping I can boot OpenBSD with qemu or Windows or Linux
under multiboot or alternatively boot xenserver or something off a usb
and select 2 or more of the multiboots to run concurrently.

Any input as to if this is possible with esxi or anything else would be
appreciated.

-- 
___

'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'

(Doug McIlroy)

In Other Words - Don't design like polkit or systemd
___



cross compilation tool

2014-05-26 Thread sven falempin
Hello,

documentation about this are ... sparse

# GENERIC.MP#315 amd64
TARGET_ARCH=i386
TARGET_CPU=geode
TARGET=i386
# vi ./Makefile.cross
# make -f ./Makefile.cross cross-distrib
host and target have different size longs

But gcc is able to target 32bit cpu from 64bit , so why this restriction ?
Apparently the makefile even build the libc and everything so ...

I tried it because
 * qemu not so fast (still runing in background)
 * my i386 target very slow (and only 128mo ram)
 * do not want to install x86 on the build machine , currently thinking
about dual boot
x86/amd64 , i wonder if the amd64 boot could load a 32bit kernel... that
would save the Active partition disk trick or the grub use.

+

-- 
-
() ascii ribbon campaign - against html e-mail
/\



Run 'n' play missing home-based package manager for OpenBSD

2014-05-26 Thread Antonio Feitosa
Hi fellows,

I have been written in Perl a package manager to run as user, with
no root access called Kornbrew. Actually it's just a installation by
compiling, like ports (but with Homebrew concept). I tough: So, I X
running with no root, I could intall and run anything with the right
package manager. So, for now, that's the man concept and it's running
at Linux too.

https://github.com/TeeBSD/kornbrew

Motivations
---

I did Kornbrew to suply my needs about installing 3r party software as
simple user at:
* Cluster environment
* Remote Shell account
* When I need some specific version or the latest version of some software.
* College's students lab. They could install whatever wants, and the
machine keeps always as brand new instalation.
* Don't need to use root in a desktop or workstation(With or without X).

In all of these circumstances, to be root is not a good way to do things.

I see a lot of benefits. I think, that's not my only needs. So, I took
the beginning of the project to disseminate it and who like the
concept, could give suggestions and / or do a more professional
design, because I have a lot to do and I don't wanna to wasting my
time, working by myself just in my needs. Instead, I could work with
others and his needs.

What dou you think about the concept. Is it good for more people?

-- 
Antonio Feitosa (http://twitter.com/teebsd)
#DevOps believer in Prototype Driven Development, #Security
Consultant, #OpenBSD addicted, #ARM hobbyst and #Blues #Musician. #P2P
is the real #cloudcomputing.
Rio de Janeiro, Brazil ·
Github: https://github.com/TeeBSB
Blog: http://teebsd.github.io/



Re: cross compilation tool

2014-05-26 Thread Philip Guenther
On Mon, May 26, 2014 at 12:46 PM, sven falempin sven.falem...@gmail.comwrote:

 documentation about this are ... sparse


Intentionally.  As far as the project is concerned, cross-compiling is for
bringing up a new platform, and that's about it.



 # GENERIC.MP#315 amd64
 TARGET_ARCH=i386
 TARGET_CPU=geode
 TARGET=i386
 # vi ./Makefile.cross
 # make -f ./Makefile.cross cross-distrib
 host and target have different size longs

 But gcc is able to target 32bit cpu from 64bit , so why this restriction ?
 Apparently the makefile even build the libc and everything so ...


We experienced real cases where building when target and host had different
sizes resulted in bad code and lots of time wasted trying to figure out
what was wrong in the code, when the compiler was the problem.  Since there
are fast archs for both 32 and 64, simply banning the mismatch was a way to
guarantee a known safe setup and stop developers from wasting time on
something gcc didn't support.

To put it another way: let's say you disable that check and it all *almost*
works; if that build's problems resulted in other people wasting time
trying to figure out what went wrong, it would be a Very Bad Thing.


I tried it because
  * qemu not so fast (still runing in background)
  * my i386 target very slow (and only 128mo ram)
  * do not want to install x86 on the build machine , currently thinking
 about dual boot
 x86/amd64 , i wonder if the amd64 boot could load a 32bit kernel... that
 would save the Active partition disk trick or the grub use.


The i386 and amd64 boot blocks can load both types of kernel.  I used to do
that until I accidentally toasted the second disk's install and switched to
building i386 on my old T60.


Philip Guenther



Re: Wrong Shutdown

2014-05-26 Thread Dennis Davis
On Mon, 26 May 2014, Theo de Raadt wrote:

 From: Theo de Raadt dera...@cvs.openbsd.org
 To: Walter Souza wsouz...@gmail.com
 Cc: misc@openbsd.org
 Date: Mon, 26 May 2014 15:09:03
 Subject: Re: Wrong Shutdown

...

  And let's work in World Peace too.. :)

 Your makeup has a smudge, so you don't win.

That's not makeup!  That's the black eye I got in last night's
bar brawl :-(

Now what's this World Peace thingie?
-- 
Dennis Davis dennisda...@fastmail.fm




Re: cross compilation tool

2014-05-26 Thread sven falempin
On Mon, May 26, 2014 at 4:38 PM, Philip Guenther guent...@gmail.com wrote:

 On Mon, May 26, 2014 at 12:46 PM, sven falempin 
 sven.falem...@gmail.comwrote:

 documentation about this are ... sparse


 Intentionally.  As far as the project is concerned, cross-compiling is for
 bringing up a new platform, and that's about it.



 # GENERIC.MP#315 amd64
 TARGET_ARCH=i386
 TARGET_CPU=geode
 TARGET=i386
 # vi ./Makefile.cross
 # make -f ./Makefile.cross cross-distrib
 host and target have different size longs

 But gcc is able to target 32bit cpu from 64bit , so why this restriction ?
 Apparently the makefile even build the libc and everything so ...


 We experienced real cases where building when target and host had
 different sizes resulted in bad code and lots of time wasted trying to
 figure out what was wrong in the code, when the compiler was the problem.
  Since there are fast archs for both 32 and 64, simply banning the mismatch
 was a way to guarantee a known safe setup and stop developers from wasting
 time on something gcc didn't support.

 To put it another way: let's say you disable that check and it all
 *almost* works; if that build's problems resulted in other people wasting
 time trying to figure out what went wrong, it would be a Very Bad Thing.


like those  ? :
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31585





 I tried it because
  * qemu not so fast (still runing in background)
  * my i386 target very slow (and only 128mo ram)
  * do not want to install x86 on the build machine , currently thinking
 about dual boot
 x86/amd64 , i wonder if the amd64 boot could load a 32bit kernel... that
 would save the Active partition disk trick or the grub use.


 The i386 and amd64 boot blocks can load both types of kernel.  I used to
 do that until I accidentally toasted the second disk's install and switched
 to building i386 on my old T60.


 Philip Guenther


Thank you,

Is it possible to use this makefile to change the gcc version ? (for
testing purpose)
I read the makefile and saw static path to cc building a CROSSGCC , (i d
like to use gcc 4.8) .



-- 
-
() ascii ribbon campaign - against html e-mail
/\



Re: Wrong Shutdown

2014-05-26 Thread Salim Shaw
Enable SoftUpdates.

/dev/sd0a / ffs rw,softdep 1 1






On 05/26/2014 09:52 AM, Walter Souza wrote:
 Why OpenBSD has no interest in using journal file system?


 On Mon, May 26, 2014 at 10:48 AM, Theo de Raadt 
 dera...@cvs.openbsd.orgwrote:

 I have a machine with a HardDrive with a slice of 2.7TB, and I have no
 UPS.. when sometimes I have power failure, and consequently a wrong
 shutdown, The fsck spends much time to recover the filse system, what
 can I
 do? I need to be faster.
 Get a UPS.

 fsck is required to ensure the directory hierarchy is coherent.




-- 
Salim A. Shaw
System Administrator
OpenBSD / Free Software Advocate
Need security and stability --- Try OpenBSD.
BSD license all the way: Sell services, don't lease secrets



Re: Wrong Shutdown

2014-05-26 Thread Philip Guenther
On Mon, May 26, 2014 at 6:56 AM, Salim Shaw salims...@vfemail.net wrote:

 Enable SoftUpdates.

 /dev/sd0a / ffs rw,softdep 1 1


Since OpenBSD doesn't have background fsck for softupdates, nor does it
have softupdates journaling, how will that solve the original problem?


Philip Guenther



Re: Wrong Shutdown

2014-05-26 Thread frantisek holop
hmm, on Mon, May 26, 2014 at 04:46:04PM +0200, Otto Moerbeek said that
 Yes it does, in most cases. But the most important is to use large
 block and/or fragments sizes, if that is acceptable for your use (it
 wastes space if you have a lot of small files).

i meant to ask now for some time, what are (sensible) max
values?  can't find it in newfs(8), disklabel(8).

#size   offset  fstype [fsize bsize  cpg]
  a:555913152   64  4.2BSD   8192 655361 

i dont have an excessively big partition (but big enough
for a veeery slow fsck with default newfs values) but it
holds only media files, so i dont think i need lots of inodes.
so i newfs-ed with -O 2 and big fsize/bsize. but i still have
too many inodes.  maybe 10x less inodes would suffice?

Filesystem SizeUsed   Avail Capacity iused   ifree  %iused  Mounted on
/dev/sd2a  263G141G122G54%   64861 8730273 1%   /home/f/data


would these help in any way for media collections?

 -g avgfilesize
 The expected average file size for the file system in bytes.

 -h avgfpdir
 The expected average number of files per directory on the
 file system.

$ sudo tunefs -N /dev/sd2a
tunefs: tuning /dev/sd2a
tunefs: current settings of /dev/sd2a
maximum contiguous block count 1
maximum blocks per file in a cylinder group 8192
minimum percentage of free space 0%
optimization preference: space
average file size: 16384
expected number of files per directory: 64
tunefs: no changes made

default average file size is rather conservative.
and totally untrue for the media collection :)

-f
-- 
i am sick and tired of being sick and tired.



Re: Wrong Shutdown

2014-05-26 Thread Stuart Henderson
On 2014-05-26, Theo de Raadt dera...@cvs.openbsd.org wrote:
 I have a machine with a HardDrive with a slice of 2.7TB, and I have no
 UPS.. when sometimes I have power failure, and consequently a wrong
 shutdown, The fsck spends much time to recover the filse system, what can I
 do? I need to be faster.

 Get a UPS.

 fsck is required to ensure the directory hierarchy is coherent.



For this situation, a UPS only needs to power the machine for a few
minutes to shutdown safely, so it doesn't need to be particularly
expensive. Quite possibly less than the cost of the drives big enough
to hold your 2.7TB filesystem and a backup.



Re: Ignoring some warning

2014-05-26 Thread Stuart Henderson
On 2014-05-26, sven falempin sven.falem...@gmail.com wrote:
 I get it, i also agree it must warn, but i like -Werror :(

These are linker warnings. -Werror doesn't trigger on them.



Re: Wrong Shutdown

2014-05-26 Thread Ted Unangst
On Mon, May 26, 2014 at 14:14, Philip Guenther wrote:
 On Mon, May 26, 2014 at 6:56 AM, Salim Shaw salims...@vfemail.net wrote:
 
 Enable SoftUpdates.

 /dev/sd0a / ffs rw,softdep 1 1
 
 
 Since OpenBSD doesn't have background fsck for softupdates, nor does it
 have softupdates journaling, how will that solve the original problem?

mount -f for all the speeds.



Re: Calgary, this Tuesday

2014-05-26 Thread STeve Andre'

On 05/26/14 09:21, dera...@cvs.openbsd.org wrote:

I'm sorry for the late public announcement...

Tomorrow (Tuesday) Bob Beck will be hurtling down the Highway from
Edmonton to Calgary.

Then in the evening, he and I will present at the local calgary unix
group meeting about recent changes in LibreSSL, OpenBSD, and how the
OpenBSD Foundation fits into this.

http://www.cuug.ab.ca/




I hope a video or audio transcript can be made available. Doesn't
have to be great, to be valuable.  Thanks...

--STeve Andre'



Re: Run 'n' play missing home-based package manager for OpenBSD

2014-05-26 Thread bodie

On 26.05.2014 22:07, Antonio Feitosa wrote:

Hi fellows,

I have been written in Perl a package manager to run as user, with
no root access called Kornbrew. Actually it's just a installation 
by

compiling, like ports (but with Homebrew concept). I tough: So, I X
running with no root, I could intall and run anything with the right
package manager. So, for now, that's the man concept and it's running
at Linux too.


Why do you think that it's good idea to allow users install 3rd party 
packages

without need for root privileges?

I mean what are the benefits of such design and how they interact with
security concepts (not only in OpenBSD).




https://github.com/TeeBSD/kornbrew

Motivations
---

I did Kornbrew to suply my needs about installing 3r party software 
as

simple user at:
* Cluster environment
* Remote Shell account
* When I need some specific version or the latest version of some 
software.

* College's students lab. They could install whatever wants, and the
machine keeps always as brand new instalation.
* Don't need to use root in a desktop or workstation(With or without 
X).


In all of these circumstances, to be root is not a good way to do 
things.


I see a lot of benefits. I think, that's not my only needs. So, I 
took

the beginning of the project to disseminate it and who like the
concept, could give suggestions and / or do a more professional
design, because I have a lot to do and I don't wanna to wasting my
time, working by myself just in my needs. Instead, I could work with
others and his needs.

What dou you think about the concept. Is it good for more people?




Re: Chain loading from grub 0.97

2014-05-26 Thread bodie

On 26.05.2014 20:51, Benjamin Heath wrote:

On May 26, 2014 11:50 AM, Jérémie Courrèges-Anglas
j...@wxcvbn.org
wrote:


Benjamin Heath benjamin.joel.he...@gmail.com writes:

 Hello misc!

 I've had Openbsd 5.5 for a while as the sole system on my eeepc. I

decided

 to install grub and multi boot to either Linux or Freebsd.

 # pkg_add grub
 # grub-install
 # reboot

 Oops. I didn't configure it. Oh well, I'm sure I can just use grub

manually

 to chainload Openbsd. First I make sure nothing was erased.

 grub find /boot
   (hd0,3,a)
 grub find /bsd.rd
   (hd0,3,a)
 grub find /root/.profile
   (hd0,3,a)

 So it's clearly still there.

 grub rootnoverify (hd0,3,a)
 grub chainloader +1
 grub boot

What about (untested):

grub rootnoverify (hd0,3)
grub chainloader +1
grub boot

[...]

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 
1524

E7EE

Thank you for the response. Same result, unfortunately.


http://www.openbsd.org/faq/faq4.html#Multibooting

leading to ftp://ftp.openbsd.org/pub/OpenBSD/5.5/i386/INSTALL.linux

Is ~3 years old so be careful with what you're doing. Making multiboot
with Windows is way easier. They don't change boot loader every couple
of weeks.

What are you trying to solve with multiboot?



Re: Get rid of /bsd: arp info overwritten for ?

2014-05-26 Thread bodie

On 26.05.2014 21:07, Giancarlo Razzolini wrote:

Em 26-05-2014 04:30, bodie escreveu:

On 22.05.2014 22:35, Mihai Popescu wrote:
Will collect pcap here as well of whole process for interested 
devs in

private replies.


It should be interesting for other people too, especially for the 
ones

reading your long and confuse posts.

Try to present here your setup (configuration files) and what you 
want

to do then try to put some tcpdump logs online.

A few folks asked you for tcpdump logs but you are more interested 
in

testing the AlienBSD system responses in order to fix OpenBSD !!!

Stop, think and ... describe.



DNS setup in company fixed.

What was wrong with it?


Leftover config for old wireless network not in use for over one year
leading to authentication portal on that strange IP


Specific MTU for inw0 and tun0 is needed here for VPN else troubles
with services, fixed (on Mac it's detected automatically)
This is only needed when you have some broken router along the path. 
I
had an adsl modem that, no matter what you did, you had to use an mtu 
of
1492, otherwise things being accessed from outside, wouldn't work. 
Also

some issues with UDP downloads where seem, but most applications
corrected those. But these are extreme and rare circumstances and, 
most

of them, if not all, can be corrected. Perhaps a second sweep of your
network problems might be needed. Anyway, you can take a look at
net.inet.ip.mtudisctimeout and play a little with it to see if you 
can

improve your situation without the need to change your mtu on the
interfaces themselves.


Hardly think that it will be fixed. There are eg. firmware updates for 
those
HP boxes, but can't be updated because after that some stuff is not 
working.
I know, sounds strange,but can't fix whole world. And for wifi setup I 
made

config scripts so MTU is set only here and nowhere else.



Now it works as expected on OpenBSD. But thanks to OpenBSD such 
issues

were detected in the first place.

Once again thanks a lot to all


Now you know what I meant on the previous e-mail that, if OpenBSD was
seeing something wrong, it was because there was something, indeed,
wrong. Not only OpenBSD try to follow all the standards to the 
letter,

but they generally do so securely.


I know that for years already. Bad that others can't see that and 
continue

to use some . HW/SW



Cheers,




Getting unswapped?

2014-05-26 Thread Alan Corey
Several hours ago I edited a few big images in The Gimp so there was
some swapping.  I still have about 60 megs swapped out even though
I've got 600 megs of RAM free. I've seen this before, sometimes it'll
stay swapped out overnight until I reboot to clear it. The Gimp was
closed hours ago.

Is there any command to cause the swap system to do a HUP or something
to re-evaluate the situation?

Thanks,

Alan

-- 
Credit is the root of all evil.  - AB1JX



Re: Getting unswapped?

2014-05-26 Thread Philip Guenther
On Mon, May 26, 2014 at 9:36 PM, Alan Corey alan01...@gmail.com wrote:

 Several hours ago I edited a few big images in The Gimp so there was
 some swapping.  I still have about 60 megs swapped out even though
 I've got 600 megs of RAM free. I've seen this before, sometimes it'll
 stay swapped out overnight until I reboot to clear it. The Gimp was
 closed hours ago.

 Is there any command to cause the swap system to do a HUP or something
 to re-evaluate the situation?



Re: Getting unswapped?

2014-05-26 Thread Philip Guenther
On Mon, May 26, 2014 at 9:49 PM, Philip Guenther guent...@gmail.com wrote:

 On Mon, May 26, 2014 at 9:36 PM, Alan Corey alan01...@gmail.com wrote:

 Several hours ago I edited a few big images in The Gimp so there was
 some swapping.  I still have about 60 megs swapped out even though
 I've got 600 megs of RAM free. I've seen this before, sometimes it'll
 stay swapped out overnight until I reboot to clear it. The Gimp was
 closed hours ago.

 Is there any command to cause the swap system to do a HUP or something
 to re-evaluate the situation?


[Stupid gmail control-enter]

If the data has remained swapped out, it's because it hasn't been needed
yet.  Perhaps its the process memory for a daemon which isn't being
connected to and doesn't need to do anything.  Why would you *want* to swap
that in?


Philip Guenther



Re: Run 'n' play missing home-based package manager for OpenBSD

2014-05-26 Thread Giancarlo Razzolini
Em 27-05-2014 01:22, bodie escreveu:

 Why do you think that it's good idea to allow users install 3rd party
 packages
 without need for root privileges?
Users can compile and run whatever they want in their home directories,
and any other directory they can write to. There is no need for root
privileges.

 I mean what are the benefits of such design and how they interact with
 security concepts (not only in OpenBSD).


I don't like nor dislike this idea. From my point of view it will have
it's audience, but I'll probably never use it myself. And I'll probably
never install it system wide for users.

Cheers,

-- 
Giancarlo Razzolini
GPG: 4096R/77B981BC



Re: Wrong Shutdown

2014-05-26 Thread Otto Moerbeek
On Mon, May 26, 2014 at 11:19:00PM +0200, frantisek holop wrote:

 hmm, on Mon, May 26, 2014 at 04:46:04PM +0200, Otto Moerbeek said that
  Yes it does, in most cases. But the most important is to use large
  block and/or fragments sizes, if that is acceptable for your use (it
  wastes space if you have a lot of small files).
 
 i meant to ask now for some time, what are (sensible) max
 values?  can't find it in newfs(8), disklabel(8).
 
 #size   offset  fstype [fsize bsize  cpg]
   a:555913152   64  4.2BSD   8192 655361 
 
 i dont have an excessively big partition (but big enough
 for a veeery slow fsck with default newfs values) but it
 holds only media files, so i dont think i need lots of inodes.
 so i newfs-ed with -O 2 and big fsize/bsize. but i still have
 too many inodes.  maybe 10x less inodes would suffice?
 
 Filesystem SizeUsed   Avail Capacity iused   ifree  %iused  Mounted on
 /dev/sd2a  263G141G122G54%   64861 8730273 1%   
 /home/f/data
 
 
 would these help in any way for media collections?
 
  -g avgfilesize
  The expected average file size for the file system in bytes.
 
  -h avgfpdir
  The expected average number of files per directory on the
  file system.
 
 $ sudo tunefs -N /dev/sd2a
 tunefs: tuning /dev/sd2a
 tunefs: current settings of /dev/sd2a
 maximum contiguous block count 1
 maximum blocks per file in a cylinder group 8192
 minimum percentage of free space 0%
 optimization preference: space
 average file size: 16384
 expected number of files per directory: 64
 tunefs: no changes made
 
 default average file size is rather conservative.
 and totally untrue for the media collection :)
 
 -f
 -- 
 i am sick and tired of being sick and tired.

block size is between 4096 and 65536, fragment size between 512 and
block size.  Both are powers of 2, and block size can be 1, 2, 4, or 8
times fragments size. For media files -b 65536 -i 65536 is fine. 

If you still have too many inodes, I use -i to reduce the numbers of
inodes during newfs, unit is bytes per inode. Newfs reports what it is
doing, so you can see how many inodes you are getting. 

The numbers for -g -and -h matter only at runtime, they do not
influence the fs layout during newfs.

[otto@lou:16]$ sudo newfs -N  -f 65536 -b 65536 /dev/rsd0l   
newfs: reduced number of fragments per cylinder group from 163839 to
163818 to enlarge last cylinder group
/dev/rsd0l: 40959.8MB in 83885696 sectors of 512 bytes
5 cylinder groups of 10238.62MB, 163818 blocks, 40960 inodes each
super-block backups (for fsck -b #) at:
 128, 20968832, 41937536, 62906240, 83874944,
 
[otto@lou:17]$ sudo newfs -N -i 100 -f 65536 -b 65536 /dev/rsd0l 
newfs: reduced number of fragments per cylinder group from 163839 to
163833 to enlarge last cylinder group
/dev/rsd0l: 40959.8MB in 83885696 sectors of 512 bytes
5 cylinder groups of 10239.56MB, 163833 blocks, 11264 inodes each
super-block backups (for fsck -b #) at:
 128, 20970752, 41941376, 62912000, 83882624,

-Otto



Re: Run 'n' play missing home-based package manager for OpenBSD

2014-05-26 Thread bodie

On 27.05.2014 07:09, Giancarlo Razzolini wrote:

Em 27-05-2014 01:22, bodie escreveu:


Why do you think that it's good idea to allow users install 3rd 
party

packages
without need for root privileges?
Users can compile and run whatever they want in their home 
directories,

and any other directory they can write to. There is no need for root
privileges.


I mean what are the benefits of such design and how they interact 
with

security concepts (not only in OpenBSD).


I don't like nor dislike this idea. From my point of view it will 
have
it's audience, but I'll probably never use it myself. And I'll 
probably

never install it system wide for users.

Cheers,


I think that he mean approach like on Fedore where you can install 
anything

without a root and not only to your /home



Re: Wrong Shutdown

2014-05-26 Thread Otto Moerbeek
On Tue, May 27, 2014 at 07:14:49AM +0200, Otto Moerbeek wrote:

 On Mon, May 26, 2014 at 11:19:00PM +0200, frantisek holop wrote:
 
  hmm, on Mon, May 26, 2014 at 04:46:04PM +0200, Otto Moerbeek said that
   Yes it does, in most cases. But the most important is to use large
   block and/or fragments sizes, if that is acceptable for your use (it
   wastes space if you have a lot of small files).
  
  i meant to ask now for some time, what are (sensible) max
  values?  can't find it in newfs(8), disklabel(8).
  
  #size   offset  fstype [fsize bsize  cpg]
a:555913152   64  4.2BSD   8192 655361 
  
  i dont have an excessively big partition (but big enough
  for a veeery slow fsck with default newfs values) but it
  holds only media files, so i dont think i need lots of inodes.
  so i newfs-ed with -O 2 and big fsize/bsize. but i still have
  too many inodes.  maybe 10x less inodes would suffice?
  
  Filesystem SizeUsed   Avail Capacity iused   ifree  %iused  Mounted 
  on
  /dev/sd2a  263G141G122G54%   64861 8730273 1%   
  /home/f/data
  
  
  would these help in any way for media collections?
  
   -g avgfilesize
   The expected average file size for the file system in 
  bytes.
  
   -h avgfpdir
   The expected average number of files per directory on the
   file system.
  
  $ sudo tunefs -N /dev/sd2a
  tunefs: tuning /dev/sd2a
  tunefs: current settings of /dev/sd2a
  maximum contiguous block count 1
  maximum blocks per file in a cylinder group 8192
  minimum percentage of free space 0%
  optimization preference: space
  average file size: 16384
  expected number of files per directory: 64
  tunefs: no changes made
  
  default average file size is rather conservative.
  and totally untrue for the media collection :)
  
  -f
  -- 
  i am sick and tired of being sick and tired.
 
 block size is between 4096 and 65536, fragment size between 512 and
 block size.  Both are powers of 2, and block size can be 1, 2, 4, or 8
 times fragments size. For media files -b 65536 -i 65536 is fine. 

That -i should be -f

 
 If you still have too many inodes, I use -i to reduce the numbers of
 inodes during newfs, unit is bytes per inode. Newfs reports what it is
 doing, so you can see how many inodes you are getting. 
 
 The numbers for -g -and -h matter only at runtime, they do not
 influence the fs layout during newfs.
 
 [otto@lou:16]$ sudo newfs -N  -f 65536 -b 65536 /dev/rsd0l   
 newfs: reduced number of fragments per cylinder group from 163839 to
 163818 to enlarge last cylinder group
 /dev/rsd0l: 40959.8MB in 83885696 sectors of 512 bytes
 5 cylinder groups of 10238.62MB, 163818 blocks, 40960 inodes each
 super-block backups (for fsck -b #) at:
  128, 20968832, 41937536, 62906240, 83874944,
  
 [otto@lou:17]$ sudo newfs -N -i 100 -f 65536 -b 65536 /dev/rsd0l 
 newfs: reduced number of fragments per cylinder group from 163839 to
 163833 to enlarge last cylinder group
 /dev/rsd0l: 40959.8MB in 83885696 sectors of 512 bytes
 5 cylinder groups of 10239.56MB, 163833 blocks, 11264 inodes each
 super-block backups (for fsck -b #) at:
  128, 20970752, 41941376, 62912000, 83882624,
 
   -Otto



Re: Getting unswapped?

2014-05-26 Thread Alan Corey
Mostly so when I switch to a different application, maybe on a
different page of the FVWM desktop, it isn't sitting there swapped out
and it's responsive. I've usually got 20 or more applications open at
once (most just RXVT windows) and reboot about once a week.  If I
invest in RAM I expect it to get used.  Seems like Linux and FreeBSD
are better about this but I don't use them often. Now I've got 864
free, 25 swapped out (restarted Firefox).

On 5/27/14, Philip Guenther guent...@gmail.com wrote:
 On Mon, May 26, 2014 at 9:49 PM, Philip Guenther guent...@gmail.com
 wrote:

 On Mon, May 26, 2014 at 9:36 PM, Alan Corey alan01...@gmail.com wrote:

 Several hours ago I edited a few big images in The Gimp so there was
 some swapping.  I still have about 60 megs swapped out even though
 I've got 600 megs of RAM free. I've seen this before, sometimes it'll
 stay swapped out overnight until I reboot to clear it. The Gimp was
 closed hours ago.

 Is there any command to cause the swap system to do a HUP or something
 to re-evaluate the situation?


 [Stupid gmail control-enter]

 If the data has remained swapped out, it's because it hasn't been needed
 yet.  Perhaps its the process memory for a daemon which isn't being
 connected to and doesn't need to do anything.  Why would you *want* to swap
 that in?


 Philip Guenther



-- 
Credit is the root of all evil.  - AB1JX