FreeBSD 9-STABLE + htop

Carpetsmoker said:
Do you have linprocfs mounted?

Yes and here is my fstab
Code:
/dev/ad10s1a            /                       ufs             rw              1       1
linproc                 /usr/compat/linux/proc  linprocfs       rw              0       0
proc                    /proc                   procfs          rw              0       0
 
your /etc/fstab says exactly nothing about what is currently mounted. Use the mount(8) command to check what is currently mounted.

I don't know if this is your problem, but on my FreeBSD 9 machine I can't mount linprocfs (?) It gives me an error.
 
I'm pretty sure the mount must be called linprocfs, not linproc.
 
Carpetsmoker said:
your /etc/fstab says exactly nothing about what is currently mounted. Use the mount(8) command to check what is currently mounted.

Code:
root@fbsd(~)# mount
/dev/ad10s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
procfs on /proc (procfs, local)
 
Same problem, 8.2-STABLE as well as derivativo. linprocfs mounted, yes.
If it matters, I have the "linux_base-f10" port installed, perhaps I need the "fc4" one instead?
 
htop is working fine

Code:
20:38:21 root@gw ~# uname -a
FreeBSD gw.xxx.ru[B] 9.0-RELEASE[/B] FreeBSD 9.0-RELEASE #1: Wed Jan 25 22:15:10 MSK 2012
[email]root@gw.xxx.ru[/email]:/usr/obj/usr/src/sys/gw-x64-2012-jan-24-01  [B]amd64[/B]
20:43:10 root@gw ~# mount
/dev/ada0s3a on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
/dev/ada0s3d on /var (ufs, local, journaled soft-updates)
/dev/ada0s3f on /usr (ufs, local, journaled soft-updates)
/dev/ada1p1 on /tmp (ufs, local, journaled soft-updates)
opt on /opt (zfs, local, nfsv4acls)
[B]linprocfs [/B]on /usr/compat/linux/proc (linprocfs, local)
 
Same problem:
Code:
[root@gw ~]# mount
/dev/raid/r0s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/raid/r0s1e on /tmp (ufs, local, soft-updates)
/dev/raid/r0s1f on /usr (ufs, local, soft-updates)
/dev/raid/r0s1d on /var (ufs, local, soft-updates)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
procfs on /proc (procfs, local)


Code:
[root@gw ~]# uname -a
FreeBSD gw.xxx.org 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sat Feb  4 13:51:54 CET 2012     [email]root@gw.xxx.org[/email]:/usr/obj/usr/src/sys/gw  amd64
 
Hello!

I have this in kernel config:
Code:
##########################################################
# ABI Emulation

# Enable 32-bit runtime support for FreeBSD/i386 binaries.
options         COMPAT_FREEBSD32

# Enable 32-bit Linux ABI emulation 
# (requires COMPAT_43 and COMPAT_FREEBSD32)
options         COMPAT_LINUX32

# Enable the linux-like proc filesystem support 
# (requires COMPAT_LINUX32 and PSEUDOFS)
options         LINPROCFS

# Enable the linux-like sys filesystem support 
# (requires COMPAT_LINUX32 and PSEUDOFS)
options         LINSYSFS

# Linux-specific pseudo devices support
device          lindev

I think htop needs this
 
@Twister
I have recompiled kernel with those options, and still htop does not show process list.

@da1
As you can see from my previews post I have mounted linprocfs under /usr/compat/linux/proc

@all
Any other ideas?
 
unull said:
According to linprocfs(5) linproc should be mounted to /compat/linux/proc.

I have the same issue with htop in 9.0 RELEASE.

In root /compat is symbolic link to /usr/compat

2 oliwiak82
Check if you have this link in root?
My root (just for example):

