Re: swap partition leads to instability?

2013-05-27 Thread M. V.
jb jb.1234abcd at gmail.com writes:

 M. V. bored_to_death85 at yahoo.com writes:

 recently I heard from a FreeBSD expert that I shouldn't have
 swap partition for my server, and having swap partition could
 make my server unstable. 

 I think your FB expert was up to something. I bet he spoke out
 of experience.
 
 Swapping by itself can decrease system reliability due to possible
 data corruption on swap disk or during two-way transfers, with 

 subsequent incorrect RAM and machine crash.

 But, swapping is also a symptom, not a problem.
 It is never a good idea to let it get to that point.
...

 http://blog.jcole.us/2010/09/28/mysql-swap-insanity-and-the-numa-architecture/


Very interesting point.
- do you think this could hurt my server's stability too? (most of its work is 
a noticeable amount of packet-forwarding, and other network services, like 
firewall, dhcp server, ntp server, etc)
- if so, in what conditions? can I do something to prevent this? or should I 
just get rid of the swap partition?

- does swap partition do any good for me at all? I mean if we even suppose 
nothing bad happens because of it, is it worth risking to keep it? 


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


Re:

2013-05-27 Thread jb
M. V. bored_to_death85 at yahoo.com writes:

 ... 
  Swapping by itself can decrease system reliability due to possible
  data corruption on swap disk or during two-way transfers, with 
 
  subsequent incorrect RAM and machine crash.
 
  But, swapping is also a symptom, not a problem.
  It is never a good idea to let it get to that point.
 ...
 
 
http://blog.jcole.us/2010/09/28/mysql-swap-insanity-and-the-numa-architecture/
 
 Very interesting point.
 - do you think this could hurt my server's stability too? (most of its
work is a noticeable amount of
 packet-forwarding, and other network services, like firewall, dhcp server,
ntp server, etc)
 - if so, in what conditions? can I do something to prevent this? or should
I just get rid of the swap partition?
 
 - does swap partition do any good for me at all? I mean if we even suppose
nothing bad happens because of it, is
 it worth risking to keep it? 
 
 thank you.

I wish there was a clear answer.

There are two schools practised by server owners:
- with swap space (partition or file)
  They see swapping as a symptom (of a problem, real or potential), and they 
  treat it as a useful early warning device that gives them time to act.
  If prolonged or unattended, swapping may slow down the system and even end
up   in thrashing, which is close to a terminal state.
- no swap space
  They are purists - when they set up a server for a specific purpose they   
  know it (requirements, apps run, resources assigned) and they are in charge.
  No sissy swapping, they do not trust those kernel algos, etc. 
  They know that out-of-memory kernel killer may terminate a process (perhaps 
  not the one they would expect) in case of memory crunch, but they think they 
  can live with it by closely watching system and app state indicators to
  prevent that from happening.

In the end it comes down to owner's preferences. 
If in doubt, try with and without swap space and see how it works in your
particular environment.

jb


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


FreeBSD-10.0 code freeze

2013-05-27 Thread Oded Shanoon
Hi,

I heard a rumor that the 10.0 code freeze will be in the end of July.
Is that true?
Can anyone tell me when does it plan to be?


Regards,

Oded Shanoon
Ofed-FreeBSD team
Mellanox Technologies, Raanana

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


pkg_version says my ports need to be updated?

2013-05-27 Thread Ed Flecko
Clearly, I'm doing something wrong.

:-)

I thought I was using svn to keep my ports, src and docs up to date, but
pkg_version seems to disagree.

I'm running 9.1 and I've installed ports, src, and docs as part of my
install. After that, I use subversion to (I thought) make sure everything
was up to date.

I ran these commands:

/usr/local/bin/svn up /usr/src

/usr/local/bin/svn up /usr/ports

/usr/local/bin/svn up /usr/doc

and then I ran:


pkg_version -vIL =



and it says  needs updating (index has ...) on about 1 dozen items. So my
index is out of sync with my ports???

