Re: JariOS hangs
Dmitry Gromada <gromada <at> jarios.org>
2010-04-08 13:58:58 GMT
Try the following: type 'make menuconfig' for the uspace part,
follow 'Base system/Block device layer settings', disable the deadline
scheduler in the 'Block I/O schedulers' nested menu and disable 'Block I/O
scheduling' at all. Sometimes similar problem appeared on hardware with read
delay 1 ms for deadline scheduling and was caused by some troubles in timers.
However, it hasn't appeared under an emulator. Or you can do 'git pull', i
set the delay to 2 ms. But now we usually don't use block scheduling because
access to a block device from file systems is single threaded, and therefore
using of this feature hasn't sense yet.
Another variant is possible, but at first try this.
On Thursday 08 April 2010 07:30:26 shivpratap chauhan wrote:
> Pls see below for mustring .config file and attached .config file for
> core_servers.
>
> ##############File: .config ####################
> #
> # Automatically generated make config: don't edit
> # MuString kernel version: KERNELVERSION
> # Thu Apr 8 06:23:20 2010
> #
> CONFIG_AMD64=y
> CONFIG_ARCH="amd64"
>
> #
> # AMD64 processor features
> #
> CONFIG_APIC=y
> CONFIG_SMP=y
> CONFIG_NRCPUS=2
> CONFIG_GENARCH_MM=y
> CONFIG_EMU=y
>
> #
> # Memory manager
> #
> CONFIG_KCORE_STACK_PAGES=2
> CONFIG_TLSF=y
> # CONFIG_DEBUG_PTABLE is not set
>
> #
> # Common MuString settings
> #
> CONFIG_MAX_SRV_MBS=16
> CONFIG_ALWAYS_INLINE=y
> # CONFIG_CORESERVERS_PERCPU_LAUNCH is not set
> CONFIG_CORESERVERS_LAUNCH_DELAY=500
>
> #
> # Task settings
> #
> CONFIG_AUTOREMOVE_ORPHANS=y
>
> #
> # Scheduler settings
> #
> # CONFIG_TRACE_CURRENT is not set
> CONFIG_THREADS_PER_PROCESS=64
>
> #
> # Realtime timers
> #
> # CONFIG_TIMER_RBTREE is not set
> CONFIG_TIMER_GRANULARITY=32
> CONFIG_CACHED_MAJOR_TICKS=16
> CONFIG_MIN_CACHED_MAJOR_TICKS=4
> CONFIG_MAX_DEFERRED_IRQ_ACTIONS_PER_TICK=32
> CONFIG_MAX_DEFERRED_USERSPACE_ACTIONS=2
>
> #
> # Kernel consoles
> #
> # CONFIG_DEFCONS_VGA is not set
> CONFIG_DEFCONS_SERIAL=y
> # CONFIG_FAULTCONS_VGA is not set
> CONFIG_FAULTCONS_SERIAL=y
>
> #
> # Fault processing
> #
> # CONFIG_SEND_SIGSEGV_ON_FAULTS is not set
>
> #
> # Debug options
> #
> CONFIG_DEBUG=y
> CONFIG_DEBUG_MM=y
> # CONFIG_DUMP_VMM_ON_FAULT is not set
> CONFIG_DEBUG_SLAB=y
> # CONFIG_DEBUG_SLAB_MARK_PAGES is not set
> # CONFIG_DEBUG_SLAB_OBJGUARDS is not set
> # CONFIG_DEBUG_TIMERS is not set
> # CONFIG_DEBUG_SIGNALS is not set
> # CONFIG_DEBUG_IRQ_ACTIVITY is not set
> # CONFIG_DUMP_USPACE_STACK is not set
> CONFIG_NUM_STACKWORDS=5
> # CONFIG_TRACE_ERRORS is not set
> # CONFIG_TRACE_SYSCALL_ACTIVITY is not set
>
> #
> # IPC settings
> #
> CONFIG_IPC_DEFAULT_CHANNELS=128
> CONFIG_IPC_DEFAULT_PORTS=32
>
>
> ####################END#############################
>
> On Thu, Apr 8, 2010 at 2:15 AM, Dmitry Gromada <gromada <at> jarios.org> wrote:
> > Show me your '.config' file, please
> >
> > On Wednesday 07 April 2010 23:51:55 shivpratap chauhan wrote:
> > > Hi All,
> > >
> > > I built a new image and it hangs, even i waited for 30 min still it
> > > does not show progress beyond [bdev.x]: Registering new storage 'ada'.
> > > This issue seems from long back. Did any one get around with this?
> > >
> > >
> > > Serial logs:
> > > [spc <at> Python git]$ tail -f log.txt
> > > E820 memory map:
> > > BIOS-e820: 0x0000000000 - 0x000009f000 (usable)
> > > BIOS-e820: 0x000009f000 - 0x00000a0000 (reserved)
> > > BIOS-e820: 0x00000e8000 - 0x0000100000 (reserved)
> > > BIOS-e820: 0x0000100000 - 0x0007ff0000 (usable)
> > > BIOS-e820: 0x0007ff0000 - 0x0008000000 (ACPI reclaimable)
> > > BIOS-e820: 0x00fffbc000 - 0x00fffc0000 (reserved)
> > > BIOS-e820: 0x00fffc0000 - 0x0100000000 (reserved)
> > > [INFO] Available RAM: 127Mb
> > > [INFO] Kernel size: 412K
> > > [INFO] Services size: 7595K
> > > [DEBUG] Verifying Identity mapping... [OK]
> > > [DEBUG] Verifying Kernel mapping... [OK]
> > > [INFO] Page frames array size: 2304K
> > > [MM] Pool "Lowmem" initialized TLSF O(1) allocator
> > >
> > > [MM] Pages statistics of pool "Lowmem":
> > > | Total Free Reserved |
> > > | 32752 29844 2908 |
> > >
> > > [MM] All pages were successfully remapped.
> > > [DBG] Validating memory pools... [OK]
> > > LAPIC ID = 0, version = 17, lvts = 5
> > > DEFAULT CONTROLLER: Local APIC
> > > [MM] Initializing slab allocator
> > > Cache "slab_t" (size=32) was successfully initialized
> > > Cache "memcache_t" (size=224) was successfully initialized
> > > [MM] Initializing memory objects subsystem...
> > > [MM] Initializing VMM subsystem...
> > > [MM] Reverse mapping system successfully initialized
> > > Registering scheduler: 'Eza default scheduler' (CPUs supported: 2)
> > > SEND INIT IPI TO CPU 1, cpuid=1
> > > CPU#1 Hello folks! I'm here
> > > online!
> > > [LAUNCHER] Starting 6 servers with delay 500. First user (non-NS) PID
> > > is
> >
> > 7
> >
> > > [LAUNCHER] Starting server: /boot/initrd
> > > [LAUNCHER] Starting server: /system/serv/nsv2.x.static
> > > CPU #1 is entering idle loop. Current task: 0xffffffff87b99000, CPU: 1,
> > > ATOM: 0
> > > CPU #0 is entering idle loop. Current task: 0xffffffff87b91000, CPU ID:
> > > 0 [LAUNCHER] Starting server: /system/serv/vfsv2.x.static
> > > [LAUNCHER] Starting server: /system/fs/init.fs.static
> > > [LAUNCHER] Starting server: /system/serv/procmgr.x.static
> > > [ProcMgr] Starting with PID = 9
> > > [LAUNCHER] Starting server: /system/serv/btsdv2.x.static
> > > [btsdv2] starting ...
> > > [btsdv2] going first stage (initrd).
> > > [BDSMv2] conf_path=/etc/init.grub.scm
> > > [BTSD] Executing module 'deviofs:/system/fs/devio.fs.static' with 0
> >
> > params.
> >
> > > [LAUNCHER]: All servers started. Exiting ...
> > > [BTSD] Executing module 'ioapic:/system/devs/ioapic.d.static' with 0
> > > params. initing ...
> > > [ioapic.d] Jari OS I/O APIC driver ...OK
> > > OK
> > > [BTSD] Executing module 'pci:/system/devs/pci.d.static' with 0 params.
> > > [pci.d] Jari OS PCI bus driver.
> > > [BTSD] Executing module 'bdev:/system/serv/bdev.x.static' with 0
> > > params. [bdev.x] initing ...
> > > [bdev.x] running ...
> > > [bdev.x]: scanning ata interfaces
> > > OK
> > > [bdev.x]: Registering new storage 'ada'.
> > >
> > > Thanks,
> > > Shivpratap
>
Best regards,
Dmitry Gromada