Fwd: how to make a etc/rc.d start at boot time

2013-08-11 Thread Aryeh Friedman
-- Forwarded message --
From: Aryeh Friedman aryeh.fried...@gmail.com
Date: Sun, Aug 11, 2013 at 2:07 AM
Subject: Re: how to make a etc/rc.d start at boot time
To: Rui Paulo rpa...@freebsd.org


#!/bin/sh
#
# Start/stop XXX at boot time
#
# Copyright (C) 2013 XXX

. /etc/rc.subr

name=XXX
start_cmd=${name}_start
stop_cmd=:

XXX_start() {
echo $name started.
/usr/local/openjdk6/bin/java -cp \
   /usr/local/share/XXX/XXX.jar \
   XXX.yyy \
   /usr/local/etc/XXX/YYY
}

load_rc_config $name

run_rc_command $1


On Sun, Aug 11, 2013 at 1:37 AM, Rui Paulo rpa...@freebsd.org wrote:
 On 10 Aug 2013, at 22:31, Aryeh Friedman aryeh.fried...@gmail.com wrote:

 I am creating a port for something that needs to start a daemon at
 boot time I have it so I can call onestart on it but XXX_enable=YES
 in /etc/rc.conf fails to load it i.e.


 /usr/local/etc/rc.d/XXX onestart -- works
 XXX_enable=YES -- fails

 Please post your script.

 --
 Rui Paulo



___
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: Discussing ideas or wish list

2013-08-11 Thread Yuri

On 08/09/2013 09:34, Patrick Dung wrote:

Some (crazy?) ideas:
a) Is it possible to install multiple Perl versions in the same server?
Each third party Perl packages would linked to the corresponding Perl versions?
Users have to update /usr/bin/perl to link to the desired Perl version (or 
using wrapper mechanism like /etc/mail/mail.conf).


Being able to create multiple unique environments on the same host is 
very beneficial.


I believe Oracle Solaris on ZFS is able to install individual packages 
into separate zones, and ZFS can share certain zones between each other.
Manipulating sharing rules allows creation of exactly this: various 
unique set of packages in top-level zones. So for example, perl and all 
its dependent packages can be installed multiple times in multiple 
versions in different ZFS zones on top of shared dependency packages.


Unfortunately, FreeBSD version of ZFS lacks zones.

Yuri
___
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


[PATCH] Add 4K QUIRK for Intel X25-M, MARVELL SD88SA02 and OCZ Agility 2

2013-08-11 Thread Richard Yao
Signed-off-by: Richard Yao r...@gentoo.org
---
 sys/cam/ata/ata_da.c   | 24 
 sys/cam/scsi/scsi_da.c | 24 
 2 files changed, 48 insertions(+)

diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c
index f201231..b7f293d 100644
--- a/sys/cam/ata/ata_da.c
+++ b/sys/cam/ata/ata_da.c
@@ -349,6 +349,14 @@ static struct ada_quirk_entry ada_quirk_table[] =
},
{
/*
+* Intel X25-M Series SSDs
+* 4k optimised  trim only works in 4k requests + 4k aligned
+*/
+   { T_DIRECT, SIP_MEDIA_FIXED, *, INTEL SSDSA2M*, * },
+   /*quirks*/ADA_Q_4K
+   },
+   {
+   /*
 * Kingston E100 Series SSDs
 * 4k optimised  trim only works in 4k requests + 4k aligned
 */
@@ -365,6 +373,22 @@ static struct ada_quirk_entry ada_quirk_table[] =
},
{
/*
+* Marvell SSD (entry taken from Open Solaris)
+* 4k optimised  trim only works in 4k requests + 4k aligned
+*/
+   { T_DIRECT, SIP_MEDIA_FIXED, *, MARVELL SD88SA02*, * },
+   /*quirks*/ADA_Q_4K
+   },
+   {
+   /*
+* OCZ Agility 2 SSDs
+* 4k optimised  trim only works in 4k requests + 4k aligned
+*/
+   { T_DIRECT, SIP_MEDIA_FIXED, *, OCZ-AGILITY2*, * },
+   /*quirks*/ADA_Q_4K
+   },
+   {
+   /*
 * OCZ Agility 3 SSDs
 * 4k optimised  trim only works in 4k requests + 4k aligned
 */
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 617afbd..df895be 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -1008,6 +1008,14 @@ static struct da_quirk_entry da_quirk_table[] =
},
{
/*
+* Intel X25-M Series SSDs
+* 4k optimised  trim only works in 4k requests + 4k aligned
+*/
+   { T_DIRECT, SIP_MEDIA_FIXED, *, INTEL SSDSA2M*, * },
+   /*quirks*/ADA_Q_4K
+   },
+   {
+   /*
 * Kingston E100 Series SSDs
 * 4k optimised  trim only works in 4k requests + 4k aligned
 */
@@ -1024,6 +1032,22 @@ static struct da_quirk_entry da_quirk_table[] =
},
{
/*
+* Marvell SSD (entry taken from Open Solaris)
+* 4k optimised  trim only works in 4k requests + 4k aligned
+*/
+   { T_DIRECT, SIP_MEDIA_FIXED, *, MARVELL SD88SA02*, * },
+   /*quirks*/ADA_Q_4K
+   },
+   {
+   /*
+* OCZ Agility 2 SSDs
+* 4k optimised  trim only works in 4k requests + 4k aligned
+*/
+   { T_DIRECT, SIP_MEDIA_FIXED, *, OCZ-AGILITY2*, * },
+   /*quirks*/ADA_Q_4K
+   },
+   {
+   /*
 * OCZ Agility 3 SSDs
 * 4k optimised  trim only works in 4k requests + 4k aligned
 */
-- 
1.8.1.5

___
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: [PATCH] Add 4K QUIRK for Intel X25-M, MARVELL SD88SA02 and OCZ Agility 2

2013-08-11 Thread Steven Hartland

Thanks Richard I'll commit these when I get in the office next week.

   Regards
   Steve
- Original Message - 
From: Richard Yao r...@gentoo.org

To: hack...@freebsd.org
Cc: Richard Yao r...@gentoo.org; Eitan Adler ead...@freebsd.org
Sent: Sunday, August 11, 2013 1:12 PM
Subject: [PATCH] Add 4K QUIRK for Intel X25-M, MARVELL SD88SA02 and OCZ Agility 
2



Signed-off-by: Richard Yao r...@gentoo.org
---
sys/cam/ata/ata_da.c   | 24 
sys/cam/scsi/scsi_da.c | 24 
2 files changed, 48 insertions(+)

diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c
index f201231..b7f293d 100644
--- a/sys/cam/ata/ata_da.c
+++ b/sys/cam/ata/ata_da.c
@@ -349,6 +349,14 @@ static struct ada_quirk_entry ada_quirk_table[] =
 },
 {
 /*
+ * Intel X25-M Series SSDs
+ * 4k optimised  trim only works in 4k requests + 4k aligned
+ */
+ { T_DIRECT, SIP_MEDIA_FIXED, *, INTEL SSDSA2M*, * },
+ /*quirks*/ADA_Q_4K
+ },
+ {
+ /*
 * Kingston E100 Series SSDs
 * 4k optimised  trim only works in 4k requests + 4k aligned
 */
@@ -365,6 +373,22 @@ static struct ada_quirk_entry ada_quirk_table[] =
 },
 {
 /*
+ * Marvell SSD (entry taken from Open Solaris)
+ * 4k optimised  trim only works in 4k requests + 4k aligned
+ */
+ { T_DIRECT, SIP_MEDIA_FIXED, *, MARVELL SD88SA02*, * },
+ /*quirks*/ADA_Q_4K
+ },
+ {
+ /*
+ * OCZ Agility 2 SSDs
+ * 4k optimised  trim only works in 4k requests + 4k aligned
+ */
+ { T_DIRECT, SIP_MEDIA_FIXED, *, OCZ-AGILITY2*, * },
+ /*quirks*/ADA_Q_4K
+ },
+ {
+ /*
 * OCZ Agility 3 SSDs
 * 4k optimised  trim only works in 4k requests + 4k aligned
 */
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 617afbd..df895be 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -1008,6 +1008,14 @@ static struct da_quirk_entry da_quirk_table[] =
 },
 {
 /*
+ * Intel X25-M Series SSDs
+ * 4k optimised  trim only works in 4k requests + 4k aligned
+ */
+ { T_DIRECT, SIP_MEDIA_FIXED, *, INTEL SSDSA2M*, * },
+ /*quirks*/ADA_Q_4K
+ },
+ {
+ /*
 * Kingston E100 Series SSDs
 * 4k optimised  trim only works in 4k requests + 4k aligned
 */
@@ -1024,6 +1032,22 @@ static struct da_quirk_entry da_quirk_table[] =
 },
 {
 /*
+ * Marvell SSD (entry taken from Open Solaris)
+ * 4k optimised  trim only works in 4k requests + 4k aligned
+ */
+ { T_DIRECT, SIP_MEDIA_FIXED, *, MARVELL SD88SA02*, * },
+ /*quirks*/ADA_Q_4K
+ },
+ {
+ /*
+ * OCZ Agility 2 SSDs
+ * 4k optimised  trim only works in 4k requests + 4k aligned
+ */
+ { T_DIRECT, SIP_MEDIA_FIXED, *, OCZ-AGILITY2*, * },
+ /*quirks*/ADA_Q_4K
+ },
+ {
+ /*
 * OCZ Agility 3 SSDs
 * 4k optimised  trim only works in 4k requests + 4k aligned
 */
--
1.8.1.5

___
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




This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone +44 845 868 1337
or return the E.mail to postmas...@multiplay.co.uk.

___
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: [PATCH] Add 4K QUIRK for Intel X25-M, MARVELL SD88SA02 and OCZ Agility 2

2013-08-11 Thread Richard Yao
Is there any possibility that these quirks could be added to the
upcoming 9.2 release?

Pools composed of affected disks will suffer from performance issues
until they are reformatted with the correct block size. In addition, a
certain benchmarking site, whose benchmarks are often fodder for trolls,
uses the Intel X25-M in its benchmarks. Adding the quirk to 9.2 would
eliminate an unfair handicap on FreeBSD from their next set of benchmarks.

On 08/11/2013 09:48 AM, Steven Hartland wrote:
 Thanks Richard I'll commit these when I get in the office next week.
 
Regards
Steve
 - Original Message - From: Richard Yao r...@gentoo.org
 To: hack...@freebsd.org
 Cc: Richard Yao r...@gentoo.org; Eitan Adler ead...@freebsd.org
 Sent: Sunday, August 11, 2013 1:12 PM
 Subject: [PATCH] Add 4K QUIRK for Intel X25-M, MARVELL SD88SA02 and OCZ
 Agility 2
 
 
 Signed-off-by: Richard Yao r...@gentoo.org
 ---
 sys/cam/ata/ata_da.c   | 24 
 sys/cam/scsi/scsi_da.c | 24 
 2 files changed, 48 insertions(+)

 diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c
 index f201231..b7f293d 100644
 --- a/sys/cam/ata/ata_da.c
 +++ b/sys/cam/ata/ata_da.c
 @@ -349,6 +349,14 @@ static struct ada_quirk_entry ada_quirk_table[] =
  },
  {
  /*
 + * Intel X25-M Series SSDs
 + * 4k optimised  trim only works in 4k requests + 4k aligned
 + */
 + { T_DIRECT, SIP_MEDIA_FIXED, *, INTEL SSDSA2M*, * },
 + /*quirks*/ADA_Q_4K
 + },
 + {
 + /*
  * Kingston E100 Series SSDs
  * 4k optimised  trim only works in 4k requests + 4k aligned
  */
 @@ -365,6 +373,22 @@ static struct ada_quirk_entry ada_quirk_table[] =
  },
  {
  /*
 + * Marvell SSD (entry taken from Open Solaris)
 + * 4k optimised  trim only works in 4k requests + 4k aligned
 + */
 + { T_DIRECT, SIP_MEDIA_FIXED, *, MARVELL SD88SA02*, * },
 + /*quirks*/ADA_Q_4K
 + },
 + {
 + /*
 + * OCZ Agility 2 SSDs
 + * 4k optimised  trim only works in 4k requests + 4k aligned
 + */
 + { T_DIRECT, SIP_MEDIA_FIXED, *, OCZ-AGILITY2*, * },
 + /*quirks*/ADA_Q_4K
 + },
 + {
 + /*
  * OCZ Agility 3 SSDs
  * 4k optimised  trim only works in 4k requests + 4k aligned
  */
 diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
 index 617afbd..df895be 100644
 --- a/sys/cam/scsi/scsi_da.c
 +++ b/sys/cam/scsi/scsi_da.c
 @@ -1008,6 +1008,14 @@ static struct da_quirk_entry da_quirk_table[] =
  },
  {
  /*
 + * Intel X25-M Series SSDs
 + * 4k optimised  trim only works in 4k requests + 4k aligned
 + */
 + { T_DIRECT, SIP_MEDIA_FIXED, *, INTEL SSDSA2M*, * },
 + /*quirks*/ADA_Q_4K
 + },
 + {
 + /*
  * Kingston E100 Series SSDs
  * 4k optimised  trim only works in 4k requests + 4k aligned
  */
 @@ -1024,6 +1032,22 @@ static struct da_quirk_entry da_quirk_table[] =
  },
  {
  /*
 + * Marvell SSD (entry taken from Open Solaris)
 + * 4k optimised  trim only works in 4k requests + 4k aligned
 + */
 + { T_DIRECT, SIP_MEDIA_FIXED, *, MARVELL SD88SA02*, * },
 + /*quirks*/ADA_Q_4K
 + },
 + {
 + /*
 + * OCZ Agility 2 SSDs
 + * 4k optimised  trim only works in 4k requests + 4k aligned
 + */
 + { T_DIRECT, SIP_MEDIA_FIXED, *, OCZ-AGILITY2*, * },
 + /*quirks*/ADA_Q_4K
 + },
 + {
 + /*
  * OCZ Agility 3 SSDs
  * 4k optimised  trim only works in 4k requests + 4k aligned
  */
 -- 
 1.8.1.5

 ___
 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

 
 
 This e.mail is private and confidential between Multiplay (UK) Ltd. and
 the person or entity to whom it is addressed. In the event of
 misdirection, the recipient is prohibited from using, copying, printing
 or otherwise disseminating it or any information contained in it.
 In the event of misdirection, illegible or incomplete transmission
 please telephone +44 845 868 1337
 or return the E.mail to postmas...@multiplay.co.uk.
 




signature.asc
Description: OpenPGP digital signature


min. sys. requirements

2013-08-11 Thread Aryeh Friedman
Where would I find documentation on the minimum system requirements
for 9.2 (not 9.1) and 10-CURRENT?  I also need to know the
requirements for the ports I am installing the top level ones are:

devel/aegis
devel/cook
devel/fhist
devel/tardy
devel/thistest (forth coming as me as the maintainer)
editors/vim
emulator/XXX (forth coming as me as the maintainer -- name withheld
til trademarks are applied for)
java/openjdk6
secuirty/sudo
www/tomcat7

Reason for asking is I am making a VM image for bhyve(4) and want to
know how much ram, cpu and disk to allocate for the VM
___
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