What did I screw up and how do I correct it?

Thank you!

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


Re: pkg_version says my ports need to be updated?

2013-05-27 Thread RW
On Mon, 27 May 2013 11:00:52 -0700
Ed Flecko wrote:

 Clearly, I'm doing something wrong.
 
 :-)
 
 I thought I was using svn to keep my ports, src and docs up to date,
 but pkg_version seems to disagree.
 
 I'm running 9.1 and I've installed ports, src, and docs as part of my
 install. After that, I use subversion to (I thought) make sure
 everything was up to date.
 
 I ran these commands:
 
 /usr/local/bin/svn up /usr/src
 
 /usr/local/bin/svn up /usr/ports
 
 /usr/local/bin/svn up /usr/doc
 
 and it says  needs updating (index has ...) on about 1 dozen items.
 So my index is out of sync with my ports???

You updated the source code for the base system, and the ports tree
(instructions for building and installing packages from source). You
updated neither the base system nor the installed packages. Take
another look at the handbook.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkg_version says my ports need to be updated?

2013-05-27 Thread Matthew Seaman
On 27/05/2013 19:00, Ed Flecko wrote:
 Clearly, I'm doing something wrong.
 
 :-)
 
 I thought I was using svn to keep my ports, src and docs up to date, but
 pkg_version seems to disagree.
 
 I'm running 9.1 and I've installed ports, src, and docs as part of my
 install. After that, I use subversion to (I thought) make sure everything
 was up to date.
 
 I ran these commands:
 
 /usr/local/bin/svn up /usr/src
 
 /usr/local/bin/svn up /usr/ports
 
 /usr/local/bin/svn up /usr/doc
 
 and then I ran:
 
 
 pkg_version -vIL =
 
 
 
 and it says  needs updating (index has ...) on about 1 dozen items. So my
 index is out of sync with my ports???
 
 What did I screw up and how do I correct it?

You seem to have updated the ports tree, which is a collection of
recipes for how to build ported software, but not actually updated by
rebuilding any of the ported software that has become out of date.

Try installing ports-mgmt/portmaster and then running

portmaster -a

Cheers,

Matthew
-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: pkg_version says my ports need to be updated?

2013-05-27 Thread Ed Flecko
Thank you both!

Since I want to know the correct way (or one of I'm sure many correct
ways) of initially installing the OS and then getting it up to date (and
staying up to date), can you tell me what I did wrong and/or what I might
want to do differently?

Ed


On Mon, May 27, 2013 at 11:16 AM, Matthew Seaman matt...@freebsd.orgwrote:

 On 27/05/2013 19:00, Ed Flecko wrote:
  Clearly, I'm doing something wrong.
 
  :-)
 
  I thought I was using svn to keep my ports, src and docs up to date, but
  pkg_version seems to disagree.
 
  I'm running 9.1 and I've installed ports, src, and docs as part of my
  install. After that, I use subversion to (I thought) make sure everything
  was up to date.
 
  I ran these commands:
 
  /usr/local/bin/svn up /usr/src
 
  /usr/local/bin/svn up /usr/ports
 
  /usr/local/bin/svn up /usr/doc
 
  and then I ran:
 
 
  pkg_version -vIL =
 
 
 
  and it says  needs updating (index has ...) on about 1 dozen items. So
 my
  index is out of sync with my ports???
 
  What did I screw up and how do I correct it?

 You seem to have updated the ports tree, which is a collection of
 recipes for how to build ported software, but not actually updated by
 rebuilding any of the ported software that has become out of date.

 Try installing ports-mgmt/portmaster and then running

 portmaster -a

 Cheers,

 Matthew
 --
 Dr Matthew J Seaman MA, D.Phil.
 PGP: http://www.infracaninophile.co.uk/pgpkey



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


Re: pkg_version says my ports need to be updated?

2013-05-27 Thread Kurt Buff
Read the relevant portions of the handbook
Chapter 5:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

Chapter 25:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading.html

Then also:
man portmaster
man freebsd-update


