DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
Old 3rd April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by jggimi View Post
Do you have swap space defined, mfaridi? How much?

180 minutes (2.5 hrs) is -not usually enough- to confirm RAM is working. I've had memory tests fail after 22 hours.
I use auto-allocated method for partitioning HDD , and do not partition HDD manually
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 3rd April 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Provide the complete output of the following command:

$ swapctl -l

Place a [code] tag before the output, and [/code] afterwards to preserve formatting.
Reply With Quote
Old 3rd April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by ocicat View Post
Provide the complete output of the following command:

$ swapctl -l

Place a [code] tag before the output, and [/code] afterwards to preserve formatting.
this is output
Code:
Device      512-blocks     Used    Avail Capacity  Priority
swap_device     522608        0   522608     0%    0
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 3rd April 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Another request & a suggestion:
  • Provide the output of the following two commands:

    $ df -h
    $ pkg_info

    Again, wrap the output between [code] & [/code] tags.
  • I would suggest testing memory for at least 24 hours.
Reply With Quote
Old 3rd April 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

I'm going to disagree with the assessment of memory problems, this does appear to be a hardware or driver issue.. but the system shouldn't be locking up, as it does appear the the X server is trying to terminate.

I suppose for the time being you can use the vesa vbe driver instead, it will be slow.. but you should at least get a desktop.
Reply With Quote
Old 4th April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by ocicat View Post
Another request & a suggestion:
  • Provide the output of the following two commands:

    $ df -h
    $ pkg_info

    Again, wrap the output between [code] & [/code] tags.
  • I would suggest testing memory for at least 24 hours.