Code:
13:53:17 root@gw ~# ls -al /
total 12130
drwxr-xr-x  22 root  wheel         1024 30 янв 00:11 .
drwxr-xr-x  22 root  wheel         1024 30 янв 00:11 ..
drwxr-xr-x   2 root  wheel          512 30 янв 00:11 .config
-rw-r--r--   2 root  wheel          798 26 янв 03:42 .cshrc
-rw-r--r--   2 root  wheel          263 26 янв 03:42 .profile
drwxrwxr-x   2 root  operator       512 25 янв 00:19 .snap
-r--------   1 root  wheel     12288000 25 янв 00:19 .sujournal
-r--r--r--   1 root  wheel         6200 26 янв 03:42 COPYRIGHT
drwxr-xr-x   2 root  wheel         1024 26 янв 03:37 bin
drwxr-xr-x   8 root  wheel         1024 26 янв 03:42 boot
lrwxr-xr-x   1 root  wheel           11 26 янв 10:10 [B]compat -> /usr/compat[/B]
dr-xr-xr-x  12 root  wheel          512 14 фев 21:22 dev
drwxr-xr-x   2 root  wheel          512 24 янв 20:46 dist
drwxr-xr-x  20 root  wheel         2048 14 фев 17:22 etc
lrwxr-xr-x   1 root  wheel            8 25 янв 00:31 home -> usr/home
drwxr-xr-x   6 root  wheel         1024 13 фев 00:58 jail
drwxr-xr-x   3 root  wheel         1536 26 янв 03:38 lib
drwxr-xr-x   3 root  wheel          512 26 янв 03:40 libexec
drwxr-xr-x   2 root  wheel          512  3 янв 11:55 media
drwxr-xr-x   2 root  wheel          512  3 янв 11:55 mnt
drwxr-xr-x   5 root  wheel            5 28 ноя 17:20 opt
dr-xr-xr-x   2 root  wheel          512  3 янв 11:55 proc
drwxr-xr-x   2 root  wheel         2560 26 янв 03:38 rescue
drwxr-xr-x   3 root  wheel         1024  8 фев 23:43 root
drwxr-xr-x   2 root  wheel         2560 26 янв 03:39 sbin
lrwxr-xr-x   1 root  wheel           11 26 янв 03:36 sys -> usr/src/sys
drwxrwxrwt  21 root  wheel         1024 16 фев 03:15 tmp
drwxr-xr-x  19 root  wheel         1024 29 янв 23:00 usr
drwxr-xr-x  26 root  wheel         1024 14 фев 21:22 var
 
oliwiak82 said:
Hello

Code:
[root@forteca /]# ls -la |grep compat
lrwxr-xr-x   1 root  wheel       10 Apr 17  2011 compat -> usr/compat

As I said before, this is most likely a left-over from pre 9.0.

Anyway, even moving /compat to /usr/compat and creating a symlink from /compat to /usr/compat does not fix the issue with htop (or any other tool that relies on linprocfs to gather process stats, for example utop)
 
Code:
[root@forteca ~]# pkg_info | grep htop
htop-0.9_1          A better top(1) - interactive process viewer
Code:
[root@forteca ~]# pkg_info -r htop-0.9_1                
Information for htop-0.9_1:

Depends on:
Dependency: lsof-4.86A,6
Dependency: ncurses-5.9
Dependency: libexecinfo-1.1_3
 
Hello!

This is mine.
Code:
13:30:03 root@gw /usr/ports/sysutils/htop# pkg_info | grep htop
htop-0.9_1          A better top(1) - interactive process viewer
13:30:21 root@gw /usr/ports/sysutils/htop# pkg_info -r htop-0.9_1
Information for htop-0.9_1:

Depends on:
Dependency: lsof-4.86A,6
Dependency: libexecinfo-1.1_3

And - how I built it:
Code:
13:30:52 root@gw /usr/ports/sysutils/htop# make showconfig-recursive
===> The following configuration options are available for htop-0.9_1 and dependencies
===> The following configuration options are available for htop-0.9_1:
     LSOF=On (default) "Enable lsof support"
===> Use 'make config' to modify these settings
===> The following configuration options are available for python27-2.7.2_3:
     THREADS=on (default) "Enable thread support"
     SEM=off (default) "Use POSIX semaphores (experimental)"
     PTH=off (default) "Use GNU Pth for threading/multiprocessing"
     UCS4=on (default) "Use UCS4 for unicode support"
     PYMALLOC=on (default) "Use python's internal malloc"
     IPV6=on (default) "Enable IPv6 support"
     FPECTL=off (default) "Enable floating point exception handling"
===> Use 'make config' to modify these settings
===> The following configuration options are available for perl-5.12.4_3:
     DEBUGGING=off "Build with debugging support"
     GDBM=off "Build GDBM_File extension"
     PERL_MALLOC=off "Use Perl malloc"
     PERL_64BITINT=on "Use 64 bit integers (on i386)"
     THREADS=off "Build threaded perl"
     MULTIPLICITY=off "Use multiplicity"
     SITECUSTOMIZE=off "Run-time customization of @INC"
     USE_PERL=on "Rewrite links in /usr/bin"
===> Use 'make config' to modify these settings
===> The following configuration options are available for m4-1.4.16,1:
     LIBSIGSEGV=Off (default) "Use libsigsegv for better diagnostics"
===> Use 'make config' to modify these settings
===> The following configuration options are available for libiconv-1.13.1_1:
     EXTRA_ENCODINGS=on (default) "Include extra character sets"
     EXTRA_PATCHES=off (default) "Apply patches to fix CP932, add EUCJP-MS"
===> Use 'make config' to modify these settings
I can't understand - where ncurses came from in your case?
 
Back
Top