On Mon, May 27, 2013 at 11:49 AM, Ed Flecko edfle...@gmail.com wrote:
 Thank you both!

 Since I want to know the correct way (or one of I'm sure many correct
 ways) of initially installing the OS and then getting it up to date (and
 staying up to date), can you tell me what I did wrong and/or what I might
 want to do differently?

 Ed


 On Mon, May 27, 2013 at 11:16 AM, Matthew Seaman matt...@freebsd.orgwrote:

 On 27/05/2013 19:00, Ed Flecko wrote:
  Clearly, I'm doing something wrong.
 
  :-)
 
  I thought I was using svn to keep my ports, src and docs up to date, but
  pkg_version seems to disagree.
 
  I'm running 9.1 and I've installed ports, src, and docs as part of my
  install. After that, I use subversion to (I thought) make sure everything
  was up to date.
 
  I ran these commands:
 
  /usr/local/bin/svn up /usr/src
 
  /usr/local/bin/svn up /usr/ports
 
  /usr/local/bin/svn up /usr/doc
 
  and then I ran:
 
 
  pkg_version -vIL =
 
 
 
  and it says  needs updating (index has ...) on about 1 dozen items. So
 my
  index is out of sync with my ports???
 
  What did I screw up and how do I correct it?

 You seem to have updated the ports tree, which is a collection of
 recipes for how to build ported software, but not actually updated by
 rebuilding any of the ported software that has become out of date.

 Try installing ports-mgmt/portmaster and then running

 portmaster -a

 Cheers,

 Matthew
 --
 Dr Matthew J Seaman MA, D.Phil.
 PGP: http://www.infracaninophile.co.uk/pgpkey



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


Recommendations for 64GB USB 3.0 Sticks?

2013-05-27 Thread Jens Schweikhardt
hello, world\n

I have a problem with a USB 2.0 64GB Stick, that's not recognized by
FreeBSD 9 (Corsair Survivor). I have also read other people having
problems with large size sticks (=64GB). Has anyone a recommendation
for a 64GB USB 3.0 stick? Preferably with read and write speeds
=100MByte/s, respectively.

Regards,

Jens
-- 
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkg_version says my ports need to be updated?

2013-05-27 Thread Warren Block

On Mon, 27 May 2013, Ed Flecko wrote:


Since I want to know the correct way (or one of I'm sure many correct
ways) of initially installing the OS and then getting it up to date (and
staying up to date), can you tell me what I did wrong and/or what I might
want to do differently?


A short overview:
http://www.wonkity.com/~wblock/docs/html/portupgrade.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


slice and partition in FreeBSD 9.1

2013-05-27 Thread J Ronald
During the installation of FreeBSD 9.1 using bsdintall, it seems the concept 
has been changed.
In the Partition Editor, using GPT, no slice concept, no partition that using 
a/b/c/d.
Is the partition mechanism simplified here?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


cannot use ftp utility throught proxy

2013-05-27 Thread vadims

Hello!
Can someone help me, please?

Have no luck seting up ftp utility for using proxy.
Already have set environment variables:
FTP_PROXY=http://proxyserver:8080
HTTP_PROXY=http://proxyserver:8080

When try to connect:
root# root@zerver:/root # ftp -a ftp2.FreeBSD.org
root# ftp: Can't connect to `128.205.32.24:21': Operation timed out
root# ftp: Can't connect to `ftp2.FreeBSD.org:ftp'

Used tcpdump to check where it connects:
root# tcpdump -n -ttt -i em0 port ftp

 I can see, that ftp is trying to connect directly to 128.205.32.24.21.

Tried to use this env variable, but without acceptable results:
FETCH_CMD=/usr/bin/fetch -ARrvp -T 10

uname -a
9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64


Excuses my language, not native English.

Have a lucky day!
VS.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: slice and partition in FreeBSD 9.1