this is
Code:
df -h
Code:
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/wd0a     1005M   42.2M    912M     4%    /
/dev/wd0k     13.4G    364M   12.4G     3%    /home
/dev/wd0d      1.8G    6.0K    1.7G     0%    /tmp
/dev/wd0f     1021M    928M   42.3M    96%    /usr
/dev/wd0g     1005M    145M    809M    15%    /usr/X11R6
/dev/wd0h      3.0G    909M    2.0G    31%    /usr/local
/dev/wd0j      1.6G    2.0K    1.5G     0%    /usr/obj
/dev/wd0i      1.6G    2.0K    1.5G     0%    /usr/src
/dev/wd0e      2.8G   32.0M    2.7G     1%    /var
and this is
Code:
pkg_info
Code:
ORBit2-2.14.17p0    high-performance CORBA Object Request Broker
atk-1.24.0          accessibility toolkit used by gtk+
autoconf-2.61p3     automatically configure source code on many Un*x platforms
bzip2-1.0.5         block-sorting file compressor, unencumbered
cairo-1.8.8         vector graphics library
cdparanoia-3.a9.8p0 CDDA reading utility with extra data verification features
curl-7.19.5         get files from FTP, Gopher, HTTP or HTTPS servers
db-4.6.21p0         Berkeley DB package, revision 4
dbus-1.2.14p0       message bus system
dbus-glib-0.80p0    glib bindings for dbus message system
dbus-python-0.83.0p1 dbus bindings for Python
desktop-file-utils-0.15 utilities for 'desktop' entries
esound-0.2.41v0     sound library for Enlightenment
faad-2.6.1          MPEG-2 and MPEG-4 AAC decoder
feh-1.3.4           lightweight image viewer
firefox35-3.5       redesign of Mozilla's browser component
fluxbox-0.9.15.1p1  window manager based on the original Blackbox code
gconf2-2.24.0p0     configuration database system for GNOME
gettext-0.17p0      GNU gettext
ghostscript-fonts-8.11p0 35 standard PostScript fonts with Adobe name aliases
giblib-1.2.4p3      utility library including a imlib2 wrapper
glib2-2.18.4p3      general-purpose utility library
glitz-0.5.6p1       OpenGL image compositing library
gperf-3.0.1p1       perfect hash functions, to help write parsers
gtar-1.22           GNU version of the traditional tape archiver
gtk+2-2.14.7p0      multi-platform graphical toolkit
help2man-1.29p0     GNU help2man
hicolor-icon-theme-0.10p4 high-color icon theme shell for GNOME and KDE
icu4c-4.2           International Components for Unicode
imlib2-1.4.2        image manipulation library
jasper-1.900.1p0    reference implementation of JPEG-2000
javaPathHelper-0.3  helper script for launching java applications
jlint-3.0           Java program analyzer and checker
jpeg-6bp5           IJG's JPEG compression utilities
lame-3.98.2         lame ain't an MP3 encoder
libIDL-0.8.13       IDL parsing library
libaudiofile-0.2.6p2 SGI audiofile library clone
libdv-0.104p4       Quasar DV codec
libgadu-1.8.2v0     implementation of Gadu-Gadu IM protocol
libgcrypt-1.4.4p0   crypto library based on code used in GnuPG
libglade2-2.6.4     library for loading GLADE interface files at runtime
libgpg-error-1.5p0  error codes for GnuPG related software
libgsf-1.14.15      GNOME Structured File library
libiconv-1.13       character set conversion library
libid3tag-0.15.1bp2 library for reading ID3 tags
libidn-1.11         internationalized string handling
libltdl-1.5.26      GNU libtool system independent dlopen wrapper
libmpcdec-1.2.6     musepack decoder library
libogg-1.1.3        Ogg bitstream library
libpurple-2.5.7     multi-protocol instant messaging library
libstdc++-4.2.4p3   GNU compiler collection: C++ compiler library
libtheora-1.0       open video codec
libtool-1.5.26p0    generic shared library support script
libungif-4.1.4p1    tools and library routines for working with GIF images
libwpd-0.8.9p1      import and export WordPerfect(tm) documents
libxml-2.6.32p2     XML parsing library
libxslt-1.1.24p2    XSLT C Library for GNOME
lzo-1.08p1          portable speedy lossless data compression library
lzop-1.01p0         fast file compressor similar to gzip
meanwhile-1.0.2p1   implementation of Lotus Sametime Community Client protocol
metaauto-0.9        wrapper for gnu auto*
mozilla-thunderbird-2.0.0.22 redesign of Mozilla's mail component
mplayer-1.0rc2p24   movie player supporting MPEG, DivX, AVI, ASF, MOV & more
mysql-client-5.0.83 multithreaded SQL database (client)
mysql-server-5.0.83 multithreaded SQL database (server)
neon-0.28.3         HTTP and WebDAV client library, with C interface
nspr-4.7.3p0        Netscape Portable Runtime
nss-3.12p0          libraries to support development of security-enabled apps
openmotif-2.3.0p0   Motif toolkit
openoffice-3.1.0p6  multi-platform productivity suite
p5-DBD-mysql-4.010  MySQL drivers for the Perl DBI
p5-DBI-1.607        unified perl interface for database access
p5-Net-Daemon-0.43  extension for portable daemons
p5-PlRPC-0.2018p0   module for writing rpc servers and clients
pango-1.22.4p0      library for layout and rendering of text
pcre-7.9            perl-compatible regular expression library
pidgin-2.5.7        multi-protocol instant messaging client
png-1.2.35          library for manipulating PNG images
popt-1.7p0          getopt(3)-like library with a number of enhancements
py-Numeric-23.1p4   fast array facility to the Python language
py-cairo-1.8.2p0    cairo bindings for Python
py-gobject-2.16.1p0 Python bindings for glib2 gobject
py-gtk2-2.14.1p0    GTK+2 Python bindings
python-2.5.4p1      interpreted object-oriented programming language
raptor-1.4.18       RDF Parser Toolkit for Redland
redland-1.0.8       A high-level interface for RDF
silc-toolkit-1.1.9p2 toolkit for the development of SILC applications
speex-1.2rc1        patent-free speech codec
sqlite3-3.6.13p0    embedded SQL implementation
startup-notification-0.9 library for tracking application startup
t1lib-5.1.0p1       Type 1 rasterizer library for UNIX/X11
tiff-3.8.2p4        tools and library routines for working with TIFF images
transmission-1.72p0 lightweight BitTorrent command line and daemon client
x264-20090204       free H264/AVC encoder
xpdf-3.02.3p0       PDF viewer for X11
xpdf-utils-3.02.3   PDF conversion tools
xvidcore-1.2.2      ISO MPEG-4 compliant video codec
I wish this output help us to solve this problem.
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 4th April 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by mfaridi View Post
I wish this output help us to solve this problem.
Are you testing your memory?
Reply With Quote
Old 4th April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by ocicat View Post
Are you testing your memory?
Yes test it for 12 hours and memory dose not have problem.
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 4th April 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by mfaridi View Post
Yes test it for 12 hours...
You should let it continue uninterrupted for at least 24 hours. If testing is interrupted, you will need to start over.
2 12-hour tests != 1 24-hour test
Once testing is complete, report the results.

Here is my assessment thus far:
  • I am asking you to exhaustively test memory because I suspect you cannot account for how this system has been used/treated during its lifespan. Even if you have such knowledge, it is an old system. Thoroughly testing memory now is information which may be useful later -- assuming it is deemed good memory.
  • If testing does not reveal anything, try BSDfan666's idea of switching to the VESA driver.
  • As for the output of pkg_info(1) & df(1),
    • It is interesting that you did not test X before installing so many packages. Verifying base system functionality immediately after installation is a more systematic approach than waiting after lots of third-party applications have been installed. It's a more complicated environment now.
    • The df(1) output also points out something which you will need to monitor throughout the lifetime of this particular installation. Instead of me simply telling you what it is, I'm going to treat this as a teaching moment (while you are waiting for memory testing to complete). So here's the question:

      What do you think the df(1) output indicates?

      Thinking is required.
Reply With Quote
Old 5th April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

I can understand many thing from df
when I run this command I understand how much space have in each partitions
when I run this command I understand how partitioning my hard disk
when I run this command I understand which partition is full , and this help me to solve some problem for example sometimes when tmp partition is full my system can do anything and maybe it make problem foe my hard disk and my OS
df has many options and this options help me I get better information about Free space and my hard disk .
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 5th April 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by mfaridi View Post
I can understand many thing from df
Okay, so explain the following:
Code:
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/wd0a     1005M   42.2M    912M     4%    /
/dev/wd0k     13.4G    364M   12.4G     3%    /home
/dev/wd0d      1.8G    6.0K    1.7G     0%    /tmp
/dev/wd0f     1021M    928M   42.3M    96%    /usr
/dev/wd0g     1005M    145M    809M    15%    /usr/X11R6
/dev/wd0h      3.0G    909M    2.0G    31%    /usr/local
/dev/wd0j      1.6G    2.0K    1.5G     0%    /usr/obj
/dev/wd0i      1.6G    2.0K    1.5G     0%    /usr/src
/dev/wd0e      2.8G   32.0M    2.7G     1%    /var
Reply With Quote
Old 5th April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by ocicat View Post
Okay, so explain the following:
Code:
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/wd0a     1005M   42.2M    912M     4%    /
/dev/wd0k     13.4G    364M   12.4G     3%    /home
/dev/wd0d      1.8G    6.0K    1.7G     0%    /tmp
/dev/wd0f     1021M    928M   42.3M    96%    /usr
/dev/wd0g     1005M    145M    809M    15%    /usr/X11R6
/dev/wd0h      3.0G    909M    2.0G    31%    /usr/local
/dev/wd0j      1.6G    2.0K    1.5G     0%    /usr/obj
/dev/wd0i      1.6G    2.0K    1.5G     0%    /usr/src
/dev/wd0e      2.8G   32.0M    2.7G     1%    /var
1-this hard disk has 9 partitions
2- frist partitions is root , this partition has 1005 MB space and 42 MB use by file and 912 MB is free
3- another partition is /home and this partition is 13.4 GB and 364 MB us by file and 12.4 is free
4- another partition is /tmp and this partition is 1.8 GB and 6.0 K use by file and 1.7 GB is free
5- another partition is /usr and this partition is 1021 MB and 928 MB use by file and 42 MB is free , I think this partition dose not have enough free space and free space is not enough .
6- another partition is /usr/X11R6 and this partition is 1005 MB and 145 MB is use by file and 809 MB is free
7- another partition is /usr/local and this partition is 3 GB and 909 MB use by file and 2 GB is free
8- another partition is /usr/obj and this partition is 1.6 GB and 2 K use by file and 1.5 GB is free
9- another partition is /usr/src and this partition is 1.6 GB and 2 K use by file and 1.5 GB is free
10- another partition is /var and this partition is 2.8 GB and 32 MB use by file and 2.7 GB is free
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 5th April 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

The auto partitioning is just a guideline, so that people avoid creating one large root partition... you should adapt the automatic layout for your specific environment or create your own entirely.

Accepting the defaults in this case will only serve to bite you in the butt later on.
Reply With Quote
Old 5th April 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by mfaridi View Post
1-this hard disk has 9 partitions...
Your /usr partition is essentially full. Hopefully, you have added most of the applications you intent to add. If you intend to add many more, you are running into the chance that /usr will fill completely up preventing you from either completing the installation of the application being installed or any other application.

Auto-partitioning (as BSDfan666 already states...) is simply one way that partitions can be sized. Auto-partitioning cannot guarantee that the partition sizes created will work in all situations. Because you had added so many applications, you have nearly filled up /usr.

What you should learn from this df(1) output is:
  • You should monitor partition sizes throughout the life of this particular installation watching to see if /usr fills completely up. If it does, you may be forced to re-install.
  • You should expect that when you move to OpenBSD 4.7, you should do a fresh installation, not upgrade. Upgrading does not allow partition sizes to be changed.
  • If you look at the sizes of the other partitions, /home doesn't need to be 13GB in size. If in future installations you intend to install the same applications, shrink the size of /home & increase the size of /usr. Yes, this means that you will have to manually size the partitions yourself. Write down in a notebook what sizes work best for you, & refer to this information when you reinstall.
The fact that /usr has filled up the space allotted is not a reason to be concerned unless you intend to add more applications. Simply run df(1) on a regular basis & monitor its size.
Reply With Quote
Old 5th April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by ocicat View Post
You seem to be missing the point (& what is highlighted in red).