2013-05-27 Thread Polytropon
On Mon, 27 May 2013 21:13:44 -0700 (PDT), J Ronald wrote:
 During the installation of FreeBSD 9.1 using bsdintall, it seems the concept 
 has been changed.
 In the Partition Editor, using GPT, no slice concept, no partition that 
 using a/b/c/d.

That is correct. Instead of the MBR-style partition names
(like da0s1a or da0a), GPT-style partition names (like da0p1)
are being used. As known, they carry a UFS file system.



 Is the partition mechanism simplified here?

No. It's a _different_ mechanism.

MBR: The old system: fdisk, bsdlabel, newfs - slices  partitions
(slices optional: dedicated)

GPT: The new system: gpart, newfs - partitions (different kind of
compared to MBR, of course)



See this comparison:

http://www.wonkity.com/~wblock/docs/html/disksetup.html

http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html

http://www.freebsd.org/doc/handbook/disks-adding.html



Still you have the choice to use MBR partitioning if this is
a requirement (maybe due to hardware that has problems booting
GPT partitioned media? who knows).





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cannot use ftp utility throught proxy

2013-05-27 Thread Polytropon
On Tue, 28 May 2013 07:08:12 +0300 (EEST), vad...@libre.lv wrote:
 Hello!
 Can someone help me, please?
 
 Have no luck seting up ftp utility for using proxy.
 Already have set environment variables:
 FTP_PROXY=http://proxyserver:8080
 HTTP_PROXY=http://proxyserver:8080
 
 When try to connect:
 root# root@zerver:/root # ftp -a ftp2.FreeBSD.org
 root# ftp: Can't connect to `128.205.32.24:21': Operation timed out
 root# ftp: Can't connect to `ftp2.FreeBSD.org:ftp'
 
 Used tcpdump to check where it connects:
 root# tcpdump -n -ttt -i em0 port ftp
 
  I can see, that ftp is trying to connect directly to 128.205.32.24.21.

I think I can see the problem. Please check man ftp for the
correct name of the environment variables. Unlike typical for
many other programs, those for ftp are written in lower case:

 ftp_proxy  URL of FTP proxy to use when making FTP URL requests (if
not defined, use the standard FTP protocol).

See http_proxy for further notes about proxy use.

 http_proxy URL of HTTP proxy to use when making HTTP URL requests.
If proxy authentication is required and there is a user-
name and password in this URL, they will automatically be
used in the first attempt to authenticate to the proxy.

If ``unsafe'' URL characters are required in the username
or password (for example `@' or `/'), encode them with RFC
1738 `%XX' encoding.

Note that the use of a username and password in ftp_proxy
and http_proxy may be incompatible with other programs
that use it (such as lynx(1)).

NOTE: this is not used for interactive sessions, only for
command-line fetches.

You can also interactively set those (again, see man ftp for
more details).





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cannot use ftp utility throught proxy

2013-05-27 Thread staticsafe
On Tue, May 28, 2013 at 07:08:12AM +0300, vad...@libre.lv wrote:
 Hello!
 Can someone help me, please?
 
 Have no luck seting up ftp utility for using proxy.
 Already have set environment variables:
 FTP_PROXY=http://proxyserver:8080
 HTTP_PROXY=http://proxyserver:8080
 
 When try to connect:
 root# root@zerver:/root # ftp -a ftp2.FreeBSD.org
 root# ftp: Can't connect to `128.205.32.24:21': Operation timed out
 root# ftp: Can't connect to `ftp2.FreeBSD.org:ftp'
 
 Used tcpdump to check where it connects:
 root# tcpdump -n -ttt -i em0 port ftp
 
  I can see, that ftp is trying to connect directly to 128.205.32.24.21.
 
 Tried to use this env variable, but without acceptable results:
 FETCH_CMD=/usr/bin/fetch -ARrvp -T 10
 
 uname -a
 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC
 2013 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
 amd64
 
 Excuses my language, not native English.
 
 Have a lucky day!
 VS.

According to the ftp manpage, the variables for proxying are:

 ftp_proxy  URL of FTP proxy to use when making FTP URL requests (if
not defined, use the standard FTP protocol).

See http_proxy for further notes about proxy use.

 http_proxy URL of HTTP proxy to use when making HTTP URL requests.
If proxy authentication is required and there is a user-
name and password in this URL, they will automatically be
used in the first attempt to authenticate to the proxy.

If ``unsafe'' URL characters are required in the username
or password (for example `@' or `/'), encode them with
RFC3986 `%XX' encoding.

Note that the use of a username and password in ftp_proxy
and http_proxy may be incompatible with other programs
that use it (such as lynx(1)).

NOTE: this is not used for interactive sessions, only for
command-line fetches.

Notice the capitalization, ftp_proxy as opposed to FTP_PROXY. Not sure why
environment variables are not all caps, seems inconsistent.
-- 
staticsafe
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb
Don't CC me! I'm subscribed to whatever list I just posted on.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cannot use ftp utility throught proxy

2013-05-27 Thread vadims

Tried ftp_proxy=http://proxyserver:8080; - no connection to proxy server.

root@:/root # env
TERM=screen
FTP_PROXY=http://proxyserver:8080
HTTP_PROXY=http://proxyserver:8080
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
SHELL=/bin/csh
HOME=/root
USER=root
HOSTTYPE=FreeBSD
VENDOR=amd
OSTYPE=FreeBSD
MACHTYPE=x86_64
SHLVL=1
PWD=/root
LOGNAME=root
GROUP=wheel
HOST=myserver
EDITOR=vi
PAGER=more
BLOCKSIZE=K
FETCH_CMD=/usr/bin/fetch -ARrvp -T 10
ftp_proxy=http://proxyserver:8080

Thank You!

VS.

On Tue, 28 May 2013, Polytropon wrote:


On Tue, 28 May 2013 07:08:12 +0300 (EEST), vad...@libre.lv wrote:

Hello!
Can someone help me, please?

Have no luck seting up ftp utility for using proxy.
Already have set environment variables:
FTP_PROXY=http://proxyserver:8080
HTTP_PROXY=http://proxyserver:8080

When try to connect:
root# root@zerver:/root # ftp -a ftp2.FreeBSD.org
root# ftp: Can't connect to `128.205.32.24:21': Operation timed out
root# ftp: Can't connect to `ftp2.FreeBSD.org:ftp'

Used tcpdump to check where it connects:
root# tcpdump -n -ttt -i em0 port ftp

 I can see, that ftp is trying to connect directly to 128.205.32.24.21.


I think I can see the problem. Please check man ftp for the
correct name of the environment variables. Unlike typical for
many other programs, those for ftp are written in lower case:

ftp_proxy  URL of FTP proxy to use when making FTP URL requests (if
   not defined, use the standard FTP protocol).

   See http_proxy for further notes about proxy use.

http_proxy URL of HTTP proxy to use when making HTTP URL requests.
   If proxy authentication is required and there is a user-
   name and password in this URL, they will automatically be
   used in the first attempt to authenticate to the proxy.

   If ``unsafe'' URL characters are required in the username
   or password (for example `@' or `/'), encode them with RFC
   1738 `%XX' encoding.

   Note that the use of a username and password in ftp_proxy
   and http_proxy may be incompatible with other programs
   that use it (such as lynx(1)).

   NOTE: this is not used for interactive sessions, only for
   command-line fetches.

You can also interactively set those (again, see man ftp for
more details).





--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


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


when root partition is mounted in boot time?

2013-05-27 Thread saeedeh motlagh
hello all,

i have a question about root partition. i want to know when this partition
is mounted in bootstrap process? is root mounted before kernel loading?

more over, i heard that root partition is mounted read-only in boot process
before loading kernel. after that kernel is loaded and all other things are
done (such as mounting other devices, running rc scripts, ...), then the
root in unmounted and remount read-write. is it true? if not, what exactly
happened for root partition in boot time and when is mounted?

t
​hanks in advance
*s.motlagh*
**
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org