Your /usr partition is essentially full. Hopefully, you have added most of the applications you intent to add. If you intend to add many more, you are running into the chance that /usr will fill completely up preventing you from either completing the installation of the application being installed or any other application.

Auto-partitioning (as BSDfan666 already states...) is simply one way that partitions can be sized. Auto-partitioning cannot guarantee that the partition sizes created will work in all situations. Because you had added so many applications, you have nearly filled up /usr.

What you should learn from this df(1) output is:
  • You should monitor partition sizes throughout the life of this particular installation watching to see if /usr fills completely up. If it does, you may be forced to re-install.
  • Most likely, you should expect that when you move to OpenBSD 4.7, you should do a fresh installation, not upgrade. Upgrading does not allow partition sizes to be changed.
  • If you look at the sizes of the other partitions, /home doesn't need to be 13GB in size. If in future installations you intend to install the same applications, shrink the size of /home & increase the size of /usr. Yes, this means that you will have to manually size the partitions yourself. Write down in a notebook what sizes work best for you, & refer to this information when you reinstall.
The fact that /usr has filled up the space allotted is not a reason to be concerned unless you intend to add more applications. Simply run df(1) on a regular basis & monitor its size.
Can say to OpenBSD use home partition and install application in home partititons
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 5th April 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,609
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by mfaridi View Post
Can say to OpenBSD use home partition and install application in home partititons
From the pkg_add(1) man page:
Quote:
-L localbase
Install a package under localbase. By default, localbase equals
/usr/local, and specifying it is not necessary. However,
packages can be created using a different localbase (see
and those packages can only be installed by
pkg_create(1)), using the same localbase. See bsd.port.mk(5) for a description
of LOCALBASE.
Warning #1: $PATH will need to be altered to use another directory structure.

Warning #2: This will not eliminate the use of /var for data structures deployed by a package.
Reply With Quote
Old 5th April 2010
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 552
Thanked 14 Times in 13 Posts
Default

Quote:
Originally Posted by pkg_add
-L localbase
Install a package under localbase. By default, localbase equals
/usr/local, and specifying it is not necessary.
But the OP's df output indicates he has a separate /usr/local partition with 2G free space on it. So I'm wondering why the /usr partition is so full? Is something there that shouldn't be?
Reply With Quote
Old 6th April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by ocicat View Post
You should let it continue uninterrupted for at least 24 hours. If testing is interrupted, you will need to start over.
2 12-hour tests != 1 24-hour test
Once testing is complete, report the results.

Here is my assessment thus far:
  • I am asking you to exhaustively test memory because I suspect you cannot account for how this system has been used/treated during its lifespan. Even if you have such knowledge, it is an old system. Thoroughly testing memory now is information which may be useful later -- assuming it is deemed good memory.
  • If testing does not reveal anything, try BSDfan666's idea of switching to the VESA driver.
  • As for the output of pkg_info(1) & df(1),
    • It is interesting that you did not test X before installing so many packages. Verifying base system functionality immediately after installation is a more systematic approach than waiting after lots of third-party applications have been installed. It's a more complicated environment now.
    • The df(1) output also points out something which you will need to monitor throughout the lifetime of this particular installation. Instead of me simply telling you what it is, I'm going to treat this as a teaching moment (while you are waiting for memory testing to complete). So here's the question:

      What do you think the df(1) output indicates?

      Thinking is required.
I test RAM for 36 Hour and memery test dose not find error . So RAM is OK
what I must do right now ?
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 6th April 2010
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

I test RAM for 36 Hour and memery test dose not find error . So RAM is OK
what I must do right now ?
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
Old 6th April 2010
bmk1st bmk1st is offline
Port Guard
 
Join Date: May 2008
Posts: 25
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
You are omitting important information.

Why are you manually attempting to configure X at all? Quote Section 11.2.6 of the FAQ:

Manually creating xorg.conf isn't necessarily required anymore.

Section 11.3.2 discusses changing the color depth & mode only after auto-configuration was found to fail.
mfaridi, did you try what ocicat suggested? You can try to run X windows without using xorg.conf. OpenBSD now can auto-configure X without xorg.conf.

You should try to move xorg.conf out of /etc/X11 and then start X. Try it and see what happens.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox don't start Artur FreeBSD General 4 3rd September 2009 01:04 PM
fluxbox crash? HELP bsdnewbie999 OpenBSD General 9 2nd April 2009 04:35 AM
HOWTO: Fluxbox from GIT vermaden Guides 6 3rd November 2008 12:13 PM
OpenBSD 4.3, XDM + FluxBox WeakSauceIII General software and network 2 19th May 2008 08:34 PM
gtk themes for fluxbox rex FreeBSD General 0 18th May 2008 03:24 AM


All times are GMT. The time now is 04:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick